Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 4474

General discussion • Regarding Ds3231 RTC Connection with RPi

$
0
0
I have done Ds3231 RTC with new 3V battery connection with RPi last evening, with physical connection at VCC,GND,SDL &SCL.

And run the following command on RPi shell:

$ Date % which give me Rpi time i.e., 09 Feb 2024 18:00

$sudo i2cdetect -y 1

$ sudo modprobe rtc-ds1307
$ sudo bash
echo ds1307 0x68 &gt /sys/class/i2c-adapter/i2c-1/new_device
exit
% to read the hrtc time type
$ sudo hwclock -r
09 Feb 2024 18:01

Then I switch off the RPi.

Today I open the RPi, connect with shell and run the above command

$ Date % which give me Rpi time i.e., 09 Feb 2024 18:02

$ sudo hwclock -r
09 Feb 2024 19:57

My question is what is happening with Ds3231. Is it battery drain out because I have put the VCC,GND,SDL &SCL connection of RPi and sensor unplug.

Statistics: Posted by hbadshahph — Sat Feb 10, 2024 5:19 am — Replies 0 — Views 63



Viewing all articles
Browse latest Browse all 4474

Trending Articles