DS1307 Base Clock

by EE MAKER LAB in Circuits > Arduino

419 Views, 0 Favorites, 0 Comments

DS1307 Base Clock

IMG_20200730_194027.jpg

in this project we will see how to interface DS1307 with arduino and also display date & time to arduino

Circuit Diagram

Annotation 2020-07-30 191754.jpg

hear i connect oled display and component to arduino as per diageram

OLED Display PINMAP

Vcc => 5v

GND => GND

SCL => A5

SDA => A4

also connect DS1307 as diagram i connect 32Khz crystal 3v battery and data line

DS1307 is real time module which provide present date and time.

DS1307 has external 3v cell which provide power to internal circuit when main power is turn off

Connect Circuit on Breadboard

IMG_20200730_195154.jpg

Set Date and Time

for this project you need DS1307RTC.h , TimeLib.h,(for RTC) Adafruit_GFX.h,Adafruit_SSD1306.h (For OLED) library .

now set date and time of DA1307 by code

file -> example -> DS1307RTC -> SetTime

after set date and time read from ic by code

file -> example -> DS1307RTC -> ReadTime

Now Upload Main Code

Downloads

DS1307 interface with arduino