Skip to content

ADS1256 Analog PH EC #1425

Description

@h3xx3r

Hello, I'm having trouble getting any measurements.

RPI 3B
Raspbian latest with mycodo 8.16.1

I have this module:
https://www.waveshare.com/wiki/High-Precision_AD/DA_Board

Using the Waveshare example
https://files.waveshare.com/upload/5/5e/High-Precision-AD-DA-Board-Code.7z

All channels work with Python 3.

My log looks like this:
2025-06-07 20:14:12,781 - DEBUG - mycodo.controllers.controller_input_47090748 - get_measurement() found 2025-06-07 20:14:12,782 - DEBUG - mycodo.controllers.controller_input_47090748 - listener() not found 2025-06-07 20:14:12,783 - INFO - mycodo.controllers.controller_input_47090748 - Activated in 718.0 ms 2025-06-07 20:14:12,813 - ERROR - mycodo.inputs.ads1256_analog_ph_ec_47090748 - ADC returned measurement of 0 (indicating something is wrong). 2025-06-07 20:14:12,813 - DEBUG - mycodo.inputs.ads1256_analog_ph_ec_47090748 - No temperature corrections applied 2025-06-07 20:14:12,814 - ERROR - mycodo.inputs.ads1256_analog_ph_ec_47090748 - InputModule raised an exception when taking a reading: unsupported operand type(s) for *: 'float' and 'NoneType' Traceback (most recent call last): File "/opt/Mycodo/mycodo/inputs/base_input.py", line 123, in read self._measurements = self.get_measurement() ^^^^^^^^^^^^^^^^^^^^^^ File "/opt/Mycodo/mycodo/inputs/ads1256_analog_ph_ec.py", line 826, in get_measurement self.convert_volt_to_ph( File "/opt/Mycodo/mycodo/inputs/ads1256_analog_ph_ec.py", line 777, in convert_volt_to_ph ph = self.slope * volt + self.intercept ~~~~~~~~~~~^~~~~~ TypeError: unsupported operand type(s) for *: 'float' and 'NoneType'

can someone please help me?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions