Skip to main content

Worldwide Shipping · Secure Payments

AI Summary

A compact DS1302 real time clock module that keeps accurate time and date with a 32.768kHz crystal and CR1220 battery backup. It gives your microcontroller project reliable timekeeping even when main power is switched off.

Key Highlights

  • DS1302 RTC IC with 32.768kHz crystal for stable timekeeping
  • CR1220 battery maintains the clock when power is removed
  • Tracks seconds, minutes, hours, day of month, day of week and year
  • Compact 26 x 16mm PCB weighing about 3 grams
  • Simple 5-pin interface: VCC, GND, CLK, DAT and RST
  • Works from a 5V or 3.3V supply

Ideal For

  • Arduino and microcontroller hobbyists adding timekeeping
  • Students building clock and calendar display projects
  • Makers creating data loggers with timestamps
  • Hobbyists automating sprinkler or irrigation schedules
  • Anyone building attendance or access logging prototypes

Buying Tip

Check that a CR1220 cell is fitted and seated correctly before relying on backup timekeeping, since the clock only holds its setting while that battery is present.

Elecvora expert review

Our verdict

A simple, low-cost way to add battery-backed timekeeping to a microcontroller project. The small PCB and five-pin interface make it easy to wire, though it is a basic clock rather than a precision time source.

AI-assisted analysis based on the manufacturer's specifications. Not a hands-on lab test.

Pros

  • Compact 26 x 16mm board fits tight enclosures
  • Battery backup keeps time across power cycles
  • Straightforward five-pin wiring
  • Tracks full date and day of week

Cons

  • Requires a separate CR1220 battery
  • Operating range limited to 0 to 80 degrees Celsius
  • No temperature compensation mentioned in the specifications

Best for

Hobbyists and students adding basic timekeeping to microcontroller projects

Not ideal for

Applications needing precision timekeeping outside the stated temperature range

Specifications

Item TypeRTC Module
Model No. / NameDS1302
IC ChipDS1302
Batteries RequiredCR1220
Output Frequency32.768KHz
Operating Temperature (°C)0 to 80
PCB Size ( L x W ) mm26 x 16
Weight (g)3
Shipping Weight0.005 kg
Shipping Dimensions8 × 6 × 3 cm

What's in the box

  • 1 x DS1302 Real Time Clock Module with battery

Frequently Asked Questions

What is the DS1302 module used for?
It provides accurate date and time information to a microcontroller project, so your code can schedule actions or timestamp readings. It behaves like a small digital watch for your circuit.
What voltage does the module need?
The module accepts a 5V or 3.3V supply on the VCC pin, with GND connected to ground. The CLK, DAT and RST lines are used to communicate with your microcontroller.
Does it keep time when power is off?
Yes, provided a CR1220 battery is fitted. The battery maintains the clock while the main supply is disconnected.
What time values can it track?
It tracks seconds, minutes, hours, day of month, day of week and year.
What is included with the module?
You receive one DS1302 Real Time Clock Module with a battery.
How should I look after the module?
Keep it within the stated 0 to 80 degrees Celsius operating range and avoid bending the header pins. Replace the CR1220 cell when backup timekeeping stops working.

Overview

The DS1302 Real Time Clock Module is a small breakout board that gives your electronics project a dependable sense of time. At its centre is the DS1302 clock IC, paired with a 32.768kHz crystal that provides the timing reference. A CR1220 battery keeps the clock running when the main supply is disconnected, so your project can return to the correct date and time after a power cycle.

The board tracks seconds, minutes, hours, day of month, day of week and year. It is a practical building block for anyone who needs scheduled actions, timestamped readings or a simple clock display without relying on a network connection.

Key Features

  • DS1302 real time clock IC on a compact 26 x 16mm PCB
  • 32.768kHz crystal oscillator for the clock reference
  • CR1220 battery backup keeps time during power loss
  • Tracks seconds, minutes, hours, day of month, day of week and year
  • Five-pin interface: VCC, GND, CLK, DAT and RST
  • Lightweight at roughly 3 grams, easy to mount in small builds

Specifications Explained

Clock IC and crystal

The DS1302 handles the counting and storage of time values, while the 32.768kHz crystal supplies the steady oscillation the IC divides down into one-second ticks. This is the same reference frequency used in many watches, which is why the module behaves much like a small digital watch.

Battery backup

A CR1220 cell powers the clock only when main power is off. That means your project does not lose its time setting each time it is switched off or unplugged.

Supply voltage and pins

The module accepts a 5V or 3.3V supply on VCC, with GND for ground. CLK, DAT and RST are the serial control lines used to read and set the time from a microcontroller.

Size and temperature range

At 26 x 16mm and about 3 grams, the board suits compact enclosures. The stated operating range of 0 to 80 degrees Celsius covers typical indoor and sheltered installations.

Compatibility and Requirements

The module needs a microcontroller with three free GPIO lines for CLK, DAT and RST, plus a 5V or 3.3V supply and ground. A CR1220 battery is required for backup operation. Wiring follows the labelled pins: VCC to supply, GND to ground, CLK, DAT and RST to your chosen GPIO pins.

Typical Uses

  • Attendance and access logging systems
  • Digital camera and interval timer projects
  • Automated sprinkler and irrigation scheduling
  • Time and calendar displays
  • Data loggers that need timestamped readings

What's in the Box

One DS1302 Real Time Clock Module with a battery fitted.

Quick specs

Item Type
RTC Module
Model No. / Name
DS1302
IC Chip
DS1302
Batteries Required
CR1220
Output Frequency
32.768KHz
Operating Temperature (°C)
0 to 80
See all specifications