Real Time Clock (RTC) Module with Arduino (DS1307 and DS3231)

preview_player
Показать описание
#Realtimeclock #technolabcreation

Support me on paypal



Thanks for watching
Рекомендации по теме
Комментарии
Автор

I use this RTC all the time in clocks and data loggers. I found a VERY easy solution for setting the time. First, I created an Arduino sketch that will take commands to read and set the date, time, and weekday. The commands to write these things must be in an exact format, but that is not a problem. The next thing I did was create a GUI-based app on the PC that has a text window. I have buttons I can click to have the PC send a read command to the Arduino. For writing the date and time, when you click the button, the app reads the PC date or time (depending on which button you click, ) formats the data into a string, and sends it to the Arduino. The time will match the PC time to within one second. Since the PC has no simple knowledge of the weekday I use a drop-down selector in the GUI and then send the weekday. It is very easy to set the time on these things. For data loggers I don't worry about daylight savings time, but for my clocks I have a switch on the Arduino that will cause the Arduino to add one hour to the time. When we hit DST, I just flip the switch and the time is right.

I didn't want to build a digital clock for my Arduino, I like analog clocks. So I bought a round PCBA with 241 Neopixel-type LEDs. It has 60 LEDs on the outermost ring, perfect for marking minutes and seconds. The next ring in has 48 LEDs, I mark the hours there. Both rings are a dim blue with red hour-marking LEDs. I also figured out how to display the month and day on some of the inner circles, and the center LED just does constant color-shfting. Yeah, it's not battery-powered, but it is cool.

flingmonkey
Автор

What should I do if I want to use DS1307 instead of DS3231?

Happiness
Автор

U mean every time i off the ac current on the uno board i have to upload this sketch again and changet the time and date in this sjetch and then upload? Of so ehat is the use of the cell behind the DS3231 module

leanderpereira
Автор

hi i used a ds1307 module . i can save number and I have i2c connection with it. but the weird thing is that timer is not counting . its freezed. how can I fix this?

learnenglishwithmovie
Автор

Bhi, I want DS3132 rtc wala code chahiye

vasavicyber