Skip to content
Advertisements

Simple Arduino based Alarm Clock with DS1302 RTC

                   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:

arduino-uno.jpg

 

DS1302 RTC module:

DS1302 RTC module

4*4 Matrix Keypad module:

4x4 matrix keypad

LCD i2c screen:

lcd i2c

 

Buzzer module, or the 2 pins buzzer:

Buzzer

 

In case you’re stuck on something you can check these previous tutorials about the modules above:

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

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

Arduino LCD I2C simple use and direct write from serial monitorArduino LCD I2C simple use and direct write from serial monitor

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

How to use a buzzer/piezo speaker with Arduino

 

Wiring:

schematic

 

Libraries and Code:

LCD i2c library You can chose this or download your own

Keypad library Or you can download it from Arduino IDE

RTC DS1302 virtuabotix library

Code: RTC_alarm_clock.ino

              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.

Advertisements

Yassine View All

Electronics, Automation engineering student... I try to share my little experience with other electronics amateur.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: