Arduino digital Clock with DS1302 RTC module

Arduino UNO 20-02-26
22 0

Tutorial plan

1- Objective of the project

2- Required Components

3- Circuit Connections of system

4- Arduino Clock program

 

 

Objective of the project

Objective :

The objective of this project is to design and build a digital clock using an Arduino Uno, a DS1302 RTC Module, and a LCD I2C Display. The project aims to display the current time and date in real time on the LCD screen. It helps users learn how to interface a real-time clock module with Arduino and how to display information using an I2C LCD display. This project is useful for understanding embedded systems, time management applications, and electronic display control.

Functionment (How it Works) :

The system works by using the Arduino as the main controller. The DS1302 RTC module keeps track of the current time and date continuously, even when the Arduino is powered off, thanks to its backup battery. When the Arduino is powered on, it communicates with the RTC module to read the stored time and date values.

The Arduino then processes this information and sends it to the LCD I2C display using the I2C communication protocol. The LCD screen shows the time (hours, minutes, seconds) and the date (day, month, year) clearly for the user. The Arduino updates the display every second to ensure that the clock always shows the correct current time.

This project demonstrates how a microcontroller can interact with a real-time clock module and a display to create a practical and reliable digital clock system.

 

Required Components

1. Arduino UNO

Arduino Uno

The Arduino board is the main controller of the project. It reads the current time and date from the RTC module and sends this information to the LCD display. It also controls the communication between all connected components. The Arduino executes the program instructions and ensures the clock updates continuously.

2. DS1302 RTC Module

The Maxim Integrated DS1302 RTC (Real-Time Clock) module is used to keep track of the current time and date. It can store seconds, minutes, hours, day, month, and year. The module has a backup battery, which allows it to continue keeping time even when the Arduino is turned off. This ensures accurate and continuous timekeeping.

5. LCD Display with I2C Module

The LCD I2C display is used to show the date and time to the user. It uses the I2C communication protocol, which requires only two wires (SDA and SCL), making connections simpler. The display can show text such as the day, date, and current time in real time.

6. Jumper Wires

Jumper wires

Jumper wires are used to connect the Arduino, RTC module, and LCD display together. They allow electrical signals and power to flow between the components.

 

Circuit Connections of system

 

1- Connection of DS1302 RTC Module to Arduino UNO

DS1302 RTC Arduino UNO
CLK pin 5
DAT pin 6
RST pin 7
VCC 5V
GND GND

 

2- Connection of LCD I2C display to ESP32

LCD display Arduino UNO
VCC 5V
GND GND
SDA pin A4
SCL pin A5

 

Arduino Clock program

This program creates a digital clock using an Arduino Uno, a DS1302 RTC Module, and an LCD I2C Display. Its main purpose is to read the current date and time from the RTC module and display them clearly on the LCD screen.

You need to install this libraries :

LiquidCrystal_I2C for I2C LCD screen

ErriezDS1302-master for DS1302 RTC module

0 comment

Leave a comment

Veuillez noter s'il vous plaît*

Votre adresse e-mail ne sera pas publiée. Les champs obligatoires sont indiqués avec *

Purpose of this website

Educational robotics refers to the use of robots and robotics technology to promote learning in educational settings. It involves the integration of technology, engineering, and computer science into the classroom, allowing students to engage in hands-on, project-based learning experiences.
In this context, our website represents an excellent resource for parents, teachers and children who wish to discover robotics.

Contact details

Zaouiet Kontech-Jemmel-Monastir-Tunisia

+216 92 886 231

medaliprof@gmail.com

Pictures of the articles

Robotic site created by Mohamed Ali Haj Salah - Teacher info