Arduino DS1302 RTC Alarm Clock

Introduction: Arduino DS1302 RTC Alarm Clock

About: Hi, I'm an electronics and Arduino amateur, I try to share with you my experience and little projects, hope you like it. visit my youtube channel for more projects goo.gl/KSZVRG

Hello, I wanted to share with you this little project, it's about a diy alarm clock based on Arduino UNO board and DS1302 RTC Module, you can setup the date and time by keyboard and also set the alarm for a specified time. I hope you like it.

Step 1: Hardware Needed

For this we gonna need first an Arduino board, I'm using an Arduino UNO, you can use another one just make sure of the number of pins.

- An RTC module, here I'm using DS1302.

- LCD i2c screen.

- 4*4 Keypad Matrix.

- and A buzzer, you can use the module or the 2 wires component.

- 1kOhm resistor, some jump wires and a breadboard.

Step 2: Wiring

The wiring is like in the picture, things that should be wired with GND and 5v like RTC, LCD and the buzzer.

RTC pins are wired from D2 to D5 and I'm using the 1k resistor with DAT pin and D4 so we get the correct date and time, it's a common solution.

LCD SDA and SCL are wired with A4 and A5.

Keypad from right to left (D5-D12).

and the buzzer with D13 which is the internal LED of the Arduino UNO.

Step 3: Code and Functionning

The code and libraries I used, you can find them in the link: https://goo.gl/jdSdLp

The functionning is pretty simple: you press "*" on the keypad to set up the current time and date, then "A" to set the Alarm time. You can customize your ringtone if you're good with makine sounds with buzzer or look for them on the internet.

Enjoy, and if you have any problem or question feel free to ask.

Be the First to Share

    Recommendations

    • Puzzles Speed Challenge

      Puzzles Speed Challenge
    • "Can't Touch This" Family Contest

      "Can't Touch This" Family Contest
    • CNC Contest 2020

      CNC Contest 2020

    2 Discussions

    0
    ruthko
    ruthko

    1 year ago on Step 3

    hi
    how the batery save the data
    tanks

    0
    AYassineLebouiha
    AYassineLebouiha

    Reply 1 year ago

    The battery keeps the power in the module, while it's not wired with anything else, and the IC keeps counting with the help of the module's crystal which keeps up with the real time.