DS1307 Real Time Clock are widely available low cost I2C RTC modules. They come with a clock and a small battery, and when connected to Arduino, can keep track of real time even when the Arduino board is not powered. I already wrote some Instructables with DS1307. Some of you have asked, how to display the Date and Time on LCD Display.
In this Instructable, I will show you how to connect DS1307 I2C RTC Module, and I2C LCD Display to Arduino, and program it with Visuino to read and display the date and time. I will use the Tiny RTC Module that I have, but it should be very much the same with any other DS1307 Module.
RTC
Module, and the Arduino together as example with the help of a Breadboard (Picture 2) - In my case I used a small Breadboard
RTC
Module, and the Arduino together as example with the help of a Breadboard (Picture 2) - In my case I used a small Breadboard
To start programming the Arduino, you will need to have the Arduino IDE installed from here: http://www.arduino.cc/.
Make sure that you install 1.6.7 or higher, otherwise this Instructable will not work!
The Visuino: https://www.visuino.com also needs to be installed.
First we need to add components to control the RTC and the LCD Display. The RTC provides Date/Time data. To Display it the way we want, we need to decode it into Integer fields, and for this we will use Decode Date/Time component:
LiquidCrystalDisplay1
component to the to the "In" pin of the "I2C channel" of the Arduino component (Picture 2)To display the Date/Time nicely in the LCD we will need to add some fields with the separation text, and the Date/Time values for day, month, year, hours, minutes, and seconds.
First we will add text to form the separation between the Date elements:
Congratulations! You have made a clock with I2C LCD Display driver, and DS1307 Real Time Clock(RTC).
Picture 1, and the Video show the connected and powered up project.
If you power Arduino, you will see the Date and Time displayed on the LCD Display.
On Picture 2 you can see the complete Visuino diagram.
Also attached is the Visuino project, that I created for this Instructable. You can download and open it in Visuino: https://www.visuino.com