Arduino High Precision Digital Clock – Kuongshun Electronic Shop
  • ·Tel: +86-755-23956813 ·Email:
Wish List

Arduino High Precision Digital Clock


The Arduino high-precision digital clock is a multi-module DIY combination that assembles the required modules and writes a simple program to achieve the desired function.The whole experiment is easy to make, without welding and easy to understand. In the experiment, we used Arduino UNO as the main control board to process the clock data and control 1602 display provided by DS3231. The DS3231 clock module sends clock information and temperature information to the Arduino through the IIC. The 1602 displays the current time and temperature (DS3231 integrates temperature sensor) and the alarm status.Each module has a division of labor and cooperation, and the experimental circuit is simple and versatile, suitable for beginners.


Function display

Time display and setting

Date display and settings

temperature display

Week display and settings

Alarm switch and settings

Alarm tone


Products Used


1、Arduino UNO

  • Working voltage: 5V
  • Input voltage: USB powered or external 7V~12V DC input
  • Output voltage: 5V DC output and 3.3V DC output and external power input
  • Microprocessor: ATmega328 (Chip data sheet is in the documentation)
  • Bootloader:Arduino Uno
  • Clock frequency: 16 MHz
  • Support USB interface protocol and power supply (without external power supply)
  • Support ISP download function
  • Digital I/O port: 14 (4 PWM output ports)
  • Analog input port: 6
  • DC Current I/O Port: 40mA
  • C Current 3.3V Port: 50mA
  • Flash memory: 32 KB (ATmega328) (0.5 KB for bootloader)
  • SRAM :2 KB (ATmega328)
  • EEPROM:1 KB (ATmega328)


2、LCD 1602

Introduction to the pins of LCD1602:

  • VSS: A pin that connects to ground
  • VDD: A pin that connects to a +5V power supply
  • VO: A pin that adjust the contrast of LCD1602
  • RS: A register select pin that controls where in the LCD’s memory you are writing data to. You can select either the data register, which holds what goes on the screen, or an instruction register, which is where the LCD’s controller looks for instructions on what to do next.
  • R/W: A Read/Write pin that selects reading mode or writing mode
  • E: An enabling pin that, when supplied with low-level energy, causes the LDC module to execute relevant instructions.
  • D0-D7: Pins that read and write data
  • A and K: Pins that control the LED backlight

LCD 1602


3、DS3231 RTC clock

  • Accuracy ±2ppm from 0°C to +40°C
  • Accuracy ±3.5ppm from -40°C to +85°C
  • Battery Backup Input for Continuous
  • Timekeeping
  • Operating Temperature Ranges
  • Commercial: 0°C to +70°C
  • Industrial: -40°C to +85°C
  • Low-Power Consumption
  • Real-Time Clock Counts Seconds, Minutes,
  • Hours, Day, Date, Month, and Year with Leap Year
  • Compensation Valid Up to 2100
  • Two Time-of-Day Alarms
  • Programmable Square-Wave Output
  • Fast (400kHz) I2C Interface
  • 3.3V Operation
  • Digital Temp Sensor Output: ±3°C Accuracy
  • Register for Aging Trim

    DS3231 RTC clockDS3231 RTC clock


     Schematic and hardware connections

    Arduino Project Schematic



    Arduino Digital ClockC/C++



    Leave a comment

    Your Name *

    Email address *