Hi guys in this tutorial we will see how to make a working clock using a DS1307 real time clock module & OLED displays.
So we will read the time from the clock module DS1307. And print it on the OLED screen.
Teachers! Did you use this instructable in your classroom?
Add a Teacher Note to share how you incorporated it into your lesson.
Step 1: Things You Need
Step 2: Install Libraries in Your Arduino IDE
So before we start you need to install following Libraries in your arduino IDE :
1- Adafruit SD1306
so go to your library manager & search for these two Libraries and install it in your Arduino IDE & refer images provided for more help.
Step 3: Connections
Now connect display & clock to the arduino according to schmatics. Make sure you connected these two modules according to shown images.
Then run set time code from "DS 1307 RTC" library (make sure you installed it) to set the time of clock module & open the serial monitor & check if clock is providing proper time.
Step 4: Code
So make sure you connected everything and run the set time code and if time is properly set.
Then download the code provided below & Upload it to your ARDUINO UNO.
Step 5: Testing the Clock
And if everything is perfect as i mentioned in the above steps then you'll able to see the time on your oled display as mine so have fun making your own Arduino clock.