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

Compute Module • Re: DS3231 in place of PCF8053

$
0
0
Hi Phil,

I wasn't getting anything running those commands when the resistors were still in place

Code:

pi@cm4bull:~ $ i2cdetect -li2c-20i2c       fef04500.i2c                    I2C adapteri2c-10i2c       i2c-22-mux (chan_id 1)          I2C adapteri2c-1i2c       bcm2835 (i2c@7e804000)          I2C adapteri2c-21i2c       fef09500.i2c                    I2C adapteri2c-0i2c       i2c-22-mux (chan_id 0)          I2C adapteri2c-22i2c       bcm2835 (i2c@7e205000)          I2C adapterpi@cm4bull:~ $ i2cdetect -y 10     0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f00:                         -- -- -- -- -- -- -- -- 10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 70: -- -- -- -- -- -- -- --   
I have just bridged the resistors and I am now getting a result with your overlay recommendation after a reboot, amazing, thank you so much.

Code:

pi@cm4bull:~ $ i2cdetect -y 10     0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f00:                         -- -- -- -- -- -- -- -- 10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 60: -- -- -- -- -- -- -- -- UU -- -- -- -- -- -- -- 70: -- -- -- -- -- -- -- --                         pi@cm4bull:~ $ sudo hwclock -vhwclock from util-linux 2.36.1System Time: 1720518831.585603Trying to open: /dev/rtc0Using the rtc interface to the clock.Assuming hardware clock is kept in UTC time.Waiting for clock tick...ioctl(4, RTC_UIE_ON, 0): Invalid argumentWaiting in loop for time from /dev/rtc0 to change...got clock tickTime read from Hardware Clock: 2024/07/09 09:53:52Hw clock time : 2024/07/09 09:53:52 = 1720518832 seconds since 1969Time since last adjustment is 1720518832 secondsCalculated Hardware Clock drift is 0.000000 seconds2024-07-09 10:53:51.938977+01:00
Will I need a similar overlay for the INA219 connected to the same SCL and SDA lines? I am planning the pip library https://pypi.org/project/pi-ina219/ it doesn’t mention overlays but I’m not sure if the bus will make as difference?

Statistics: Posted by tennisparty — Tue Jul 09, 2024 9:58 am



Viewing all articles
Browse latest Browse all 5273

Trending Articles