Hi guys, I need help with my DS3231 RTC module. I have it on my arduino (I am using Uno and Mega) desk, connected to i2c ports (SDA, SCL; 20 & 21 on MEGA) and power. But RTC is not working. Red power diode is on (and I have changed battery for new), and when I use examples from DS3231.h and wire.h, they are not working. Thanks a lot for help
PS: In attachment is code I use, it takes time from serial, write is on RTC, and then reads it back
Hi guys, I need help with my DS3231 RTC module. I have it on my arduino (I am using Uno and Mega) desk, connected to i2c ports (SDA, SCL; 20 & 21 on MEGA) and power. But RTC is not working. Red power diode is on (and I have changed battery for new), and when I use examples from DS3231.h and wire.h, they are not working. It only returns 45:165:85 165/165/165.
Thanks a lot for help
PS: In attachment is code I use, it takes time from serial, write in on RTC, and then reads it back
Do a search on this forum for 165-165 or 165/165. It has been mentioned numerous times.I'll leave the digging to you.
I have read once or twice that this is / can be a power issue (the LED on the board does not mean much from that perpsective). I suggest that you check the wiring and pay attention to bad contacts.
I uploaded your sketch in my MEGA. This is what I have got on my Serial Monitor as return values. Note: I randomly entered number>0 from the InputBox of SM in response to queries.
Thanks a lot. I now know, that i2c on my MEGA doesnt work correctly, but I can use Uno. RTC are working now. I just dont know what happened to mega, it was working few months before fine...
EDIT: Most likely it is damaged SDA or SCL pin on Mega board. Thanks for help once more!