RTC DS3231 Part#4282 Invoice#2898771 8.08.2022

Moderators: adafruit_support_bill, adafruit

Forum rules
Talk about Adafruit Raspberry Pi® accessories! Please do not ask for Linux support, this is for Adafruit products only! For Raspberry Pi help please visit: http://www.raspberrypi.org/phpBB3/
Locked
User avatar
littlemo
 
Posts: 3
Joined: Mon Aug 15, 2022 2:47 pm

RTC DS3231 Part#4282 Invoice#2898771 8.08.2022

Post by littlemo »

I'm running your part on a RPI 3B+, with a 7" touch screen, and heat sink fan
After installation and testing, I have determined the RTC is not working correctly.
I have done everything I know to test and verify the battery and program changes.
I suspect the stemma connections pins (at the board) or the battery (minus) contact.
Upon power down and reboot, the clock will not hold its' correct time. Sometimes accurate, most times in testing time is off. Sporadic at best.
The significant error I see other than the time retention issue is at
Sudo hwclock -r =
hwclock: ioctl(RTC_RD_TIME) to /dev/rtc0 to read the time failed: Invalid argument
The battery has been tested and checks out as good.
IPlease advise next steps. I'd like a replacement.
mike
Attachments
IMG-0535paint.jpg
IMG-0535paint.jpg (130.67 KiB) Viewed 80 times
IMG-0533paint.jpg
IMG-0533paint.jpg (298.29 KiB) Viewed 80 times
IMG-0532paint.jpg
IMG-0532paint.jpg (167.99 KiB) Viewed 80 times

User avatar
littlemo
 
Posts: 3
Joined: Mon Aug 15, 2022 2:47 pm

Re: RTC DS3231 Part#4282 Invoice#2898771 8.08.2022

Post by littlemo »

another photo sudo hwclock -vr
Attachments
IMG-0536paint.jpg
IMG-0536paint.jpg (199.88 KiB) Viewed 77 times

User avatar
adafruit_support_mike
 
Posts: 67454
Joined: Thu Feb 11, 2010 2:51 pm

Re: RTC DS3231 Part#4282 Invoice#2898771 8.08.2022

Post by adafruit_support_mike »

Check your services to see if the 'fake-hwclock' is active.

The RasPi doesn't have an internal clock, but things like the system logs depend on time moving forward monotonically (always increasing, never decreasing). To make that happen, the fake-hwclock service saves the clock time to a file when the OS shuts down, and sets the system clock from the information in the file when the OS boots.

That service disables any other RTC connected to the system, so you have to disable it before configuring a real clock.

User avatar
rooppoorali
 
Posts: 98
Joined: Sat Jul 16, 2022 12:04 pm

Re: RTC DS3231 Part#4282 Invoice#2898771 8.08.2022

Post by rooppoorali »

Along with following the instructions given by adafruit_support, I also suggest you to check the jumper wires with a multimeter. Sometimes these cables betray.

User avatar
littlemo
 
Posts: 3
Joined: Mon Aug 15, 2022 2:47 pm

Re: RTC DS3231 Part#4282 Invoice#2898771 8.08.2022

Post by littlemo »

I went through all the steps as described for installation again, just to make sure I didn't miss anything. It is working now. I must have missed something the first time around. Ha, Also, the fact that I dropped the pi yesterday maybe helped correct something. I'd say this is resolved...Thank you.

User avatar
adafruit_support_mike
 
Posts: 67454
Joined: Thu Feb 11, 2010 2:51 pm

Re: RTC DS3231 Part#4282 Invoice#2898771 8.08.2022

Post by adafruit_support_mike »

Glad to hear it's working for you. Happy hacking!

Locked
Forum rules
Talk about Adafruit Raspberry Pi® accessories! Please do not ask for Linux support, this is for Adafruit products only! For Raspberry Pi help please visit: http://www.raspberrypi.org/phpBB3/

Return to “Adafruit Raspberry Pi® accessories”