Hi all,
For a project I'm using an RPi as test machine, and one of the things I'm testing is an RTC. As it will be part of a larger PBC, buying a pre-built package was not an option. I therefore assembled my breadboard as follows:
The DS1307 works on the Pi's 5V, but as soon as I shut down my RPi (so it switches to backup power) it starts drifting. It's always running slow, and this morning when I switched on my Pi, it had drifted almost 2 hours in about 40 hours (almost 5%!). A few days ago I tested it with my Pi on for a few hours (by running "watch -n 10 'sudo hwclock -r && date'"), and it worked perfectly, so it's only an issue when on backup power. The battery I'm using is brand new, and I also tested it for a few hours with my lab bench PSU, both producing the same result. Reading and writing the DS1307 from my Pi works perfectly. The parts I'm using are:
- Maxim DS1307+ RTC (Farnell 1188042)
- Battery holder (Farnell 1339840)
- Abracon crystal (Farnell 1611828)
- A 100nF ceramic capacitor
Is my DS1307 simply broken or am I doing something wrong?
Regards,
Marten

