3 Simple Ways to
Share What You Make

With Instructables you can share what you make with the world — and tap into an ever-growing community of creative experts.

PhotosPhotos

Share one or more photos of a project, recipe, or whatever you've made, quickly and easily.

Step by StepStep-By-Step

Share your step-by-step photos with text instructions of what you made so others can do it too!

VideoVideo

Share your how-to video. You'll need your embed code from a video site such as YouTube.

The Smuggie: Tweet straight from your Snuggie

The Smuggie: Tweet straight from your Snuggie
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 1Writing the Code

Writing the Code
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

« Previous StepDownload PDFView All StepsNext Step »
14 comments
Apr 19, 2012. 2:20 PMTobaTobias says:
Is the site down? I can't get the url to validate.
Jan 11, 2011. 1:58 AM13pboys says:
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
Jan 11, 2011. 10:33 AM13pboys says:
ok now i dont get anything
Jan 11, 2011. 11:29 AM13pboys says:
it seems to work when i change the stutus so i have to change the stutus ever time i want to make a message
Oct 24, 2010. 12:07 AMeaon21 says:
cant make a tweet ;(
Oct 24, 2010. 12:11 AMeaon21 says:
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???
Oct 14, 2010. 8:27 PMbusidit says:
Nice!
Arduino is the new salt. It makes everything better.
Oct 14, 2010. 12:56 PMskrubol says:
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.
Oct 14, 2010. 11:31 AMbderousse says:
this is freaking tweet! I might make one of these for my sister.
Oct 12, 2010. 7:32 PMwizgirl says:
Do you update the code each time you want to tweet a new message?
Oct 13, 2010. 7:43 AMwizgirl says:
Sweet, thanks!
Oct 13, 2010. 5:39 AMPetro_N says:
huh! very nice))

look this: "@0:B>@=K5 ?@8F5?K
Oct 12, 2010. 8:27 PMlebowski says:
Awesome!

Pro

Get More Out of Instructables

Already have an Account?

close

All Steps Viewing
View all steps of an Instructable on the same page when you're a Pro Member.

Upgrade to Pro today!
3
Followers
1
Author:jblinder(Justin Blinder)
hacker / maker