Project tutorial

Clock Set Date Time © CC BY-NC-ND

Clock LCD display adjustable.

  • 18,316 views
  • 26 comments
  • 29 respects

Components and supplies

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

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

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

Comments

Similar projects you might like

Gesture Control Robot

Project tutorial by Raunak Oberai

  • 408 views
  • 2 comments
  • 4 respects

Matrix Orbital GTT TFT Thermometer

Project tutorial by MatrixOrbital

  • 41 views
  • 0 comments
  • 0 respects

Pathfinder

Project showcase by Maverick

  • 10,532 views
  • 7 comments
  • 75 respects

Micro Soldering Station

Project tutorial by Paulo Bruckmann

  • 10,058 views
  • 10 comments
  • 32 respects

Back Up SD File To Dropbox

Project tutorial by Andrei Florian

  • 2,867 views
  • 6 comments
  • 33 respects

Arduino-Powered Robot Controlled with The Tactigon

Project tutorial by the tactigon team

  • 377 views
  • 0 comments
  • 3 respects
Add projectSign up / Login