🌐
Arduino
projecthub.arduino.cc › hibit › keeping-time-with-ds1302-real-time-clock-on-arduino-07d30b
Keeping time with DS1302: real-time clock on Arduino | Arduino Project Hub
April 17, 2025 - Clocks · Environmental Sensing · Home Automation · Monitoring · Smart appliances · Tools · Internet Of Things · Devices & Components · 1 · Arduino Nano · 1 · [HB] DS-1302 Module · 1 · [HB] CR2032 Battery · 1 · [HB] Mini Breadboard · 1 · [HB] Dupont wires · Software & Tools · Arduino IDE · Project description · Code · HiBit - DS1302 ·
🌐
GitHub
github.com › msparks › arduino-ds1302
GitHub - msparks/arduino-ds1302: Arduino library for the DS1302 Real Time Clock chip · GitHub
Arduino library for the DS1302 Real Time Clock chip - msparks/arduino-ds1302
Starred by 185 users
Forked by 113 users
Languages   C++
Discussions

DS1302 real time clock setup
I've been trying to set up the DS1302 RTC but I can't figure out how to set the date & time. I've been using this tutorial https://www.instructables.com/id/Arduino-Chicken-Coop-Controller/ (as it is similar to the project I am doing) however I can't figure out how to set up the clock from his code. More on forum.arduino.cc
🌐 forum.arduino.cc
9
0
March 14, 2020
How to use the DS1302 RTC module?
I looked up numerous tutorials and all of the referenced libraries do not work. My wiring is: VCC - 5v GND - gnd CLK - 12 DAT - 13 RST - 11 This is my current code, which always returns Current Date / Time: 45/25/2165 45:85:85 which never changes: #include // Creation of the Real Time Clock ... More on forum.arduino.cc
🌐 forum.arduino.cc
8
0
August 15, 2023
arduino - How do I implement a DS1302 real-time clock sensor into the following code? - Stack Overflow
The following code is code for an automated food delivery system, and this system needs to begin operating at a specific time, 12 pm sharp. How can I, using Arduino IDE, implement a DS1302 real-time More on stackoverflow.com
🌐 stackoverflow.com
Using Real-Time Clock DS1302 module to trigger event at regular interval
I managed using the sketch below. I am using this library: GitHub - msparks/arduino-ds1302: Arduino library for the DS1302 Real Time Clock chip but maybe there is a better one? // Example sketch for interfacing with the DS1302 timekeeping chip. // // Copyright (c) 2009, Mat... More on forum.arduino.cc
🌐 forum.arduino.cc
0
0
December 16, 2019
🌐
Arduino Forum
forum.arduino.cc › projects › general guidance
DS1302 real time clock setup - General Guidance - Arduino Forum
March 14, 2020 - I've been trying to set up the DS1302 RTC but I can't figure out how to set the date & time. I've been using this tutorial https://www.instructables.com/id/Arduino-Chicken-Coop-Controller/ (as it is similar to the projec…
🌐
SunFounder
docs.sunfounder.com › projects › umsk › en › latest › 02_arduino › uno_lesson16_ds1302.html
Lesson 16: Real Time Clock Module (DS1302) — SunFounder Universal Maker Sensor Kit documentation
In this lesson, you will learn how to set up and use a Real Time Clock (RTC) module with an Arduino. We’ll cover initializing the RTC DS1302 module, displaying the current date and time on the serial monitor, and ensuring accurate timekeeping.
🌐
Electropeak
electropeak.com › learn › interfacing-ds1302-real-time-clock-rtc-module-with-arduino
DS1302 RTC Module Interfacing with Arduino for Accurate Timekeeping
May 24, 2023 - The DS1302 real time clock module is a cheap module with high accuracy that can be used in different projects. This RTC module provides seconds, minutes, hours, day, date, month, and year information.
🌐
Arduino Intro
arduinointro.com › articles › projects › creating-an-arduino-clock-with-ds1302-rtc-module-and-i2c-lcd-display
Creating an Arduino Clock with DS1302 RTC Module and I2C LCD Display
December 27, 2024 - The DS1302 module is reliable and easy to interface with Arduino, making it ideal for beginners. Its low power consumption means it can run on a small battery for years, maintaining accurate time even when the main power is off.
🌐
Instructables
instructables.com › circuits › arduino
Real Time Clock - DS1302 : 8 Steps - Instructables
October 18, 2017 - Real Time Clock - DS1302: This is a VERY simple tutorial on how to use the DS1302 Real Time Clock with an Arduino, or Versilino, board. I will walk you through the wiring, code, and example. All of which can be found at www.Virtuabotix.com. This is my ifrst…
Find elsewhere
🌐
Lonely Binary
lonelybinary.com › en-us › blogs › learn › ds1302
Using the Real-Time Clock DS1302 module with Arduino UNO R3 – Lonely Binary
July 4, 2023 - The DS1302 accurately keeps track of time, including hours, minutes, seconds, date, month, and year. It has a built-in clock circuit that runs on an external 32.768 kHz crystal oscillator.The DS1302 has a built-in trickle charger and a small ...
🌐
HiBit
hibit.dev › posts › 130 › keeping-time-with-ds1302-real-time-clock-on-arduino
Keeping time with DS1302: real-time clock on Arduino - HiBit
March 26, 2026 - Therefore, we've created an extension file, available in our official repository, that can autonomously detect and set the current time on the module. To verify the proper functioning of our module, we use the serial monitor. Your serial monitor should display values closely resembling those visible in the image above. In a world where timing is everything, the DS1302 module and your Arduino can be a dynamic duo. It keeps your projects running like clockwork, and the best part is, it's not overly complicated to set up.
🌐
Arduino Forum
forum.arduino.cc › other hardware › sensors
How to use the DS1302 RTC module? - Sensors - Arduino Forum
August 15, 2023 - I looked up numerous tutorials and all of the referenced libraries do not work. My wiring is: VCC - 5v GND - gnd CLK - 12 DAT - 13 RST - 11 This is my current code, which always returns Current Date / Time: 45/25/2165 45:85:85 which never changes: #include // Creation of the Real Time Clock Object virtuabotixRTC myRTC(12, 13, 11); void setup() { Serial.begin(9600); // Set the current date, and time in the following format: // seconds, minutes, hours, day of t...
🌐
Tastethecode
tastethecode.com › how-to-use-arduino-real-time-clock-module-with-ds1302-chip
How to use Arduino Real Time Clock module with DS1302 chip
April 6, 2021 - Once restored, the Arduino would have lost track of the time so we would need to set it again. To prevent this from happening, there are certain special-purpose chips, called real-time clocks (RTC) whose sole purpose is to keep track of time. One such chip is the DS1302 which I recently got and played with a bit.
🌐
SunFounder
docs.sunfounder.com › projects › umsk › en › latest › 01_components_basic › 16-component_rtc_ds1302.html
Real Time Clock Module (DS1302) — SunFounder Universal Maker Sensor Kit documentation
The DS1302 module is a Real-Time Clock (RTC) module that can track years, months, days, weekdays, hours, minutes, and seconds. It also has the ability to adjust for leap years.
🌐
Instructables
instructables.com › circuits › arduino
Arduino Nano: DS1302 Real Time Clock(RTC) With Visuino : 6 Steps - Instructables
October 1, 2017 - Arduino Nano: DS1302 Real Time Clock(RTC) With Visuino: DS1302 Real Time Clock are widely available low cost RTC modules. They come with a clock and a small battery, and when connected to Arduino, can keep track of real time even when the Arduino ...
🌐
GitHub
github.com › Erriez › ErriezDS1302
GitHub - Erriez/ErriezDS1302: Erriez 3-wire DS1302 Real Time Clock library for Arduino · GitHub
September 9, 2020 - This is a 3-wire DS1302 RTC (Real Time Clock) library for Arduino.
Starred by 24 users
Forked by 7 users
Languages   C++
🌐
Stack Overflow
stackoverflow.com › questions › 77711950 › how-do-i-implement-a-ds1302-real-time-clock-sensor-into-the-following-code
arduino - How do I implement a DS1302 real-time clock sensor into the following code? - Stack Overflow
There are several ways to implement it, and also depends on which board You are using. Unfortunately the DS1302 RTC (real time clock) has no hardware alarm capability (no output that can trigger, for example, and Arduino microcontroller interrupt).
🌐
Arduino
projecthub.arduino.cc › SurtrTech › simple-alarm-clock-with-ds1302-rtc-72582d
Simple Alarm Clock with DS1302 RTC | Arduino Project Hub
An alarm clock using a DS1302 RTC and a buzzer. You can set the RTC by a keypad as well as set the alarm.
🌐
Instructables
instructables.com › circuits › arduino
Real Time Clock : Arduino UNO + DS1302 Rtc Module + Buzzer + LCD 16x2 I2C : 4 Steps - Instructables
November 30, 2025 - Real Time Clock : Arduino UNO + DS1302 Rtc Module + Buzzer + LCD 16x2 I2C: In this project, the DS1302 (real time clock) module has been used to get the time, the 16x2 LCD screen to display it and the buzzer to make a sound every hour.
🌐
Arduino Forum
forum.arduino.cc › projects › general guidance
Using Real-Time Clock DS1302 module to trigger event at regular interval - General Guidance - Arduino Forum
December 16, 2019 - Hello, I am using an Arduino UNO R3 with an RTC DS1302 to trigger an event, like blink an LED every 10 seconds. This is the RTC module: This is my first time using an RTC DS1302 and i first had to set the correct time. I managed using the sketch below. I am using this library: GitHub - msparks/arduino-ds1302: Arduino library for the DS1302 Real Time Clock chip but maybe there is a better one?
🌐
Goodliffe
goodliffe.org.uk › arduino › rtc_ds1302.php
Arduino basics - Real Time Clock - RTC DS1302
When you switch it on for the first time, set it manually (hardcoded; see the code below) to the current date and time; then, to ensure you don't reset it to that hardcoded time repeatedly, modify the sketch and remove the lines from the 'setup' function and upload the sketch again. In theory, the RTC will then keep track of time using the on-board battery while the RTC is unplugged from the arduino.