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...
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 is a small circuit board that makes a tiny or hard-to-solder component easier to connect to with standard pins. It matters because this OLED module can be wired into a microcontroller project without needing to solder directly to the display’s fine contacts.
- CR1225
- CR1225 is a specific size of 3 V coin cell battery, about 12 mm wide and 2.5 mm thick. Checking this code matters because coin cell holders only fit certain battery sizes, and battery capacity affects how long a beacon can run.
- microcontroller
- A microcontroller is a small computer on a chip that runs your program and controls connected inputs and outputs. For this product, it is the part that reads buttons and sensors, drives the display and speaker, and communicates over Bluetooth.
- 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
Related Tutorials
Free guides on learn.littlebird.com.au