RTC Based Clock

A cool digital clock which sports the 7 segment display. With its bright red display will make sure you like to keep an eye at the time.

Sep 9, 2016

27429 views

18 respects

Components and supplies

1

Arduino Nano R3

1

perforated board

3

female header single row

1

Male Header 40 Position 1 Row (0.1")

1

Real Time Clock (RTC)

1

4 digit seven segment led display

25

Jumper wires (generic)

Tools and machines

1

Soldering iron (generic)

1

multimeter

Apps and platforms

1

Fritzing

1

Arduino IDE

Project description

Code

RealTimeClockDS1307.cpp

c_cpp

This is one of the library files of the real time clock. Create a folder named "RealTimeClockDS1307" and copy this into this folder. That's all you got to do. No need to compile it.

RTClib.h

c_cpp

that's the name. add it to the RTClib library. Now you have all the files for the RTClib library. Do the same steps to add this to the arduino libraries.

RealTimeClockDS1307.h

c_cpp

This is the main header file of the real time clock. Copy this also into the folder you previously created named "RealTimeClockDS1307". Now you have all the files for the Real Time Clock. Enter the arduino ide and under the 'Sketch' menu click on the 'include library' option and then search your folder under the 'Add .ZIP Library". This will do the trick and you will now be able to set the time in the RTC module.

RTClib.cpp

c_cpp

name it as above and add it to the RTClib library

Set the time

arduino

since the ds1307 is susceptible to drift away from the correct time. This program allows you to set the time through the Serial Monitor. When you see that the time is not correct simply plugin the rtc module into the arduino and upload this program. Then enter the Serial Monitor and then set the correct date, month, year, time. Then simply upload the other program and the correct time will be displayed on the 7 segment display.

README.md

c_cpp

add this to the RTClib library

Clock Code

arduino

The code uses the RTC library and the I2C library. You need these libraries for the program to execute. This program is for Common Anode type display.

another file

c_cpp

add this to the 'RealTimeClockDS1307' folder.

RealTimeClockDS1307.cpp

c_cpp

This is one of the library files of the real time clock. Create a folder named "RealTimeClockDS1307" and copy this into this folder. That's all you got to do. No need to compile it.

RTClib

c_cpp

add this to the RTClib folder

RTClib.cpp

c_cpp

name it as above and add it to the RTClib library

Set the time

arduino

since the ds1307 is susceptible to drift away from the correct time. This program allows you to set the time through the Serial Monitor. When you see that the time is not correct simply plugin the rtc module into the arduino and upload this program. Then enter the Serial Monitor and then set the correct date, month, year, time. Then simply upload the other program and the correct time will be displayed on the 7 segment display.

RealTimeClockDS1307.h

c_cpp

This is the main header file of the real time clock. Copy this also into the folder you previously created named "RealTimeClockDS1307". Now you have all the files for the Real Time Clock. Enter the arduino ide and under the 'Sketch' menu click on the 'include library' option and then search your folder under the 'Add .ZIP Library". This will do the trick and you will now be able to set the time in the RTC module.

RTClib files

csharp

create a folder named 'RTClib' and add the following files into it

RTClib

c_cpp

add this to the RTClib folder

library.properties(name)

c_cpp

add this to the RTClib folder

README.md

c_cpp

add this to the RTClib library

Clock Code

arduino

The code uses the RTC library and the I2C library. You need these libraries for the program to execute. This program is for Common Anode type display.

Readme

clojure

Copy this also into the same folder you created named "RealTimeClockDS1307".

RTClib files

csharp

create a folder named 'RTClib' and add the following files into it

RTClib

c_cpp

add this to the RTClib folder. Now you have all the necessary files for the RTClib. Now do the same as I told you with the 'RealTimeClockDS1307' library file.

RTClib

c_cpp

add this to the RTClib folder

Readme

clojure

Copy this also into the same folder you created named "RealTimeClockDS1307".

library.properties(name)

c_cpp

add this to the RTClib folder

another file

c_cpp

add this to the 'RealTimeClockDS1307' folder.

Downloadable files

Clock Schematic

This is the schematic of the project.

Clock Schematic

Clock Schematic

This is the schematic of the project.

Clock Schematic

Comments

Only logged in users can leave comments

shivakumarj1995

0 Followers

0 Projects

Table of contents

Intro

18

0