SparkFun
SparkFun Real Time Clock Module
This is the SparkFun Real Time Clock (RTC) Module, this little breakout that uses the DS1307 to keep track of the current year, month, day as well as the cur...
Get notified when back in stock
This is the SparkFun Real Time Clock (RTC) Module, this little breakout that uses the DS1307 to keep track of the current year, month, day as well as the current time. The module comes fully assembled and includes a small CR1225 Lithium coin cell battery that will run the RTC for a minimum of 9 years (17 years typical) without an external 5V power supply.
The DS1307 RTC is accessed via the I2C protocol. We’ve written a test-bed to program the modules, this code should give you some insight on how to interface the module to any microcontroller using our example software I2C and BCD routines.
This rev of the Real Time Clock module finally adds I2C resistors and a larger battery pad to fix the problems with the battery shorting to the board.
Get Started with the RTC Module Hookup Guide
Features:
- Two wire I2C interface
- Hour : Minutes : Seconds AM/PM
- Day Month, Date - Year
- Leap year compensation
- Accurate calendar up to year 2100
- Battery backup included
- 1Hz output pin
- 56 Bytes of Non-volatile memory available to user
- 0x68 I2C Address
Dimensions: 0.75x0.75" (20x20mm)
Documents:
- Schematic
- Eagle Files
- Hookup Guide
- Datasheet (DS1307)
- Arduino Library
- Wiring Example
- Example 16F88 code
- Arduino Tutorial (Portuguese) Thanks Daniel Gonçalves!
- Bildr Tutorial
- GitHub (Design Files)
Jargon buster
Plain-language definitions for the technical terms used above.
- breakout
- A breakout board carries a small or fine-pitched component and brings its connections out to standard, breadboard- and header-friendly pins. Describing a part as a breakout means it can be wired into a project without soldering directly to the component's tiny contacts.
- CR1225
- CR1225 is a specific size of 3 V lithium coin cell, about 12 mm in diameter and 2.5 mm thick. The code matters because a coin-cell holder only fits one size, and a cell's capacity affects how long any device it powers can run before the battery needs replacing.
- microcontroller
- A microcontroller is a small computer on a single chip that runs a stored program and controls connected inputs and outputs such as buttons, sensors, displays and communication interfaces. In a device built around one, it is the part that executes the code and coordinates the device's behaviour.
- RTC
- A Real-Time Clock keeps track of time even when the main processor is asleep or powered down, usually with a small backup battery. It matters for data logging and tracking projects that need accurate timestamps.
Find this product in
Brands
Prototyping & Wiring
SparkFun Real Time Clock Module Schematic
Schematic · 35.3 KB · Click any page to view full size
DS1307 Datasheet
Datasheet · 361.7 KB · Click any page to view full size
Supplier page — sparkfun.com
Supplier Description · 650.1 KB · Click any page to view full size
Resources & Downloads
Guides, code examples, and more
Source Code
Open-source libraries, firmware & example projects for this product
Arduino library for setting and reading from the DS1307 real time clock (RTC)
68f64b1
over 9 years ago
· 10 commits
- examples Adding SQW to the example mix. almost 10 years ago
- src Fix bug in update that masked 2s from the tens digit for hours. over 9 years ago
- keywords.txt Initial commit of library. almost 10 years ago
- library.properties Updating library version number to 1.0.1 over 9 years ago
- LICENSE.md Updating license and readme. almost 10 years ago
- README.md Fixing hookup guide link. almost 10 years ago
Related Tutorials
Free guides on learn.littlebird.com.au