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.

Make an Easy Button Tweet the Hard Way

Make an Easy Button Tweet the Hard Way
There are several ways to make a microcontroller tweet. The easy methods are well covered in other instructables.
  1. Connect it to a computer running a python script or similar.
  2. Connect it to a hacked router (nice - you know who you are).
  3. Using a third party proxy server e.g. ThingTweet, NeoCat's Arduino library, Arduino Tweet Library.
A method that is not well covered is handling the entire process of generating a Tweet using the microcontroller only. This method has a couple of advantages over the other methods.
  • It doesn't require an external computer/router.
  • It doesn't have the security risks of method three. Passing security credentials over an unsecure transport is risky. If you are using a proxy server to generate your Tweets make sure you understand the risks.
Of course this method also has disadvantages in terms of code size and complexity; which is why I have termed it the "hard way".

The intention of this instructable is to give others a basic standalone framework for generating Tweets from a microcontroller.The application itself is pretty simple; press the button and it generates a semi random Tweet.
 
Remove these adsRemove these ads by Signing Up
 

Step 1Parts

Parts
«
  • DSCF5582.JPG
  • wiznet5100.jpg
  • nokia5110.jpg
  • powersupply.jpg
  • easybutton.jpg
I have used the STM32 Discovery Board (STM32F103RG) for this project, because I am familiar with it and I had one on hand. Most of the code above the driver level (easybutton.c, nokia5110.c and wiznet5100.c) should be platform independent so porting the code to other microcontrollers should be straightforward.

Only a few parts are required for this project
« Previous StepDownload PDFView All StepsNext Step »
8 comments
Jul 19, 2011. 8:27 AMlanky.ninja says:
Unfortunately this is to advanced for me, but i still managed to understand what it was that was happening thanks to great explenations. I look forward to coming back to this in the future as a learning tool.
Great Job!
Jul 4, 2011. 2:32 AMBarnaby Walters says:
In a sea of 'MAKE ARDUINO TWEET IN 5 SECONDS" instructables, this is a rare and well written guide! I always like it when people go the extra mile and make something like this, a standalone device. Thanks a lot!
Jul 4, 2011. 10:05 AMBarnaby Walters says:
I'd say you have a chance in the MCU contest — after all, this is quite impressive! Although there does seem to be emphasis on making things move. It's more impressive than my entries, anyway!
Jun 28, 2011. 10:36 AMpdxnat says:
A fun hack and a well written instructable! Nice work.
Jun 27, 2011. 5:11 PMfrank26080115 says:
Every ARM project makes me smile
Jun 27, 2011. 10:42 AMwilgubeast says:
If something's worth doing, it's worth doing right. This is 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!
24
Followers
7
Author:Layout
By day a senior software engineer. By night an inventor who has not yet managed to give up his day job.