Open danchokanev opened 3 weeks ago
Hello, are you sure both sensors are set up properly? I think UU
might indicate an issue with the BME688. Does that one work if you plug just that sensor in alone?
Hello, yes it does work. If I load only one of the drivers for the sensor, the corresponding sensor is showing the data, but if both of them are loaded, only LTR is showing.
Are you modifying how the container starts (like changing the CMD
in the Dockerfile.template) or using the code as-is? (because you mention loading the drivers - that should happen automatically in the Dockerfile)
I did try many options, but none works for both sensors. I did try stock balena blocks sensor and big-sensor (I did not modify anything) and even I tried to deploy balena-sense with a button (not with a balena cli).
Sensor block does not have LTR driver, so I added it there manually, but still it did not work.
I tried to connect the sensor only one at a time and they both work fine, the only difference is as you mention that there is a UU when they are both connected, when it is only BME it shows 76.
Hello, I tried to connect two sensors with Qwiic/STEMMA QT connector, but I can only get readings for one of them at a time:
The sensors are:
The adafruit is installed corectly and I can see them both: i2cdetect -y 1 0 1 2 3 4 5 6 7 8 9 a b c d e f 00: -- -- -- -- -- -- -- -- -- -- -- -- -- 10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 50: -- -- -- 53 -- -- -- -- -- -- -- -- -- -- -- -- 60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 70: -- -- -- -- -- -- UU --
and modules are loaded inside the container: lsmod | grep i2c bme680_i2c 16384 0 bme680_core 20480 1 bme680_i2c i2c_dev 20480 4 i2c_bcm2835 16384 2
I get readings only from one of them at a time:
{"LTR390": {"UV": 0, "ambient_light": 11, "UVI": 0.0, "lux": 8.799999999999999}}
Can you please advice on how can I get readings from both of them ?
Kind regards, Dancho