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:
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:
- 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:
Automation and Electrical Engineer, Electronics amateur trying to share my little projects.