Arduino Tutorials

How to Display a Real Time Clock on the OLED Screen with Arduino

How to display a real time clock with Arduino

In this tutorial we will learn how to display a real time clock on the OLED screen.

For this tutorial we will use OLED 128×64 I2C display, DS1302 Real Time Clock Module and Arduino UNO.

Hardware Required :

Project circuit :

Project circuit diagram is shown below.

How to Display a Real Time Clock on the OLED Screen with Arduino

The DS1302 trickle-charge timekeeping chip contains a real-time clock/calendar and 31 bytes of static RAM. It communicates with a microprocessor via an easy serial interface. The real-time clock/calendar provides seconds, minutes, hours, day, date, month, and year information. the top of the month date is automatically adjusted for months with fewer than 31 days, including corrections for intercalary year. The clock operates in either the 24-hour or 12-hour format with an AM/PM indicator (The library only support the 24-hour mode).

How to Display a Real Time Clock on the OLED Screen with Arduino

Link to the Code :

https://github.com/MORYTECH/ARDUINO-CODE/blob/master/How-to-Display-a-Real-Time-Clock-on-the-OLED-Screen-Arduino.txt

Download the DS1302 Library :

DS1302 Library

Demonstration :

Tags

Related Articles

Leave a Reply

Your email address will not be published. Required fields are marked *

Back to top button
Close
Close