Has anyone done and RTC for the pi, or know of a link for more info on implementing one?
Many thanks.
Has anyone done and RTC for the pi, or know of a link for more info on implementing one?
Many thanks.
Hi Brian.
You're in luck -- Drew wrote up a nice blog post about exactly that -- http://www.element14.com/community/groups/raspberry-pi/blog/2012/07/19/what-time-is-it-adding-a-rtc-to-the-raspberry-pi-via-i2c
Brilliant, Thanks Morgaine!
I'm about to test something similar using Microchip's MCP79411.
I'l write a little article when I'm done and post the link.
-J
@jamodio: Excellent, I don't know the device so I looked it up, links in case someone needs:
Looking forward to the article!
@Brian: Forum contributors write useful blog articles like that one quite frequently. I'm maintaining a list of Element 14 Blog entries at the top of the following forum thread. If you're considering projects, it may be useful to check the list occasionally:
That would be nice, thanks jamodio
I also found these PIC boards which may also work with Pi?
http://www.mikroe.com/eng/categories/view/38/time-measuring-boards/
Nice list of boards there, thanks Brian. I'll keep an eye out for MikroElektronika in future.
They seem to use two different RTC devices in their boards:
It might be of interest that Adafruit links to Drew's article for Pi timekeeping (Drew used two of their products):
Morgaine.
They should work Brian, I used the PCF8583P/F5,112PCF8583P/F5,112 before talking to a PIC18F97J60 and didn't have any problems to make it work. Getting the board instead of the parts saves you the work of trying to find the right crystal and capacitors to use, sometimes those crystals and the RTC cirtuits are very picky to get working.
One detail to take in account with the Microchip part (I don't recall being necessary on the NXP part) is that before the internal clock for the oscillator to start working you need first to initialize the device, by default the oscillator is OFF.
-J
The downside of the DS1307 for the Pi is that it requires a logic level converter as it runs at 5V and the Pi is 3.3V logic. If you don't already have logic level converters, then I'd recommend going with a RTC that can operate at 3.3V (such as the PCF8583P/F5,112PCF8583P/F5,112 or MCP79411 mentioned above).