hello everyone,
i've 1 problem weather station - i2c sensors. i've posted it, until can't connect them.
have middle rj11 connection in mainboard connected other part of weather station. connect , when type sudo i2cdetect -y 1 have uu , 69 on list. when try manually trigger measurement, sudo ~/weather-station/log_all_sensors.py command, have this:
error accessing 0x77: check i2c address
traceback (most recent call last):
file "/home/pi/weather-station/log_all_sensors.py", line 6, in <module>
temp_probe = ds18b20_therm.ds18b20()
file "/home/pi/weather-station/ds18b20_therm.py", line 10, in __init__
self.device_file = glob.glob("/sys/bus/w1/devices/28*")[0] + "/w1_slave"
indexerror: list index out of range
know sensors working fine, i've attached them arduino weather station , i've got values them.
so, if 1 have ideia, i'll appreciated.
many in advanced.
best regards
carlos almeida
i've 1 problem weather station - i2c sensors. i've posted it, until can't connect them.
have middle rj11 connection in mainboard connected other part of weather station. connect , when type sudo i2cdetect -y 1 have uu , 69 on list. when try manually trigger measurement, sudo ~/weather-station/log_all_sensors.py command, have this:
error accessing 0x77: check i2c address
traceback (most recent call last):
file "/home/pi/weather-station/log_all_sensors.py", line 6, in <module>
temp_probe = ds18b20_therm.ds18b20()
file "/home/pi/weather-station/ds18b20_therm.py", line 10, in __init__
self.device_file = glob.glob("/sys/bus/w1/devices/28*")[0] + "/w1_slave"
indexerror: list index out of range
know sensors working fine, i've attached them arduino weather station , i've got values them.
so, if 1 have ideia, i'll appreciated.
many in advanced.
best regards
carlos almeida
have done "pin bending" trick?
insert piece of plastic (plastic knife, couple of credit cards, raspi portsplus or gpio ruler) between 2 rows of pins , bend them out 1° or 2° vertical.
reboot , see how things are, i2c devices showing, can see 1-wire sensor?
ls -la /sys/bus/w1/devices/28*
i2cdetect -y 1
should this if don't that, bend pins further, reboot , try again.
i'm assuming you've got "air sensor" connected umbilical rj11 cable right socket on main ws board on rpi.
insert piece of plastic (plastic knife, couple of credit cards, raspi portsplus or gpio ruler) between 2 rows of pins , bend them out 1° or 2° vertical.
reboot , see how things are, i2c devices showing, can see 1-wire sensor?
ls -la /sys/bus/w1/devices/28*
i2cdetect -y 1
should this
code: select all
pi@beaufort:~ $ ls -la /sys/bus/w1/devices/28* lrwxrwxrwx 1 root root 0 may 24 14:50 /sys/bus/w1/devices/28-00000xxxxxxx -> ../../../devices/w1_bus_master1/28-00000xxxxxxx pi@beaufort:~ $ i2cdetect -y 1 0 1 2 3 4 5 6 7 8 9 b c d e f 00: -- -- -- -- -- -- -- -- -- -- -- -- -- 10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 40: 40 -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 60: -- -- -- -- -- -- -- -- uu 69 6a -- -- -- -- -- 70: -- -- -- -- -- -- -- 77 pi@beaufort:~ $
i'm assuming you've got "air sensor" connected umbilical rj11 cable right socket on main ws board on rpi.
raspberrypi
Comments
Post a Comment