The real-time clock is a digital clock which displays real-time on the 16x2 LCD display. Here in this circuit,we can also set alarm and time. The DS1307 serial real-time clock (RTC) is a low-power, full binary-coded decimal (BCD) clock/calendar plus 56 bytes of N VSRAM. Address and data are transferred serially through an I²C, bi-directional bus. The clock/calendar provides seconds, minutes, hours, day, date, month, and year information. The end of the month date is automatically adjusted for months with fewer than 31 days, including corrections for leap year. The clock operates in either the 24-hour or 12-hour format with AM/PM indicator.
The DS1307 has a built-in power-sense circuit that detects power failures and automatically switches to the backup supply. Timekeeping operation continues while the part operates from the backup supply. It is assumed that the reader has gone through the project how to get started with the Arduino and interface LCD with Arduino.
Image of Arduino based Real Time Clock and Temperature Indicator
Image of Arduino based Real Time Clock and Temperature Indicator designed on Breadboard
In this circuit pin D5,D4,D3,D2 of Arduino connected to the data pins D4,D5,D6,D7 of 16x2 LCD display respectively and digital pin D6 and D7 of Arduino connected to the command pins RS and En of 16x2 LCD display respectively.
And serial data SDA and clock SCL pin of ds1307 connected to Analog pin A4 and A5 of Arduino respectively.
In this clock the RTC is used in 24 hour mode which gives accurate time and can be displayed on LCD through Arduino. The Arduino continuously reads the data from the RTC. Program continuously read the data from ds1307 and show it on display. This system shows date, month, year and time.
And in this circuit a temperature circuitry is also add which shows Temperature on LCD display in degree Celsius. For read temperature LM35 sensor is used. This sensor is directly connected to Analog pin A0. After reading the A0 pin some easy calculation is applied and we get almost accurate temperature on the 16x2 LCD display.
Block Diagram of Arduino based Real Time Clock and Temperature Indicator
Components Used:
2. Ds1307
3. Lm35
4. 16X2 Liquid Crystal Display
Comments
Please log in or sign up to comment.