View on GitHub

chrisgilmerproj

import chris; chris.blog()

Download this project as a .zip file Download this project as a tar.gz file

My Garden Tweets

07 Nov 2009

Yesterday I posted about wirelessly updating my arduino's software using my Xbee wireless adapters.  Today, I finally completed a project I've been working on for a couple months.  I now have a garden, with water and light controlled by an arduino, that tweets it's status every half hour to Twitter!  You can check out the feed by going over to my twitter test account @chrisgilmertest. This was a huge breakthrough since I thought I'd have to do a lot more work than was actually required.  Turns out I can use the Xbee modules as a direct serial link and simply read text from the arduino.  I can then use Python and the PySerial library to parse the words into data for recording.  This data can also be sent over to Twitter using a twitter API, written in Python, that I downloaded from the Tweet-a-Watt project. My next step is to send command to the garden from my computer.  Ideally I'd like to run the timer for lights and water from the computer and simply update the values on the arduino via serial.  It might be harder than I expect, but the payoff will be my ability to adjust what my garden is doing over the web.  That could lead to a whole host of other cool projects down the line. I want to end this post by saying that I wouldn't have started this project without Make Magazine.  It was in Volume 18 of Make that I ran across both the Garduino project and the Tweet-a-Watt.  I'm so excited that I was able to bring those two projects together and have so much fun doing it at the same time.  I should also thank the authors of those two projects because I relied heavily on their work. If you're interested then check back here soon for more about how I did it.  I'm thinking of updating my wiki and posting an instructable to help other people interested in this project.