New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
RTClib with DS3231module on Arduino Uno WiFi #276
Comments
Can you recreate the same behavior with the example sketch from the library? |
I have loaded it now and will run it for a few days and see if the same occurs. |
Ok i can confirm the issue still happens with the test/example code. I have put it https://forums.adafruit.com/viewtopic.php?t=199131 also. ` RTC_DS3231 rtc; void setup () { #ifndef ESP8266 if (! rtc.begin()) { if (rtc.lostPower()) { // When time needs to be re-set on a previously configured device, the OUTPUT: ` ` |
The bug has been confirmed by a second user on https://forums.adafruit.com/memberlist.php?mode=viewprofile&u=337713. It feels like an 8bit shift but how or why I have no idea. |
For what it's worth, the Unix times on the second and third lines of the output represent to the following dates:
Both the day-of-month and year fields were corrupted, as follows:
Both errors are single-bit flips, where the corrupted bit was originally a one that was preceded and followed by at least two zeros. The pattern is 00100 → 00000. It looks like a hardware-level communication problem to me. What module are you using? How is it connected to the Arduino? How noisy is the electrical environment? |
Forum link is here for reference: |
Resolved. Wiring issue: |
copy the sketch code in too): LIST REPRO STEPS BELOW
I have an Arduino Uno WiFi Rev2 board with a DS3231 RTC module connected to the Arduino via I2C. My IDE is version 2.0.3. I am using this Lib: https://github.com/adafruit/RTClib to work with the real time clock module (the DS3231).
I have in the main loop code: Datetime tiktok = rtc.now(). This gets the time via the DS3231 RTC module via I2C and puts it into the Datetime variable "tiktok". You can then use tiktok.day() to get the day, for example the 23rd. Randomly however it will output the 3rd (when it is the 23rd) for a loop or a few loops then revert back to the 23rd. When it is the 24th it shows the 4th randomly.
Solar_copy_20230208220924.txt
The text was updated successfully, but these errors were encountered: