How to create a custom input with calibration using ADS1115 ADC and Gravity analog pH and EC sensors?

, , ,

@KyleGabriel Thanks for your help pointing the way, I’ve been successful at implementing custom inputs for analog pH and EC probes read using the ADS1115.

The probes I use are DFRobot’s Gravity: Analog pH Sensor / Meter Pro Kit V2 for pH, the Gravity: Analog Electrical Conductivity Sensor /Meter V2 (K=1) for EC, and the Gravity: Waterproof DS18B20 Sensor Kit for water temperature. It should work for any analog pH or EC probe, and you can choose from any temperature source you have available in your system.

Here’s a couple files if anyone’s interested to try it out. Seems to work OK so far, and I’ll be testing more over this week to see how they perform. Warning: may have bugs!
analog_ph_ec.py (18.9 KB) analog_ph.py (13.0 KB)

Edit: These inputs have been added to the built-in set in Mycodo, therefore you do not need to download and import these files.

3 Likes