How to use DS1307 in 12 Hr Format with OLED using Arduino

preview_player
Показать описание
At the heart of the module is a low-cost, quite accurate RTC chip from Maxim – DS1307. It manages all timekeeping functions and features a simple two-wire I2C interface which can be easily interfaced with any microcontroller of your choice.

The chip maintains seconds, minutes, hours, day, date, month, and year information. The date at the end of the month is automatically adjusted for months with fewer than 31 days, including corrections for leap year (valid up to 2100). The clock operates in either the 24-hour or 12-hour format with an AM/PM indicator.

DS1307 RTC module also comes with a 32 bytes 24C32 EEPROM chip from Atmel having limited read-write cycles. It can be used to save settings or really anything.

The 24C32 EEPROM uses I2C interface for communication and shares the same I2C bus as DS1307.

I hope you like this small video of mine, If so don't forget to like, share, subscribe and hitting the notification bell. Thank you and i will see you next time.
Рекомендации по теме
Комментарии
Автор

Thank you, sir! This works extremely well but the problem is, it doesn't give the correct time. Do you know how to fix it?

techtutorials
Автор

Sir, I'm not getting correct date and time. Do you know how to solve this problem?

nikkikumari