-
Hi, I've been trying to figure out this case with my RTC DS1302 module. When I boot the Arduino Uno up, serial monitor would begin to show the accurate clock to my current time, and then it begins to reset back to 00:00 in a loop. Serial monitor screen:
This are the codes that I am using:
Please help..... I've changed the batteries to a new one, I've toggled the wires and I've did all I could. I'm worried it's a setup I've missed etc. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 8 replies
-
Your debug output doesn't match your statement about showing correct time and then clearing to zero. at the last line in setup, add
|
Beta Was this translation helpful? Give feedback.
It seems like it works now after changing Clk, Dat, and Rst to 7, 6, 8 respectively in that order.
Just now that the clock seems to be in a different timezone or something. Would I be able to set timezone to GMT+8?