Replies: 1 comment
-
After more playing with it: the problem seems to be, that (as the poll interval is equal for all those 4 sensor_inputs) it tries to get the values for the sensor_modules instances mostly in parallel, and something like mixing requests and responses happens (maybe on I2C level ?) causing wrong value read. If the intervals are e.g. 5 and 7, the returned values are ok - at least seems to be the case at the moments the intervals do not meet. So looks like fix would be: for one particular sensor, serialize the operations to read the values from sensor. I will fill a bug issue... |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I observe this problem when trying to read voltages using the ads1x15 module, with ADS1115 A/D connected via I2C.
It has four input channels for measuring voltage. When I use just one channel, config like this:
it is working fine, I get correct readings like:
But as soon as I try to use more than one channel, it seems to randomly report either correct value or the value from the other channel. Config is like:
and instead of reporting 3.3V on channel 0 and 0.56V on channel 1 (what is really on inputs...), it randomly mixes those:
Please I'm doing anything wrong, or is that a bug ?
Beta Was this translation helpful? Give feedback.
All reactions