The digital clock with birthday alarm is a DYI alarm built using Arduino UNO, Adafruit OLED and DS 3231 RTC module. You can use this to remember your birthday or you can gift this project to your loved ones.
- Total 3 screens to display different content
- 1st screen for time and day
- 2nd screen for date and temperature
- 3rd screen for notification
- Each screen timer set for 3 seconds
- Display Time
- Display Day
- Display Date
- Temperature
- Display "happy birthday" on the given birthday date
- Arduino UNO (For programming)
- DS3231 RTC module
- Adafruit OLED display
- Jumper pins or wires
- Dotted PCB
First we will setup the date and time to the RTC module.
- Download the RTC module library from this link.
- Add the library to the Arduino IDE.
- Connect the coin cell to the RTC module.
- Connect SDA to UNO's A4, SCL to UNO's A5, VCC to UNO's 5v and GND to UNO's GND.
- Open the code present at program-code/code-to-set-date-time/code-to-set-date-time.ino.
- Edit according to the comments present in the code.
- Run it to set the date and time.
Note: Run the program only once. This code sets the date and time to the RTC module.
Now, we will install Adafruit OLED library and run the clock code.
- Install Adafruit GFX library and Adafruit SSD1306 library from manage libraries.
- Edit the code present at program-code/clock-code/clock-code.ino to set the birthday date.
- Run the above code to start the clock.