DS1307 RTC IC
Simple I2C real-time clock with a 32.768 kHz crystal.
FunctionReal-time clock with 56 bytes RAM
Supply voltage4.5 to 5.5 V plus 3 V backup
Inputs and outputsI2C (0x68), square wave out
PackageDIP-8
Integrated CircuitsReviewedMPN DS1307Used in 2 projects
In short
What is the DS1307 RTC IC and what is it used for?
Simple I2C real-time clock with a 32.768 kHz crystal. Makers use it for clocks on a budget.
How it works
A counter driven by a watch crystal keeps time, with a backup battery switch-over.
Key specifications
| Integrated circuit spec | Value |
|---|---|
| Function | Real-time clock with 56 bytes RAM |
| Supply voltage | 4.5 to 5.5 V plus 3 V backup |
| Inputs and outputs | I2C (0x68), square wave out |
| Package | DIP-8 |
| Watch out for | Drifts a few seconds a day; DS3231 is more accurate |
Pinout
1and 2X1 and X2, 32.768 kHz crystal
3VBAT, 3 V backup cell
4GND
5SDA
6SCL
7SQW/OUT square wave
8VCC, 5 V
How to use it
Needs a 5 V supply and a 32.768 kHz crystal close to the pins. Address 0x68. Use RTClib. It drifts several seconds a day with temperature, so for accuracy use a DS3231.
Applications
Clocks on a budget
Builds that use it
Alternatives
- DS3231 RTC IC (SOIC-16)Temperature-compensated, far more accurate
- PCF8563 RTCLow-power, works at 3.3 V
Common questions
What is the DS1307 RTC IC used for?
In maker projects: clocks on a budget.
How does the DS1307 RTC IC work?
A counter driven by a watch crystal keeps time, with a backup battery switch-over.
What voltage does the DS1307 RTC IC need?
4.5 to 5.5 V plus 3 V backup.
What can I use instead of the DS1307 RTC IC?
DS3231 RTC IC (SOIC-16) and PCF8563 RTC.
