DS1302 Precision RTC Real Time Clock Memory Module
New Original 3-Wire Serial RTC for Arduino
The DS1302 is a lowpower serial realtime clock with built-in trickle charger, ideal for Arduino projects requiring accurate timekeeping with minimal pin usage.
Trickle Charge Feature - Charges backup capacitor automatically
3Wire Interface Uses only 3 pins for communication
Operating voltage is 2.0V to 5.5V - works with both 3.3V and 5V systems
Use common DS1302 library for easy integration
Ensure battery polarity is correct before insertion
Technical Specifications
| Parameter | Value |
|---|
| Supply Voltage | 2.0V to 5.5V |
| Backup Current | <300nA |
| Interface | 3-Wire Serial |
| Memory | 31 Bytes RAM |
| Time Format | 12/24 Hour |
| Date Format | YYMMDD-dd |
| Trickle Charge | Programmable |
= Key Features =
+Builtin Trickle Charger Maintains super capacitor or rechargeable battery
+Low Power Consumption - <300nA in backup mode
+31Byte RAM General purpose storage
+Simple 3Wire Interface CE, I/O, SCLK pins
+Wide Voltage Range - 2.0V to 5.5V operation
= Applications =
- Data logging and time-stamping
- Digital clock projects
- Standalone timers
- Security systems
- Battery-powered equipment
- Embedded system timekeeping
Versatile Voltage - Works with 3.3V and 5V logic
Trickle Charge - No battery replacement for years
√ CR2032 or capacitor compatible
√ 3-pin interface saves GPIO
√ Ready for Arduino projects
Connection Guide
Module to Arduino:
- VCC: 3.3V or 5V
- GND: Ground
- CE: Chip Enable (digital pin)
- I/O: Data line (digital pin)
- SCLK: Clock line (digital pin)
Use any digital pins for CE, I/O, SCLK
Can share pins with SPI devices
Do not exceed 5.5V supply
Programming Instructions
Install DS1302 library via Arduino IDE:
Basic functions:
- rtc.begin() - Initialize module
- rtc.setTime() - Set current time
- rtc.getTime() - Read current time
- rtc.setDate() - Set current date
- rtc.getDate() - Read current date
Time format:
- Hours: 023 (24hour) or 112 (12hour)
- Minutes: 0-59
- Seconds: 0-59
- Date: 131, Month: 112, Year: 0-99
Simple Control - Minimal programming required
Reliable Timekeeping - Maintains time for years
3-pin interface saves Arduino pins
Works with all Arduino boards
Troubleshooting
Module not responding:
- Check 3-wire connections
- Verify power supply
- Avoid loose wiring
Time lost on power-off:
- Install backup battery
- Check battery voltage
- Enable trickle charge mode