Arduino based LCD Digital Clock - Page 1
Forum section: electronics / projects

author: smching
author_rank: Contributor
timestamp: April 25, 2016, 02:42:45 pm
content: This is an Arduino based digital Clock to display real time on a 16x2 LCD using a DS1307RTC module. The date and time can be set via serial interface or push button switches.Features:Shows date and time on serial monitor.Shows date and time on a mini LCD.Alarm clock - turn ON or turn OFF an IO pin.Settings can be set via serial interface or push button switches.Keeps time running after electricity failure.Using an Arduino UNO & a LCD Keypard Shield.Using a DS1307 RTC module.Source CodeThis project includes three examples that shows how to display real time on a LCD display with or without using a RTC module.LCD Digital clock without RTC module.DS1307RTC LCD Digital clock.DS1307RTC LCD Digital clock with Alarm.The Arduino code is breaking into multiple files which make it more readable and hence easy to maintain.Set Date/Time via Serial InterfaceRun the Serial terminal.Make sure you have selected the the correct COM port.Make sure the baud rate is set correctly at 9600 bps.To set the system date, send a string to the serial port with the following syntax:DyymmnnE.g. D160415 will set the system date to 2016 April 15thTo set the system time, send a string to the serial port with the following syntax:ThhmmssE.g. T012345 will set the system time to 1AM 23minute 45secondsTo set the Alarm time, send a string to the serial port with the following syntax:AhhmmssSet the Date via Push ButtonsPush the Right button in order to change the system date.Use the Up/Down buttons to change the date.Push the Select button to accept changes.Timeout will occur after idle for 10 seconds, changes made will not save.Set the Time via Push ButtonsPush the Left button in order to change the system time.Use the Up/Down buttons to change the time.Push the Select button to accept changes.Timeout will occur after idle for 10 seconds, changes made will not save.Set the Alarm Time via Push ButtonsPush the Up button in order to change the alarm time.Use the Up/Down buttons to change the time.Push the Select button to accept changes.Timeout will occur after idle for 10 seconds, changes made will not save.Disable/Enable AlarmPush the Down button to disable or enable Alarm.If Alarm is enabled, its time is shown on the right corner of the LCD.If Alarm is disabled, its time is hiddenMore information is available onhttp://ediy.com.my/projects/item/138-arduino-based-lcd-digital-clock

author: AlxDroidDev
author_rank: Frequent Contributor
timestamp: April 25, 2016, 04:54:00 pm
content: Very weel done.The video below is something I built a while ago, that is similar to yours, and it was meant to be a temperature logger (logging to EEPROM):The shield with the EEPROM + Clock + Temp sensor was designed and built by myself. After that video was created, I got an ethernet shield and added a few features, like logging to a web server, getting the time from a NTP server, and a few more stuff.

author: smching
author_rank: Contributor
timestamp: April 29, 2016, 01:37:11 am
content: Quote from: AlxDroidDev on April 25, 2016, 04:54:00 pmNice job. I will create a video for my LCD digital clock soon.

author: smching
author_rank: Contributor
timestamp: May 02, 2016, 02:33:54 pm
content: Video uploaded:fixed bugs: get_lastdayAdded 12/24 hour format