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

, , ,

Github issue ADS1115 3 pH calibration points · Issue #1224 · kizniche/Mycodo · GitHub asked whether the Generic Analog pH/EC Input could be refactored to include a 3rd pH calibration point. I just created a test Input Module (for the ADS1115) that incorporates what I believe to be a functional 3-point pH calibration. This module can be imported on the Input Import page. If anyone would like to test, please let me know if it works and is accurate. If it works, I’ll expand the functionality to the ADS1256.

Test Input v01: ads1115_analog_ph_ec_3pt_calibration.py (26.7 KB)