Instructables
Picture of The Smuggie: Tweet straight from your Snuggie
smuggietweet.jpg
Want to tweet how satisfied you are cuddled up in your Snuggie? The Smuggie is a modified Snuggie, designed specifically for those who feel the need to express their smug satisfaction with a Snuggie to their friends on Twitter.
Here's a list of everything you'll need:

- Processing IDE (http://processing.org/)Arduino IDE (http://arduino.cc/)
- A Twitter account (https://twitter.com/)
- At least one Snuggie"
- 1 Arduino Main Board (http://www.sparkfun.com/commerce/product_info.php?products_id=666)
- 1 Solderless Breadboard (any size, the smaller the better)
- About 5-10 feet of 22AWG Solid Core Wire
- A needle and thread
- About a foot of foam core
- About a foot of Conductive Tape

By: Justin Blinder
http://blog.justinblinder.com

 
Remove these adsRemove these ads by Signing Up

Step 1: Writing the Code

Picture of Writing the Code
arduino.png
Code
1) Download and Install Arduino/Processing (there are tutorials on each website on how to get setup).

2) Open up Arduino. The code below is basically going to program our Arduino to wait for a button press, and send a message to Processing every time the button is pressed. Copy the code into the Arduino window and plug your Arduino into your computer. Click the upload button at the top of the window. You'll see a message on the bottom of the window that says "Done" once everything's finished. Now our Arduino is all ready for coding.

Arduino Code
2) Now let's pen up Processing. The following code is going to handle the following:- Connect to a remote Twitter client (so you can tweet from your very own Twitter account)
- Listen for a button press from our Arduino- If it sees that a button is pressed, send Twitter our status update

3) Copy and paste the code below into the Processing window. On the line that says:
String myStatus = "enter your status update here";
replace the text "enter your status update here" with the message you'd like to tweet (leaving the quotes intact). Make sure your message is a maximum of 140 charecters, otherwise your Smuggie's won't tweet!

Processing Code

varuninnz2 years ago
Hi again, I am testing your code.
Okay so i got my security code from the website xxxx
Next I loaded it on both my internet & opera browsers
http://magichive.com/projects/smuggie/validate.php?pin=xxxx
however I am only seeing a blank page loading up. NOT SURE if this RIGHT

also keep in mind Im turning the pin high with
void loop(){
digitalWrite(shareButton, HIGH);
....
}
However nothing I am getting nothing appearing on my twitter account. Please help me out here. thanks
varuninnz2 years ago
Hi I have a very important question to you about my project.

I've used softwares like processing and gobetwino. Done all the examples on gobetwino, so i know that it can be used for sending emails. But I am avoiding using gobetwino, because I've gota real time graph running on processing and it also saves all my values on excel for personal customer analysis later on.

basically Im planning on using a keypad attached to my device to get values inputted from the user and then display the calculations from the user inputted values on a lcd.

Now my lecturer has allowed me to use a Xigbee shield for wireless data transfer. And also I've seen tutorials on this site that can send tweets without using any Ethernet shield (including yours i think as well) , however the arduino for these projects are connected to a pc. I've done the tutorials those and my program does compile but none of them have displayed anything on twitter yet. I havnt tried yours yet tho because I dont have a snuggie

My question is do you think it might be possible to send an email/twitter via processing if I can send all the data from my device via the Xigbee shield?
TobaTobias2 years ago
Is the site down? I can't get the url to validate.
13pboys3 years ago
i have done every thing you said i must do and only sometimes i get the message
please can you tell me what to do
13pboys 13pboys3 years ago
ok now i dont get anything
13pboys 13pboys3 years ago
it seems to work when i change the stutus so i have to change the stutus ever time i want to make a message
eaon214 years ago
cant make a tweet ;(
eaon21 eaon214 years ago
im new to processing...after uploading the code to my arduino board and putting the pin number in String pin and putting a status message in String mystatus, what am i supposed to do, just click the run/play button in processing???
busidit4 years ago
Nice!
Arduino is the new salt. It makes everything better.
skrubol4 years ago
In your picture it looks like you have pin 12 shorted to ground. The switch won't be doing anything. You'll need to have a larger value resistor between pin 12 and ground than between pin 12 and the switch.
If Arduino's have built in pull ups, you could just enable the pull up on pin 12 and connect the switch to ground on one side and use a 1-10k resistor (pull ups are usually between 10-50k, not sure about on atmega.) with no second connection.
bderousse4 years ago
this is freaking tweet! I might make one of these for my sister.
wizgirl4 years ago
Do you update the code each time you want to tweet a new message?
jblinder (author)  wizgirl4 years ago
Hi wizgirl,

As long as the Processing application is running with the correct pin number entered in, the Smuggie should be ready to tweet (as many times as you you'd like too). I checked on the Twitter developer documentation website, and it looks like there's no specified timeout limit when you authenticate with a Twitter client (the part in Step 2), so the pin should be reusable every time you fire up Processing. However, if tweeting from the Proccssing app ever stops working, it'd probably be best to go through Step 2 again and create a new pin.

Cheers.
Sweet, thanks!
Petro_N4 years ago
huh! very nice))

look this: Тракторные прицепы
lebowski4 years ago
Awesome!