Industrial manufacturing
Industrial Internet of Things | Industrial materials | Equipment Maintenance and Repair | Industrial programming |
home  MfgRobots >> Industrial manufacturing >  >> Manufacturing Technology >> Manufacturing process

Build a Reliable Arduino Clock with Date, Time, and LCD Display

Components and supplies

Build a Reliable Arduino Clock with Date, Time, and LCD Display
Arduino UNO
×1
Build a Reliable Arduino Clock with Date, Time, and LCD Display
Adafruit Standard LCD - 16x2 White on Blue
×1
I2C module for LCD
×1
Build a Reliable Arduino Clock with Date, Time, and LCD Display
Real Time Clock (RTC)
×1
Build a Reliable Arduino Clock with Date, Time, and LCD Display
SparkFun Pushbutton switch 12mm
×3
Build a Reliable Arduino Clock with Date, Time, and LCD Display
Resistor 10k ohm
×3
Build a Reliable Arduino Clock with Date, Time, and LCD Display
Jumper wires (generic)
×1

About this project

Introduction

This clock is the basis of many of my projects. I was inspired by a friend who has published a tutorial in 2012 (link). It is a simple clock with LCD display, an RTC (real time clock) and 3 buttons. For convenience and to save Arduino pins, I used a display with I2C module. The RTC also uses the I2C protocol.

The 3 buttons, connected to a "pull down" circuit, are used to adjust or change the time and date of the watch, without having to reload the Arduino code.

The scheme is very simple:

The LCD and RTC communicate with Arduino through the I2C protocol and the library "Wire" and are connected to ARDUINO to Pin A4 and A5.

  • LCD & RTC---------------------- ARDUINO PIN
  • SDA ---------------------------------------A4
  • SLC----------------------------------------A5

Libraries:

  • Wire.h: by Arduino IDE
  • RTClib.h
  • LiquidCrystal_I2C.h

Code:

The code is very simple; in the loop, check if the "menu" button is pressed. If it is not pressed, it displays the date and time, otherwise it counts how many times you pressed the button and, through the various sets, adjusts the time. In the end, it updates the RTC with the new data entered and displays the date and time.

The project has also been published on Instructables.

Code

Clock Set Date Time

Schematics

Build a Reliable Arduino Clock with Date, Time, and LCD DisplayBuild a Reliable Arduino Clock with Date, Time, and LCD Displaysimple_clock_uOb2RxCa71.fzz

Manufacturing process

  1. Mastering Java Date and Time: Constructors, Methods & Best Practices
  2. Comprehensive Guide to Date and Time in C++
  3. Mastering Dates & Times in Python: A Practical Guide
  4. Build a Berlin Clock with Arduino UNO – DIY LED Matrix Clock
  5. Build Your Own 3D Printed Lunar Phase Clock – Step-by-Step Arduino Guide
  6. Build a Classic Arduino LCD Arcade Game with Buzzer and Joystick
  7. Android Things Word Clock – Speak Your Language in Real Time
  8. Arduino Weather Clock – Real-Time Date, Time, Temperature & Humidity Display
  9. Reliable Arduino UNO Digital Clock: Simple, Accurate, and Easy to Build
  10. Build an Interactive LCD Game with Arduino UNO