ElectronicComponent

DS1307 Real-Time Clock

DS1307 Real-Time Clock

Tags

Description

The DS1307 real-time clock (RTC) keeps track of time and calendar date and can be used for data-logging and time-keeping applications. The chip does not compensate for daylight savings time and the timing accuracy loses 2-3 seconds per day.

DS1307 Real-Time Clock

Adafruit DS1307 Kit Components

Wiring Notes

Adafruit sells a breakout board kit, which can be interfaced with an Arduino and comes with 2 resistors, 1 crystal, 1 capacitor and 1 DS1307 chip. The DS1307 connects to other system via I2C. The RTC runs on 5V logic, but can be used with 3 volt logic systems, after some modification. See the following application notes:

  1. Arduino The breakout board can be used as is. Connect the SDA and the SCL pin to the Analog A4 and A5 pins, respectively.
  2. Raspberry Pi When soldering the breakout board, omit the 2.2kΩ resistors to make the RTC run on 3 Volt logic. Connect the SDA and SCL pins on the RTC to the SDA0 (P1-03) and SCL0 (P1-05) pins on the Raspberry Pi, respectively (see R-Pi pinout here). These pins have internal 1.8kΩ pull-up resistors, so they can be directly connected.
  3. MSP430 Launchpad When soldering the breakout board, omit the 2.2kΩ resistors to make the RTC run on 3 Volt logic. Connect the SDA and SCL pins on the RTC to the SDA and SCL pins on the Launchpad board, respectively. You will need to add 1.8kΩ pull-up resistors to the SDA and SCL pins. See tutorial here.
    • MSP430F5529 Connect SDA -> P3.0 and SCL -> P3.1

Quick Overview

 DS1307 Real-Time Clock
Input Voltage5V
Power Consumption<500nA
Expected Accuracyloss 2-3 sec / day
Operating Temperature0 C to +70 C (Commercial)
I2C Address0x68
Price IC$5.06 here
Price Breakout Board$9.00 here

Related Tutorials

MSP430LaunchPad.RTCDS1307LaunchPad

DS1307 real-time clock on the MSP430 Launchpad with Energia
Setup the DS1307 real-time-clock with the MSP430 Launchpad and Energia.

External Links

  1. DS1307 Datasheet