Hi everyone,
I have just rewired my setup because of some issues with a faulty breadboard and after a fresh reinstall of Mycodo v. 8.13.7 (on Raspberry pi 400, 64bit OS) my atlas scientific CO2 sensor is displaying quite a lot of errors and I am not sure if it is a hardware issue or not
The sensor is wired correctly in I2C mode and the measurment interval is set at 2.0 seconds.
The error log shows this:
2022-04-14 22:04:00,065 - DEBUG - mycodo.devices.atlas_scientific_i2c_105_1 - AtlasScientificI2C raised an exception when taking a reading: 'utf-8' codec can't decode byte 0xff in position 8: invalid start byte
2022-04-14 22:04:00,066 - ERROR - mycodo.inputs.atlas_co2_a63ffe4f - Sensor read unsuccessful: 'utf-8' codec can't decode byte 0xff in position 8: invalid start byte
2022-04-14 22:04:00,066 - ERROR - mycodo.controllers.controller_input_a63ffe4f - StopIteration raised 3 times. Possibly could not read input. Ensure it's connected properly and detected.
2022-04-14 22:04:10,013 - DEBUG - mycodo.devices.atlas_scientific_i2c_105_1 - AtlasScientificI2C raised an exception when taking a reading: 'utf-8' codec can't decode byte 0xff in position 6: invalid start byte
2022-04-14 22:04:10,013 - ERROR - mycodo.inputs.atlas_co2_a63ffe4f - Sensor read unsuccessful: 'utf-8' codec can't decode byte 0xff in position 6: invalid start byte
2022-04-14 22:04:12,023 - DEBUG - mycodo.devices.atlas_scientific_i2c_105_1 - AtlasScientificI2C raised an exception when taking a reading: 'utf-8' codec can't decode byte 0xff in position 7: invalid start byte
2022-04-14 22:04:12,023 - ERROR - mycodo.inputs.atlas_co2_a63ffe4f - Sensor read unsuccessful: 'utf-8' codec can't decode byte 0xff in position 7: invalid start byte
2022-04-14 22:04:16,076 - DEBUG - mycodo.devices.atlas_scientific_i2c_105_1 - AtlasScientificI2C raised an exception when taking a reading: 'utf-8' codec can't decode byte 0xff in position 48: invalid start byte
2022-04-14 22:04:16,076 - ERROR - mycodo.inputs.atlas_co2_a63ffe4f - Sensor read unsuccessful: 'utf-8' codec can't decode byte 0xff in position 48: invalid start byte
2022-04-14 22:04:22,028 - DEBUG - mycodo.devices.atlas_scientific_i2c_105_1 - AtlasScientificI2C raised an exception when taking a reading: 'utf-8' codec can't decode byte 0xff in position 6: invalid start byte
2022-04-14 22:04:22,028 - ERROR - mycodo.inputs.atlas_co2_a63ffe4f - Sensor read unsuccessful: 'utf-8' codec can't decode byte 0xff in position 6: invalid start byte
2022-04-14 22:04:24,036 - DEBUG - mycodo.devices.atlas_scientific_i2c_105_1 - AtlasScientificI2C raised an exception when taking a reading: 'utf-8' codec can't decode byte 0xff in position 8: invalid start byte
2022-04-14 22:04:24,037 - ERROR - mycodo.inputs.atlas_co2_a63ffe4f - Sensor read unsuccessful: 'utf-8' codec can't decode byte 0xff in position 8: invalid start byte
2022-04-14 22:04:26,046 - DEBUG - mycodo.devices.atlas_scientific_i2c_105_1 - AtlasScientificI2C raised an exception when taking a reading: 'utf-8' codec can't decode byte 0xff in position 35: invalid start byte
2022-04-14 22:04:26,047 - ERROR - mycodo.inputs.atlas_co2_a63ffe4f - Sensor read unsuccessful: 'utf-8' codec can't decode byte 0xff in position 35: invalid start byte
2022-04-14 22:04:26,048 - ERROR - mycodo.controllers.controller_input_a63ffe4f - StopIteration raised 3 times. Possibly could not read input. Ensure it's connected properly and detected.
2022-04-14 22:04:32,028 - DEBUG - mycodo.devices.atlas_scientific_i2c_105_1 - AtlasScientificI2C raised an exception when taking a reading: 'utf-8' codec can't decode byte 0xff in position 7: invalid start byte
2022-04-14 22:04:32,028 - ERROR - mycodo.inputs.atlas_co2_a63ffe4f - Sensor read unsuccessful: 'utf-8' codec can't decode byte 0xff in position 7: invalid start byte
2022-04-14 22:04:36,074 - DEBUG - mycodo.devices.atlas_scientific_i2c_105_1 - AtlasScientificI2C raised an exception when taking a reading: 'utf-8' codec can't decode byte 0xff in position 6: invalid start byte
2022-04-14 22:04:36,075 - ERROR - mycodo.inputs.atlas_co2_a63ffe4f - Sensor read unsuccessful: 'utf-8' codec can't decode byte 0xff in position 6: invalid start byte
2022-04-14 22:04:38,086 - DEBUG - mycodo.devices.atlas_scientific_i2c_105_1 - AtlasScientificI2C raised an exception when taking a reading: 'utf-8' codec can't decode byte 0xff in position 9: invalid start byte
2022-04-14 22:04:38,087 - ERROR - mycodo.inputs.atlas_co2_a63ffe4f - Sensor read unsuccessful: 'utf-8' codec can't decode byte 0xff in position 9: invalid start byte
2022-04-14 22:04:42,023 - DEBUG - mycodo.devices.atlas_scientific_i2c_105_1 - AtlasScientificI2C raised an exception when taking a reading: 'utf-8' codec can't decode byte 0xff in position 30: invalid start byte
2022-04-14 22:04:42,023 - ERROR - mycodo.inputs.atlas_co2_a63ffe4f - Sensor read unsuccessful: 'utf-8' codec can't decode byte 0xff in position 30: invalid start byte
2022-04-14 22:04:44,031 - DEBUG - mycodo.devices.atlas_scientific_i2c_105_1 - AtlasScientificI2C raised an exception when taking a reading: 'utf-8' codec can't decode byte 0xff in position 40: invalid start byte
2022-04-14 22:04:44,032 - ERROR - mycodo.inputs.atlas_co2_a63ffe4f - Sensor read unsuccessful: 'utf-8' codec can't decode byte 0xff in position 40: invalid start byte
2022-04-14 22:04:52,051 - DEBUG - mycodo.devices.atlas_scientific_i2c_105_1 - AtlasScientificI2C raised an exception when taking a reading: 'utf-8' codec can't decode byte 0xff in position 37: invalid start byte
2022-04-14 22:04:52,051 - ERROR - mycodo.inputs.atlas_co2_a63ffe4f - Sensor read unsuccessful: 'utf-8' codec can't decode byte 0xff in position 37: invalid start byte
2022-04-14 22:04:56,025 - DEBUG - mycodo.devices.atlas_scientific_i2c_105_1 - AtlasScientificI2C raised an exception when taking a reading: 'utf-8' codec can't decode byte 0xff in position 21: invalid start byte
2022-04-14 22:04:56,026 - ERROR - mycodo.inputs.atlas_co2_a63ffe4f - Sensor read unsuccessful: 'utf-8' codec can't decode byte 0xff in position 21: invalid start byte
2022-04-14 22:04:58,033 - DEBUG - mycodo.devices.atlas_scientific_i2c_105_1 - AtlasScientificI2C raised an exception when taking a reading: 'utf-8' codec can't decode byte 0xff in position 40: invalid start byte
2022-04-14 22:04:58,034 - ERROR - mycodo.inputs.atlas_co2_a63ffe4f - Sensor read unsuccessful: 'utf-8' codec can't decode byte 0xff in position 40: invalid start byte
2022-04-14 22:05:00,043 - DEBUG - mycodo.devices.atlas_scientific_i2c_105_1 - AtlasScientificI2C raised an exception when taking a reading: 'utf-8' codec can't decode byte 0xff in position 6: invalid start byte
2022-04-14 22:05:00,044 - ERROR - mycodo.inputs.atlas_co2_a63ffe4f - Sensor read unsuccessful: 'utf-8' codec can't decode byte 0xff in position 6: invalid start byte
2022-04-14 22:05:00,044 - ERROR - mycodo.controllers.controller_input_a63ffe4f - StopIteration raised 3 times. Possibly could not read input. Ensure it's connected properly and detected.
I have tried to increase the measurement period and that does help a little bit, but there is still quite a high error rate, only with a larger delay between errors.
Do you think that it might be a hardware issue and if so, what would be the best way forward?
I do have an oscilloscope but I am still learning about the I2C bus and I am not sure if I will be able to spot the issue.
Thank you very much!