Arduino Project Hub
Project tutorial

Clock Set Date Time © CC BY-NC-ND

Clock LCD display adjustable.

  • 2,557 views
  • 5 comments
  • 7 respects

Components and supplies

About this project

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 pin dell'Arduino, 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 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, updates the RTC with the new data entered and displays the Date and Time

The project has also been published on instructables

Schematics

Eletric scheme
Clock set date time yox9ubnhwo
Fritzing scheme Jpeg
Clock set date time fritzing l9ojesn0vk
Fritzing scheme
simple_clock_uOb2RxCa71.fzz

Code

Clock Set Date Time

Comments

Similar projects you might like

Happy birthday melody on Arduino Nano with 3-way polyphony

Project tutorial by Liss

  • 1,424 views
  • 6 comments
  • 21 respects

Easiest Way to Add A Full Color LCD Display

by Ushijima

  • 4,213 views
  • 2 comments
  • 5 respects

Kaleidoscope Infinity Mirror

Project tutorial by Lucas Ainsworth

  • 3,070 views
  • 0 comments
  • 29 respects

Pet Feeder

by Namsulee

  • 827 views
  • 0 comments
  • 5 respects
Add projectSign up / Login