Thank you! I don't really need an alarm now, but I wanted to understand this chip as better as possible. Great, great work mattt, and everyone who contributed!
I would like also to develop a scientific devide consisting on a arduino duemilenove, two (for the moment) temperature sensors (DS18N20), a RTC (DS1307), and a microSD component. My idea is to measure temperature from each sensor one per hour, and save in a txt file at the microSD file, together with date, time and the temperature from each sensor.
I saw some of you are involve in similar devides. Since i am completely new in arduino, could you give me the detailed steps to develop it? You seems to have so much experience and could made me easy to go ahead with this project.
New DS1337 owner here, should I jump in with the code posted at the beginning of the thread specifically for the DS1337 or go with the DS1307 library listed later on Google source?
I picked up a nice couple of CronoDots with the headers soldered on the wrong side for cheap at macetech.com. Look for the ChronoDoh!
If you are just starting out on the DS1337 you may want to checkout my library at Loading.... I have implemented most functions of the chip.
The library works with the Arduino and Sanguino.
I have a couple of Arduino examples on the site. One outputs a localtime string. The
other demos the interrupts. I will be posting the Sanguino examples (with pics of my
new board) in the next few days.
Soldered the backup battery on, wired it up very carefully, and tried the most basic sketch from the macetech.com documentation that doesn't use any library.
It's ticking and spitting out the wrong time! (I haven't set it yet)
I've run that code on the 168,328 and 644 (with the Sanguino).
Try putting some Serial.print statements before each instruction in the loop to see
if you can isolate the specific instruction that is causing a problem.
In my main program I have a couple of other include statements. I am assuming
that if these were required your program wouldn't compile.
I just started with this library, it seems to work but every time I close the serial port and open it agian the time resets (I have a 3V battery connected)
Your picture is very fuzzy so I can't say for sure but it seems like the wiring my not be correct. The crystal should wire to pins 1 & 2, batt + to pin 3 and batt- to pin 4 and common ground.
Me again, had another few minutes to poke at this.
No pull up resistors on the data lines.
I think the wiring is correct however, because the sketch with no library worked great.
I tried the original DS1307 library next, it works great! Yea! I set the correct time and modified my alarm clock prototype to use the DS1337 breakout board using the DS1307 library. The only extra feature of the DS1337 that I care about really is the added precision, so I think this will work ok for now.