Computer controlled Garduino
My excitement seems to know no bounds when it comes to the things I've been able to do with my Gardiuno this weekend. I've felt since I got my garden up and running that it's one fatal flaw was the internal date and time library. I had set up a rudimentary system that turned on the light for a set number of seconds each day. This turned out to be a problem as I tweaked the code on the arduino because every time I reset the controller I also reset the internal clock.
Since I want to light my garden mostly at night and during the day when I'm at work I thought I'd need a different solution so I wouldn't have to reset my arduino before I went to bed. What came to mind was a great instructable by the people at oomlout that controlled an arduino with serial communication. I'd previously used this instructable to get my Mothbot up and running. This time I took a lesson from the instructable about serial communications and got to work modifying my arduino code and my Python script.
I now have set up my Garduino to receive commands from my computer over the Xbee. Then the Garduino determines if the light should be on or off, will reset the pump safety counter, and then manage the garden before sending back the sensor values. My computer then reads the sensor values, tweets if it's been five minutes, and starts the whole thing over again. This way the garden light cycle is dependent upon the script on my computer, not on an internal clock that caused me so many other problems.
I'm really moving now that I've got my project off the ground and connected. I can't wait to see what I do with it next!