EC and PH sensors stop measuring

, ,

Hello Kyle , unfortunately i have an error that i don’t understand the ec and ph sensors keep breaking off the measurements.
I have to disconnect the raspberry from the power supply and reconnect it so that the measurements can be read again
Do I understand correctly that I made a mistake with the calibration and the sensor wants to be calibrated.

thank you very much for your time and your efforts.

2023-04-24 22:07:31,023 - DEBUG - mycodo.inputs.atlas_ec_ae1dba21 - Device Returned: success: 792.3,428,0.39,1.000
2023-04-24 22:07:31,046 - DEBUG - mycodo.controllers.controller_input_ae1dba21 - Adding measurements to InfluxDB with ID ae1dba21-c9d3-475b-8fb7-c0dfa9d2f7a3: {0: {‘measurement’: ‘electrical_conductivity’, ‘unit’: ‘uS_cm’, ‘value’: 792.3, ‘timestamp_utc’: datetime.datetime(2023, 4, 24, 20, 7, 31, 24342)}, 1: {‘measurement’: ‘total_dissolved_solids’, ‘unit’: ‘ppm’, ‘value’: 428.0, ‘timestamp_utc’: datetime.datetime(2023, 4, 24, 20, 7, 31, 24375)}, 2: {‘measurement’: ‘salinity’, ‘unit’: ‘ppt’, ‘value’: 0.39, ‘timestamp_utc’: datetime.datetime(2023, 4, 24, 20, 7, 31, 24401)}, 3: {‘measurement’: ‘specific_gravity’, ‘unit’: ‘unitless’, ‘value’: 1.0, ‘timestamp_utc’: datetime.datetime(2023, 4, 24, 20, 7, 31, 24426)}}
2023-04-24 22:07:53,595 - DEBUG - mycodo.inputs.atlas_ph_d9db2574 - pH sensor set to calibrate temperature
2023-04-24 22:07:53,754 - DEBUG - mycodo.inputs.atlas_ph_d9db2574 - Latest temperature used to calibrate: 22.75
2023-04-24 22:07:54,775 - DEBUG - mycodo.inputs.atlas_ph_d9db2574 - Calibration returned: ‘0’, ‘’
2023-04-24 22:07:55,282 - DEBUG - mycodo.inputs.atlas_ph_d9db2574 - Stored temperature value (‘success’, ‘\x01?T,22.75\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00’)
2023-04-24 22:07:56,790 - DEBUG - mycodo.inputs.atlas_ph_d9db2574 - Device Returned: success: 6.020
2023-04-24 22:07:56,795 - DEBUG - mycodo.controllers.controller_input_d9db2574 - Adding measurements to InfluxDB with ID d9db2574-f46f-40e9-afba-4b0ef5fb473a: {0: {‘measurement’: ‘ion_concentration’, ‘unit’: ‘pH’, ‘value’: 6.02, ‘timestamp_utc’: datetime.datetime(2023, 4, 24, 20, 7, 56, 790679)}}
2023-04-24 22:07:58,320 - DEBUG - mycodo.inputs.atlas_ec_ae1dba21 - pH sensor set to calibrate temperature
2023-04-24 22:07:58,508 - DEBUG - mycodo.inputs.atlas_ec_ae1dba21 - Latest temperature used to calibrate: 22.75
2023-04-24 22:07:59,511 - DEBUG - mycodo.inputs.atlas_ec_ae1dba21 - Calibration returned: 1, [Errno 121] Remote I/O error
2023-04-24 22:07:59,512 - DEBUG - mycodo.inputs.atlas_ec_ae1dba21 - Device Returned: error: [Errno 121] Remote I/O error
2023-04-24 22:07:59,513 - DEBUG - mycodo.inputs.atlas_ec_ae1dba21 - Sensor read unsuccessful: [Errno 121] Remote I/O error

No one Can help me ? …………

hello,
had similar problem …
solution was better power supply … if voltage is not constant the atlas devices give errors…
after using better power supply it all works without error…
hope it help’s
M.

2 Likes

thanks for your support… i have the power supply. are the amps too low? what ampere do you have

haha… same i’ll had before… beginning all worked… but little later the errors became more…
changed from 3A to 5A … and now it’s running fine… wasn’t sure about but did some research and the Atlas gear need more than usual… 5A is better…
M.

3 Likes

ok thank you i will try it… have a nice sunday to you

1 Like

I’d also ensure your sensor wires aren’t too long. You can have voltage drop across long distances and also the squareness of the wave of the data line can degrade, causing issues with data transmission.

1 Like

the cables from PH and Ec Sensors are only 10 cm long, but the ones from the moisture meter and IR temperature are 1.5 m long, which will then probably interfere with the signal, I will shorten the cables and report back afterwards, thanks for the answer

That length is not likely to cause an issue.

I had 2x 1.5m i removed one of the cables.
it is now trouble free for over 24 hours
thanks for your advic

1 Like

The LTC4311 is a great device for extending the distance of I2C sensors and ensuring crisp square wave communication signals.

3 Likes