Arduino OLED Clock Project Using DS1307 IC

by electronicGURU in Circuits > Arduino

1917 Views, 0 Favorites, 0 Comments

Arduino OLED Clock Project Using DS1307 IC

Arduino OLED Clock using DS1307 ic
IMG_20180413_020332.jpg

In this instructables we gonna learn how to make a digital clock using arduino , oled Display & ds1307 clock ic, so let's get started.

Gather Your Components

Km5Zu-2RIncAUweU7uG7IhyWPySZ0SqIgAI0-vk9w7767_IkthCPCcsirj2GGmXF4IdQDg8UVpHVLVM6CXnzFsG1hnAdSkK7BIhIOtEldXoZiDsvzsPo-6o0rD6Mda7UyOE=w456-h323-nc.png
images.jpg
Z.jpg
images(1).jpg
9k=.jpg

BUY PARTS :
BUY oled display:

https://www.utsource.net/itm/p/8673610.html

BUY DS1307:

https://www.utsource.net/itm/p/267251.html

BUY ARDUINO UNO:
https://www.utsource.net/itm/p/7199843.html

BUY ATMEGA328:
https://www.utsource.net/itm/p/6464453.html

/////////////////////////////////////////////////////////

so to make this clock we gonna need few components & they are as given below :-

Items you'll need :- (affiliate links)-

Arduino Uno -https://www.banggood.com/UNO-R3-ATmega16U2-AVR-Module-Board-For-Arduino-Without-USB-Cable-p-1044808.html?p=LU070313923481201709

Clock Module DS1307 - https://www.banggood.com/Tiny-RTC-I2C-AT24C32-DS1...

OLED DIsplay - https://www.banggood.com/1_3-Inch-4Pin-White-OLED...

https://www.banggood.com/0_96-Inch-4Pin-Blue-IIC-I...

https://www.banggood.com/3Pcs-Geekcreit-0_96-Inch-...

ATmega 328 - https://www.banggood.com/3Pcs-DIP28-ATmega328P-PU...

https://www.banggood.com/DIP28-ATmega328PPU-MCU-IC...

DS 1307 ic

https://www.amazon.com/5PCS-DS1307-SERIAL-512K-8-D...

- https://www.amazon.com/5PCS-DS1307-SERIAL-512K-8-...

/B019NCEZS8

https://www.amazon.in/gp/aw/d/B075Z3BH4G/ref=mp_s_...

-

1 - 32khz crystal oscillator

1- 16mhz crystal oscillator

2- 22pF capacitor

1- 100nF capacitor

2- 10k resistor

Some male female pin headers

Test the Circuit

FORJR04HW4OK991.MEDIUM.jpg
FNQYS85HW4OTDZO.LARGE.jpg
images(2).jpg
Screenshot_20180416-021912.png
Arduino OLED Clock using DS1307 ic

Now connect display & clock to the arduino according to schmatics & then run set time code from "DS 1307 RTC" library (make sure you installed it) then upload this given oled_clk code to the arduino & if everything is correct you'll get your clock on display.

Refer video for help.

Downloads

Design Your Own PCB

Screenshot_20180416-022402.png
Screenshot_20180416-022409.png
Screenshot_20180416-022416.png
Screenshot_20180416-022425.png
Screenshot_20180416-022431.png
Schmatics.jpg
Arduino OLED Clock using DS1307 ic

now we know the logic its the time to design our own pcb so open the fritzing & take atmega 328 ds 1307 oled Display & follow as i am doing in the video, design your own pcb using fritzing or any other software according to the given schmatics.

After designing PCB export the PCB as a gerber file.

Or you can avoid this step and download these files from link below -

https://github.com/shveytank/Arduino-OLED-Clock

Or

https://drive.google.com/open?id=14BdtXVaWiZ9VVJt5...

Refer video to avoid confusion.

Order Your Pcb

Screenshot_20180416-022438.png
Screenshot_20180416-022443.png
Screenshot_20180416-022446.png
Screenshot_20180416-023500.png

so in this step you have to order your pcb's using the gerber files you generated, open www.jlcpcb.com & upload your gerber files & you'll decent PCB just for 2$ .

Solder All the Components & Upload the Code

Screenshot_20180416-023727.png

so as you have designed you pcb then solder all the components on the board & upload "set time" code then "oled-clk" code and you'll get a running clock.

Final Step

Screenshot_20180416-023932.png
IMG_20180413_020332.jpg
Arduino OLED Clock using DS1307 ic

so in the final step we gonna place this clock board inside a box and the project is finished , so enjoy making your own clock.

Refer video for further help.