Arduino solar tracker

My AdaFruit DS1307RTC arrived this weekend, so I built that and got it integrated into my code. Since I'm not using any of my analog ports for this particular project, I am able to use their suggestion of plugging it straight in to the Arduino's analog ports, and just set pin 17 HIGH and pin 16 LOW to power it. Below is a link to my current code, and I also have a second sketch that syncs the RTC to your PC's current time (of course you must set your PC to UTC, and in my case to offset the delay of compile time and upload time, I advance my PC clock 23 seconds, so it lands exactly on official UTC time when it writes to the RTC). Hope this helps! I should have my AdaFruit motor shield and my two stepper motors next week, so I can begin doing a sanity check on all of this madness :slight_smile:

http://www.bishoptechnology.com/pub/SunTracker.pde

http://www.bishoptechnology.com/pub/RTC_Clock_Sync_Util.pde

Eventually I will eliminate the separate clock sync sketch and just have a line in the main sketch that you can uncomment to sync the RTC. I just did this because the AdaFruit library in the example on her site drove me nuts (not because it's bad, but because I'm not a developer), so I ended up using the DS1307RTC.h and Time.h libs instead.