Arduino Uno Based Digital Clock, Calendar Cum Temperature Indicator Using DS3231 RTC Module, I2C 16x4 LCD and 1x4 Keypad

by rupjit81 in Circuits > Arduino

688 Views, 1 Favorites, 0 Comments

Arduino Uno Based Digital Clock, Calendar Cum Temperature Indicator Using DS3231 RTC Module, I2C 16x4 LCD and 1x4 Keypad

main image.jpg

In this project we will learn how to make digital clock using arduino uno board. We shall use kepad to adjust the time and date in the clock. For timekeeping we used DS3231 RTC board. To display the clock data I2C lcd has been used. This LCD is using PCF8584 board to convert I2C data into LCD format.

Supplies

arduino board.jpg
ds3231.jpg
i2c lcd.jpg
1x4 keypad.jpg
81ru9e8i-aL._SL1500_.jpg
programming cable.jpg

To do this project necessary hardware to be procured. The list of bill of materials is as follows

  1. Arduino Uno board
  2. DS3231 RTC board
  3. I2C LCD board
  4. 1x4 keypad
  5. Jumper wires
  6. Battery to keep time (Not shown in picture)

Download Tested Circuit Diagram

clock.jpg

Download the circuit diagram. Take all components and make connections as shown in file.

The circuit uses I2C communication between arduino board , RTC and the LCD.

Note: We used 3.3 V power supply for RTC board. It is recommended to check whether the RTC board being used is 5V compatible or not.

LCD runs on 5V arduino board power supply.

The prepared circuit can be housed inside a box and we can get a nice digital clock.

KEYPAD DESCRIPTION

KEYPAD DATA

1=MENU

2=UP

3=DN

4=QUIT

AFTER POWER UP CLOCK WILL NOT START DIRECTLY.

PRESSING UP+DN KEYS TOGETHER TO START CLOCK (UP=2,DN=3).

PRESSING MENU KEY TAKES TO TIME ADJUST MENU (1= MENU).

PRESSING QUIT LEAVES FROM RUNNING CLOCK AND POINTS TO TIME ADJUST MENU (4 = QUIT)

Downloads

Download Tested Software

The software file is shown as notepad file. We can copy and paste it directly on project space of arduino IDE.

The software consists of two routines.

  1. void mainclockdisplay() is used to display the time
  2. void loop() is used to record keypad actions and direct the software accordingly.




Downloads

Arduino Software File

Download the tested file and load into arduino uno board.

Photos

IMG_20230409_120348.jpg
IMG_20230409_122439.jpg
IMG_20230409_122446.jpg
IMG_20230409_122453.jpg
IMG_20230409_122512.jpg
IMG_20230409_122521.jpg
IMG_20230409_122525.jpg
IMG_20230409_122529.jpg
IMG_20230409_122550.jpg