top of page

Overview:

The DS1302 Clock Module is a real-time clock (RTC) designed to keep track of time and date even when the main microcontroller is powered off. It features a built-in battery backup system to ensure data retention, making it ideal for projects requiring precise timekeeping, such as alarms, time-stamped data logging, or event scheduling.

This module uses a simple and efficient 3-wire SPI interface to communicate with microcontrollers like Arduino, ESP32, or Raspberry Pi. Its compact design and low power consumption make it an excellent choice for embedded systems that need accurate time management.

            DS1302 Clock Module

            SKU: SENS45-CLK
            $999.00Price
            • Key Features

              • Real-time clock functionality to track seconds, minutes, hours, day, date, month, and year.

               

               

              • Built-in battery backup to maintain timekeeping even during power loss.

               

               

              • Low power consumption for long-term use.

               

               

              • Simple 3-wire SPI communication interface for easy integration.

               

               

              • Programmable clock frequency output.

               

               

              • Compact and lightweight design for embedded applications.

               

               

              • Compatible with microcontrollers like Arduino, ESP32, and Raspberry Pi.

               

               

               

               

              Specifications

              • Chip: DS1302 Real-Time Clock (RTC).

               

               

              • Communication Protocol: 3-wire SPI (SCLK, I/O, CE).

               

               

              • Operating Voltage: 2V–5.5V.

               

               

              • Backup Battery: Supports CR2032 coin cell battery for data retention.

               

               

              • Timekeeping Range: 00:00:00 (seconds) to 23:59:59 (hours).

               

               

              • Calendar Range: Year 2000 to 2099, with leap year compensation.

               

               

              • Clock Accuracy: ±1 second per day at 25°C.

               

               

              • Programmable Output: Square wave output with programmable frequencies (1Hz, 4kHz, 8kHz, 32kHz).

               

               

              • Dimensions: Compact, suitable for integration into embedded systems.

               

               

               

               

               

              Applications

              • Data Logging:

                • Record time-stamped sensor data for analysis.
                • Useful in weather stations, temperature loggers, and IoT applications.

               

               

              • Alarms and Timers:

                • Create programmable alarms or reminders in embedded systems.
                • Ideal for clock-based automation systems.

               

               

              • Event Scheduling:

                • Automate tasks based on a predefined time, such as turning lights on/off or starting devices.
                • Suitable for home automation and industrial controls.

               

               

              • Time-Based Displays:

                • Build digital clocks, calendar systems, or countdown timers.
                • Perfect for educational projects or consumer electronics.

               

               

              • Backup Timekeeping:

                • Maintain accurate time across power outages using a battery backup.
                • Useful in devices where continuous timekeeping is critical, like security systems or medical equipment.

               

               

               

              • Game Development:

                • Implement time-based mechanics like cooldowns or event triggers.

               

               

              • Access Control:

                • Enable time-restricted access to buildings or systems using the RTC for authentication timing.

               

               

               

               

              Libraries

              • Arduino DS1302 Library:

                • Library: DS1302.h or similar RTC libraries.
                • Provides functions for reading and setting time and date.
                • Example Functions:
                  • rtc.begin(): Initializes the DS1302 module.
                  • rtc.setTime(hour, minute, second): Sets the time.
                  • rtc.setDate(day, month, year): Sets the date.
                  • rtc.getTime(): Reads the current time.
                  • rtc.getDate(): Reads the current date.

               

              • ESP32/ESP8266 Libraries:

                • Compatible with Arduino libraries for time management via SPI.
            bottom of page