How to use DS3231 RTC module to build OLED clock

preview_player
Показать описание
In this video I will show you how to use DS3231 RTC module. It will explain how to connect it to I2C bus.
Also I will show you how to display date and time readings on the OLED display.
Hope that you will find this video useful.

The code and a list of components can be found here:

or here

In the video I use I2C scanner code:

And Library:

If you like this content and you want to support me in creating similar videos go to my Patreon webpage
Or

Music credits:
––––––––––––––––––––––––––––––
Track: Highlander — Scandinavianz [Audio Library Release]
Music provided by Audio Library Plus
––––––––––––––––––––––––––––––
Рекомендации по теме
Комментарии
Автор

Thank you so much sir for showing little details and explaining because of mentors like you the world is a better place

yogenrai
Автор

This tutorial helped me a lot. Many thanks man

mywschool
Автор

Very clear tutorial, explaining all necessary things to know. Thanks !!

geertborloo
Автор

Thank you for share your knowledge. I follow the tutorial and it work as in your video. THANK YOU

alvin
Автор

love ur new vid
btw can u do a dare for me?
dare: can you make an atmega328p handheld console without getting the codes from the internet (if u cant np 😁)

PekaVuite
Автор

What will be the connection and code if we use Arduino maga or esp32

charandas
Автор

Use the esp32 it has 240 mhz clock and 2MB of storage. The pins are d21(sck) and d22(sda)

agaldoo
Автор

I run into the memory problem as soon as I started. My solution was putting all text messages (e.g. help or failure code) into the eeprom.

billferner
Автор

What part of the code will the address 0x68 (for the DS32321) be used? I understand that Arduino can communicate with I2C devices thru their addresses but I only see the address for the OLED being used. I hope you can respond to this. Thank you!

rafteralimagno
Автор

I want to know how to make a clock by using u8g2 library, how to set address for oled screen?

flameshine
Автор

Thank you. I used the code "OLED clock using DS3231 RTC module with the memory problem fix" and it worked! Is there a way I can change the temp from C to F? More importantly, it does not keep time when unplugged from power even though I have a fresh battery in the RTC. Any ideas?

ammanTravel
Автор

"Ds3231 clock redeclared as different kind of symbol" this type of message shows when tried to upload the sketch. Please help me in this regard. All libraries has been downloaded.

sibaramdatta
Автор

Use quite a bit of memory to add an alarm and to manually change it wouldn't it?

watosmate
Автор

the "redeclared as different kind of symbol" error happens because there are two different libraries with the same name, "DS3231", one by andrew wickert and the other one by Korneliusz Jarzebski. this last one is used in the present video. uninstall the other one (which is much more popular and available at the online repository). the author of the video seems to be unaware of this problem.

sapitron
Автор

while running the library DS3231 SIMPLE code, there is no time displayed in the Serial monitor. The code shows no error but while printing the output in the serial monitor, there is an empty space. hence current date or time is not displayed.

vijithcv
Автор

Me too, the link to components and code does not work.

BoydGoldie
Автор

I can't find the code. The link doesn't work ⛔

Dimuuz
Автор

Are the new version now? I did exactly the same code but it doesn’t work

nikodemkarcz
Автор

you have not shared your second code, i dont have mega, will you plz send your second custon fuction code.

mominkhadri
Автор

everything works fine, but when I disconnect the arduino from the PC, wait a few minutes, connect it again, Time starts from the moment where I cut off the power.
Where is the fault hardware or software?

priyaop