Archiduino – RTC – Real Time Clock DS1307+ and DS1337


Archiduino 1284 - RTC DS1307+

Archiduino 1284 – RTC DS1307+

Archiduino 1284 mounts onboard a real time clock chip, the well known DS1307+ (or, to be precise, DS1307ZN+) made by Maxim Integrated. This RTC works at 5VDC and is managed via I2C bus at 0x68 address. In the Arduino world there’s a plenty of libraries designed to manage DS1307+. With Archiduino you can use those libraries without any modification.

Archiduino 32 mounts onboard the  DS1337, which is powered at 3.3VDC. This RTC works at same 0x68 address of Archiduino 1284. Libraries and code are the same for both Archiduino CPU boards.

The RTC works as a clock/calendar with its own 32.768 KHz oscillator crystal, so timing functions can not be influenced by MCU clock or any other external timing factor. It also gives the possibility of connecting a backup battery in order to keep timing data when Archiduino is switched off. The battery is not included in standard version of the Archiduino 1284 or Archiduino 32 CPUs, but it can be bought as an option (see our shop for more info).



Archiduino – RTC – Complete example

This small examplet shows how we could display on LCD a useful calendar clock. The example uses RTCLib.h library, originally posted by JeeLab’s and forked by AdaFruit. You can upload this program in both Archiduino 32 and Archiduino 1284