A simple digital clock built using Arduino components. Features include: a digital time display, an analog time display and setting alarm.
- Board: Arduino Mega 2560
- RTC Module: DS3231
- LCD: ILI9225
- Buzzer: Arduino Buzzer
- Keypad: 4x1 Arduino Keypad
- Breadboard: MB-102 400 holes (probably optional because you could fit everything on this board, it has a lot of ports lol, but I do prefer having one)
- wires: male-female and male-male jumper wires should do
| Pin Label | Arduino Mega 2560 Pin |
|---|---|
| VCC | 5V/3.3V |
| GND | GND |
| NC | (Ignore) |
| CLK | 52 |
| SDA | 51 |
| RS | A3 |
| RST | A4 |
| CS | A5 |
| Pin Label | Arduino Mega 2560 Pin |
|---|---|
| VCC | 5V |
| GND | GND |
| SCL | SCL |
| SDA | SDA |
| Pin Label | Arduino Mega 2560 Pin |
|---|---|
| Long | 9 |
| Short | GND |
| Pin Label | Arduino Mega 2560 Pin |
|---|---|
| GND | GND |
| K1 | 10 |
| K2 | 11 |
| K3 | 12 |
| K4 | 13 |
- Install Arduino IDE on your machine
- Navigate to Tools > Manage Libraries and install these libraries:
- Copy and paste the .ino script attached
- Profit???
- Key 1: display digital time, press again to toggle between 12 hours and 24 hours format
- Key 2: display analog time
- Key 3: Set alarm
- Key 4: Increment value for any alarm setting mode. Press key 3 again to confirm.
Check my footages to see how it should look.
Feel free to open an issue if there's anything unclear! Thank you for you attention!