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.
Wiring:
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:
- RTC Library
- LCD i2c Library
- Keypad Library (Or download it via Arduino IDE as I showed in the video)
And here’s the code I’ve used to download:
Categories
Yassine View All
Automation and Electrical Engineer, Electronics amateur trying to share my little projects.
It does not work duuuuuuuuuuude!
If you tell me the problem I could help maybe
What about the virtualbotnixRTC Library
Sorry I don’t understand, if you want the library you can download it from the link in the article !