Well, seeing as this is my first post here I'll say hi to everyone.
I noticed this thread in my referrers on my site (diy-labs dot com).
I took a bit of time off over the holidays and haven't been actively working on the project; however, I'm back at it again and open to suggestions.
As it stands right now basic control is working (temp, lights, pumps, ph ect.). I'm currently working on integrating wifi (cause I'm lazy) and once that's done more code is going in.
Anyways, all my hardware is pretty much done and it's all coding right now so if anyone has suggestions let me know.
Although I am selling boards this project is released open source (eagle + code is available on the site).
I look forward to hearing what you guys have to say.
It won't come with a datasheet but you can get it online:
http://datasheets.maxim-ic.com/en/ds/DS1307.pdf
There's a typical circuit on the first page. There's also a recommended crystal layout on page 7, but you won't really be able to address that (the shielding) on a protoshield. Just keep the crystal RIGHT next to the IC and don't put anything else near it.
Basically, you just connect the crystal and battery as shown in the datasheet. Connect a .1uF decoupling cap from the Vcc pin to GND. Connect Vcc to the Arduino's 5v, and the IC's GND to the Arduino's GND.
Then, connect the SDA and SCL lines. They are Analog pins 4 and 5, respectively. You'll need pullup resistors, too. Connect a resistor from each of those two pins to +5v. 1k8 or 2k2 resistors are fine.
I've heard there's a new "time" library that abstracts all of the communication with the DS1307 but I've never used it. If you want the raw code lemme know and I'll post it.
Hi der_wille_zur_macht,
For the 1K8 and 2k2 resistors, what should i get 1/8w, 1/4w or 1w?
Thanks.
Also for the crystal....I should go with 6pF or 12.5pFon digi-key?
Thanks!
Just a thought, but why dont you use a slc5/03 and an alan bradley monochrome screen.