DS3231 RTC in 12 Hour Format - Arduino

preview_player
Показать описание
At the heart of the module is a low-cost, extremely accurate RTC chip from Maxim – DS3231. 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. It also provides two programmable time-of-day alarms.

I Hope you Like this video, if so don't forget to like, share and subscribe thank you and i will see you next time.
Рекомендации по теме
Комментарии
Автор

The code using the different date /time formats is the easiest and best version of this code I have seen so far. I added a 16X2 LCD display with an I2C board added to it. With both the RTC and the LCD using I2C for comms it only used 2 pins A4 and A5 to read the RTC and display it on the LCD in a variety of combinations. I added a few extra lines of code to the date format example in the zip file and it worked first time. Each of the different formats automatically produce leading zeros as well which is a real bonus and keeps the code very simple.

GeorgeDougherty-dh
Автор

I have a arduino uno and somehow i can only get it to ouput the raw data from the example but when i use the dateformat example it only shows the text but it doesnt show the time data is there something special i need to do

ulises
Автор

Nothing on this work for me . Adafruit_SH1106.h not found (not avaliable in examples or git Also RTC simple example not working. Says clock is redefined or some crap.

ChubbaBoastinTone
Автор

The program does not work with SSD 1306 OLED Display . Could you help to solve this issue?

RavindraSingh-jwsm
Автор

That micro controller doesn’t look like arduino nano 2 and 3 pins which you have connected are instead of A4 and A5 right ?

mominkhadri
Автор

so, format only works in display, but not in serial monitor?

jonathanalexisponcehilario
Автор

henceforth make clock settings with android and ds3231

agusheripurnomo