DS1302 RTC Real Time Clock Module without battery

  • Tracks seconds, minutes, hours, day, date, month, and year
  • Leap year compensation for accurate calendaring
  • 3-wire serial interface (CLK, I/O, CE) – Arduino compatible
  • Low power consumption for battery-backed operation
  • Onboard crystal oscillator for stable timekeeping
  • Includes battery holder for CR2032 (battery not included)
  • Supports 12-hour or 24-hour time format

Apple Shopping Event

Hurry and get discounts on all Apple devices up to 20%

30,00 EGP

12 People watching this product now!

Payment Methods:

Description

DS1302 is DALLAS company launched a trickle charge clock chip, containing a real-time clock/calendar and 31 bytes of static RAM, communicating through serial interface simple and single-chip microcomputer. The real-time clock/calendar circuit provides seconds, hours, days, weeks, months, years of information, a number of days in the month and leap year can automatically adjust. The clock operation instructions through the AM/PM decided to use 24 or 12-hour format.

Between DS1302 and single-chip microcomputer can simply use synchronous serial communication method, only three lines:
(1) RST
(2) I/O reset the data line
(3) SCLK serial clock.

Clock /RAM read/write data to a byte character set or as many as 31-byte communication. DS1302 work power consumption is very low to keep the data and clock information when power is less than 1mW

Wiring method (to provide procedures, for example, can pick up any IO port, in the procedure to modify the port definitions :

VCC:+5V/3.3V
GND: GND
CLK: P02
DAT: P01
RST: P00

Note:

1.VCC and GND do not reverse, so as not to burn the chip
2.51 SCM P0 port to receive a pull-up resistor, if your computer is not connected pull-up resistor, the data can be the string to the other port.


Specifications and Features:

  1. The real-time clock counts minutes, seconds, date, hours, month day of the week, year and leap-year compensation up to 2100.
  2. 318 temporary data storage RAM
  3. Working current of 2.0V, less than 300nA
  4. Read / Write clock or RAM data with two kinds of mode of single-byte transfer mode and multi-byte character set
  5. 8 pin DIP package or optional 8 pin SOIC package based on the surface assembly
  6. Simple 3 wire interface
  7. Compatible with TTL Vcc=5V
  8. Double power supply pipe for main power and backup power supply.

Useful Links:

Arduino DS1302 Real Time Clock 
Using the Real-Time Clock module on Raspberry Pi


Package Includes:

1 x DS1302 RTC Real Time Clock Module with Battery

🔌
Pin Connections
1 Table
Pin Connections Table 1
BoardSensor PinConnection
DS1302VCC/GND/CLK/DAT/RST3.3-5V / GND / board digital / board digital / board digital
📟
DS1302 RTC Real Time Clock Module without battery
7 Examples • C/C++ | Boards: Arduino Uno, Arduino Nano, Arduino Mega, ESP32, ESP8266, STM32, Raspberry Pi Pico
DS1302 RTC Real Time Clock Module without battery - Arduino Uno
DS1302 RTC Real Time Clock Module without battery - Arduino Nano
DS1302 RTC Real Time Clock Module without battery - Arduino Mega
DS1302 RTC Real Time Clock Module without battery - ESP32
DS1302 RTC Real Time Clock Module without battery - ESP8266
DS1302 RTC Real Time Clock Module without battery - STM32
DS1302 RTC Real Time Clock Module without battery - Raspberry Pi Pico
📄 File: ds1302_rtc_real_time_clock_module_without_battery_-_arduino_uno.inoArduino Uno
745 characters
1//ekostra.com
2//electronics store in egypt
3//+201008896258
4
5// CLK=5, DAT=6, RST=7 on Arduino Uno (bit-banged, so any digital pins work)
6#include <ThreeWire.h>
7#include <RtcDS1302.h>
8
9ThreeWire myWire(6, 5, 7);
10RtcDS1302<ThreeWire> Rtc(myWire);
11
12void setup() {
13 Serial.begin(115200);
14 Rtc.Begin();
15 if (!Rtc.IsDateTimeValid()) {
16 Rtc.SetDateTime(RtcDateTime(__DATE__, __TIME__)); // set to compile time once, then it keeps its own time on battery
17 }
18}
19
20void loop() {
21 RtcDateTime now = Rtc.GetDateTime();
22 Serial.print(now.Year()); Serial.print("-"); Serial.print(now.Month()); Serial.print("-"); Serial.print(now.Day());
23 Serial.print(" "); Serial.print(now.Hour()); Serial.print(":"); Serial.println(now.Minute());
24 delay(1000);
25}
📄 File: ds1302_rtc_real_time_clock_module_without_battery_-_arduino_nano.inoArduino Nano
746 characters
1//ekostra.com
2//electronics store in egypt
3//+201008896258
4
5// CLK=5, DAT=6, RST=7 on Arduino Nano (bit-banged, so any digital pins work)
6#include <ThreeWire.h>
7#include <RtcDS1302.h>
8
9ThreeWire myWire(6, 5, 7);
10RtcDS1302<ThreeWire> Rtc(myWire);
11
12void setup() {
13 Serial.begin(115200);
14 Rtc.Begin();
15 if (!Rtc.IsDateTimeValid()) {
16 Rtc.SetDateTime(RtcDateTime(__DATE__, __TIME__)); // set to compile time once, then it keeps its own time on battery
17 }
18}
19
20void loop() {
21 RtcDateTime now = Rtc.GetDateTime();
22 Serial.print(now.Year()); Serial.print("-"); Serial.print(now.Month()); Serial.print("-"); Serial.print(now.Day());
23 Serial.print(" "); Serial.print(now.Hour()); Serial.print(":"); Serial.println(now.Minute());
24 delay(1000);
25}
📄 File: ds1302_rtc_real_time_clock_module_without_battery_-_arduino_mega.inoArduino Mega
746 characters
1//ekostra.com
2//electronics store in egypt
3//+201008896258
4
5// CLK=5, DAT=6, RST=7 on Arduino Mega (bit-banged, so any digital pins work)
6#include <ThreeWire.h>
7#include <RtcDS1302.h>
8
9ThreeWire myWire(6, 5, 7);
10RtcDS1302<ThreeWire> Rtc(myWire);
11
12void setup() {
13 Serial.begin(115200);
14 Rtc.Begin();
15 if (!Rtc.IsDateTimeValid()) {
16 Rtc.SetDateTime(RtcDateTime(__DATE__, __TIME__)); // set to compile time once, then it keeps its own time on battery
17 }
18}
19
20void loop() {
21 RtcDateTime now = Rtc.GetDateTime();
22 Serial.print(now.Year()); Serial.print("-"); Serial.print(now.Month()); Serial.print("-"); Serial.print(now.Day());
23 Serial.print(" "); Serial.print(now.Hour()); Serial.print(":"); Serial.println(now.Minute());
24 delay(1000);
25}
📄 File: ds1302_rtc_real_time_clock_module_without_battery_-_esp32.inoESP32
745 characters
1//ekostra.com
2//electronics store in egypt
3//+201008896258
4
5// CLK=18, DAT=19, RST=21 on ESP32 (bit-banged, so any digital pins work)
6#include <ThreeWire.h>
7#include <RtcDS1302.h>
8
9ThreeWire myWire(19, 18, 21);
10RtcDS1302<ThreeWire> Rtc(myWire);
11
12void setup() {
13 Serial.begin(115200);
14 Rtc.Begin();
15 if (!Rtc.IsDateTimeValid()) {
16 Rtc.SetDateTime(RtcDateTime(__DATE__, __TIME__)); // set to compile time once, then it keeps its own time on battery
17 }
18}
19
20void loop() {
21 RtcDateTime now = Rtc.GetDateTime();
22 Serial.print(now.Year()); Serial.print("-"); Serial.print(now.Month()); Serial.print("-"); Serial.print(now.Day());
23 Serial.print(" "); Serial.print(now.Hour()); Serial.print(":"); Serial.println(now.Minute());
24 delay(1000);
25}
📄 File: ds1302_rtc_real_time_clock_module_without_battery_-_esp8266.inoESP8266
747 characters
1//ekostra.com
2//electronics store in egypt
3//+201008896258
4
5// CLK=D5, DAT=D6, RST=D7 on ESP8266 (bit-banged, so any digital pins work)
6#include <ThreeWire.h>
7#include <RtcDS1302.h>
8
9ThreeWire myWire(D6, D5, D7);
10RtcDS1302<ThreeWire> Rtc(myWire);
11
12void setup() {
13 Serial.begin(115200);
14 Rtc.Begin();
15 if (!Rtc.IsDateTimeValid()) {
16 Rtc.SetDateTime(RtcDateTime(__DATE__, __TIME__)); // set to compile time once, then it keeps its own time on battery
17 }
18}
19
20void loop() {
21 RtcDateTime now = Rtc.GetDateTime();
22 Serial.print(now.Year()); Serial.print("-"); Serial.print(now.Month()); Serial.print("-"); Serial.print(now.Day());
23 Serial.print(" "); Serial.print(now.Hour()); Serial.print(":"); Serial.println(now.Minute());
24 delay(1000);
25}
📄 File: ds1302_rtc_real_time_clock_module_without_battery_-_stm32.inoSTM32
751 characters
1//ekostra.com
2//electronics store in egypt
3//+201008896258
4
5// CLK=PB6, DAT=PB7, RST=PB8 on STM32 (bit-banged, so any digital pins work)
6#include <ThreeWire.h>
7#include <RtcDS1302.h>
8
9ThreeWire myWire(PB7, PB6, PB8);
10RtcDS1302<ThreeWire> Rtc(myWire);
11
12void setup() {
13 Serial.begin(115200);
14 Rtc.Begin();
15 if (!Rtc.IsDateTimeValid()) {
16 Rtc.SetDateTime(RtcDateTime(__DATE__, __TIME__)); // set to compile time once, then it keeps its own time on battery
17 }
18}
19
20void loop() {
21 RtcDateTime now = Rtc.GetDateTime();
22 Serial.print(now.Year()); Serial.print("-"); Serial.print(now.Month()); Serial.print("-"); Serial.print(now.Day());
23 Serial.print(" "); Serial.print(now.Hour()); Serial.print(":"); Serial.println(now.Minute());
24 delay(1000);
25}
📄 File: ds1302_rtc_real_time_clock_module_without_battery_-_raspberry_pi_pico.inoRaspberry Pi Pico
757 characters
1//ekostra.com
2//electronics store in egypt
3//+201008896258
4
5// CLK=18, DAT=19, RST=20 on Raspberry Pi Pico (bit-banged, so any digital pins work)
6#include <ThreeWire.h>
7#include <RtcDS1302.h>
8
9ThreeWire myWire(19, 18, 20);
10RtcDS1302<ThreeWire> Rtc(myWire);
11
12void setup() {
13 Serial.begin(115200);
14 Rtc.Begin();
15 if (!Rtc.IsDateTimeValid()) {
16 Rtc.SetDateTime(RtcDateTime(__DATE__, __TIME__)); // set to compile time once, then it keeps its own time on battery
17 }
18}
19
20void loop() {
21 RtcDateTime now = Rtc.GetDateTime();
22 Serial.print(now.Year()); Serial.print("-"); Serial.print(now.Month()); Serial.print("-"); Serial.print(now.Day());
23 Serial.print(" "); Serial.print(now.Hour()); Serial.print(":"); Serial.println(now.Minute());
24 delay(1000);
25}
3-wire (bit-banged) real-time clock module (no battery backup - resets on power loss).

Specification

Specification

WeightWeight9,0000 g
Dimensions3,2 × 2 × 1 cm
Product NameDS1302 RTC Real Time Clock Module (without battery)
TypeReal Time Clock (RTC) Module
RTC ChipDS1302
InterfaceSerial (3-Pin I/O: CLK, DAT, CE)
Supply Voltage5V DC
TimekeepingSeconds, Minutes, Hours, Day, Date, Month, Year (with Leap-Year Compensation)
Battery BackupNot Included (Supports 3V Coin Cell)
Clock Accuracy±2 ppm at 25°C
Operating Temperature Range-40°C – +85°C
Mounting TypePCB Module / Breadboard Compatible
MaterialFR-4 PCB with SMD Components
ApplicationsArduino / Microcontroller Projects, Timekeeping, Alarm Clocks, Data Logging
Package Contents1× DS1302 RTC Module (without battery)

Customer Reviews