Skip to Content

RTC real time clock DS1307

🕒 Real Time Clock (RTC) Module – DS1307


Overview:

The DS1307 RTC Module is a battery-backed real-time clock that keeps accurate time even when your main microcontroller is powered off. It stores time in seconds, minutes, hours, day, date, month, and year format, and it’s widely used in Arduino and embedded systems for time-stamping, clocks, and scheduling.

Key Features:

  • Real-time clock with I²C interface

  • Maintains time even during power outage using CR2032 battery

  • Tracks seconds, minutes, hours, day, date, month, and year

  • 56 bytes of non-volatile battery-backed SRAM

  • Programmable square-wave output pin

  • Plug-and-play with Arduino, ESP32, STM32, and Raspberry Pi

Technical Specifications:

ParameterValue
ICDS1307
Voltage Range3.3V – 5.5V
InterfaceI²C (SDA, SCL)
SRAM56 bytes
Clock Accuracy±2 ppm (typical)
BatteryCR2032 (not always included)
Dimensions~28mm x 27mm

Wiring with Arduino Uno (I²C):

RTC Module PinArduino Pin
VCC5V
GNDGND
SDAA4
SCLA5

💡 Make sure a CR2032 battery is installed to maintain time when unplugged.

📦 Applications:

  • Digital clocks and time displays

  • Data logging with timestamps

  • Smart home automation scheduling

  • Alarm systems

  • Real-time control systems

📚 Library:

Library Name: RTClib by Adafruit

GitHub: https://github.com/adafruit/RTClib

✅ How to Install Library:

  1. Open Arduino IDE

  2. Go to Sketch > Include Library > Manage Libraries…

  3. Search for RTClib

  4. Click Install (by Adafruit)

🎥 YouTube Tutorial:

Title: Arduino Real Time Clock (RTC) Tutorial with DS1307 and LCD

https://www.youtube.com/watch?v=gOtNeRJVx8w&utm_source=chatgpt.com

80.00 LE 80.00 LE

This combination does not exist.

Sensor Module