Introduction: Arduino Realtime Clock Using Ds1302

Picture of Arduino Realtime Clock Using Ds1302

This week I decided that I want to build a clock. I want a clock that

always have the right time so I need a component that can do this I did some research and I found the ds1302.

Step 1: Watch the Video

I made a video on YouTube where i show you how to do it! So go check that one out.

Step 2: Code

Here are the sketches used in this project http://bit.ly/codeclock

there are three sketches and two libraries make sure you installed these

you need to install the libraries "ds1302" and "lcdi²c"

Step 3: No I²c Lcd?

if you don't have a i²c lcd it's not a problem. open the folder ds1302 and then go to examples then open DS1302_LCD connect the normal lcd screen and this would work fine.

Step 4: TechMaker

Picture of TechMaker

If you want you can always subscribe on my channel on youtube and follow me on other networks. they are linked below.

✖ YouTube http://bit.ly/TechMakerYouTube

✖ Twitter: https://twitter.com/TechMaker_TM

✖ Facebook: https://twitter.com/TechMaker_TM

Comments

TùngP13 (author)2017-08-01

Hi . Can i ask you a question ? The thing is i am working a door lock project and my arduino has only 1 digital pin left . I want to ask you is there any solution for adding 3 more pins for the real time module ? I have 2 pins for led , 1 pin for buzzer , 1 pin for button and 8 pins for keypad. Your project is great so i want to add it in mine project . Thanks

CurtR (author)2016-02-02

Can you give a part number or better description of the module for the Ds1302.

TechMaker_TM (author)CurtR2016-02-03

Hi here is a link of the product http://m.aliexpress.com/item/32316287195.html

RiyadM3 (author)TechMaker_TM2016-05-01

pleaaase give us the library of the i2c

TechMaker_TM (author)RiyadM32016-05-04

I have put them into the code part right now.

GökhanB6 (author)2016-04-28

Hi where is the code. I could not found it.

TechMaker_TM (author)GökhanB62016-05-04

The code can be found here: http://bit.ly/codeclock

GökhanB6 (author)GökhanB62016-04-28

i did. thanks

About This Instructable

15,023views

26favorites

License:

Bio: TechMaker is a channel loaded with awesome Electronics Tutorials, Projects and How To´s using Arduino's
Add instructable to: