Skip to content

How to setup DS1302 RTC module with Keypad + Arduino + LCD

Hello everyone,

In this tutorial we gonna make a project suggested by one of the viewers, which is setting up the DS1302 Real Time Clock module using a Keypad, of cours we’re using a LCD screen to show the date and time, also helps us to set them up.

The functionning is quiet simple, the LCD is continuously showing the current time and date, when we press “*” button it let us to set the date and time and then it shows the new value until you change them again. The code also is simple and easy to understand you can put it in your project if it’s more complexe.

Before you start this project I recommend always to start by knowing well every module (if you have enough time for sure) then combine them until you get to your goal, by this way you can easily spot a problem and find the soution, here you can check every module I used with its own tutorial:

How to simply use DS1302 RTC module with Arduino board and LCD screen

Arduino LCD I2C simple use and direct write from serial monitor

Arduino uno + 4×4 Keypad Matrix + LCD i2c screen

Watch the video above for more explanations.



This is the wiring you can add or not that 1k resistor it depends if you have the same problem as I got (see in RTC tutorial)

Libraries and codes:

Clic on what you need to download:

And here’s the code I’ve used to download:

Yassine View All

Automation and Electrical Engineer, Electronics amateur trying to share my little projects.

7 thoughts on “How to setup DS1302 RTC module with Keypad + Arduino + LCD Leave a comment

Leave a Reply

%d bloggers like this: