2009
07.25

The Twittering Arduino board is finally complete.  Finished it about 2:30AM last night and it successfully tweeted all night and all day today.  My three followers are still following, I dont know how fascinating “Temperature Degrees C = 27.15 Temperature Degrees F = 80.87″ can be,  but to each their own.

twitter_temperature

The actual act of twittering was pretty simple, there are several libraries to choose from, I used the Twittering Toilet program as a basis for my code.  The hard part turned out to be building the actual text for the tweet, the Arduino has very limited string manipulation functions.  But the PString library by Mikal Hart proved to be just what I needed.

Here is the Arduino sketch

The temperature sensor was easy, simply used the example provided by LadyAda at Adafruit Industries.  I won’t bore you with a schematic, just do what is on the tutorial using ADC port 0.

TO DO:

  • Should implement some error checking.  99% of the tweets will be sucessful, but should look for rate limit hits and ignored tweets.

Oh yeah you can see it in action here

Share on Facebook

Comments are closed.