Hello everyone, in this project we’ll try to make an easy alarm clock with Arduino UNO board, this project is a mix of different modules that I used before, if you’re stuck on something you can check in the website for the module tutorial, because that’s how I usually work: Do things separately and then start mixing :D.
For this project we will need:
Arduino UNO Board, or you can use what suits you:
DS1302 RTC module:
4*4 Matrix Keypad module:
LCD i2c screen:
Buzzer module, or the 2 pins buzzer:
In case you’re stuck on something you can check these previous tutorials about the modules above:
Libraries and Code:
LCD i2c library You can chose this or download your own
Keypad library Or you can download it from Arduino IDE
Code: RTC_alarm_clock.ino (Major changes were made 12/04/18)
Code functionning is pretty simple, after wiring the module you can press « * » to set the time and date on the DS1302 RTC, the display will show then the current day and time if you want to set the alarm you press « A » and you can set which hour and minute, and you can deactivate it by pressing « B » before time or pressing any button while ringing.
I hope you like it, any problem you can contact me.
Electronics, Automation engineering student... I try to share my little experience with other electronics amateur.