adc_temperature: Add support for linear interpolation of resistances

Add support for performing linear interpolation between a set of
measured temperature/resistance pairs.

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
Kevin O'Connor
2019-01-21 20:14:49 -05:00
parent fc946c796c
commit 7327394c50
3 changed files with 80 additions and 9 deletions

View File

@@ -117,6 +117,22 @@ control: watermark
sensor_type: my_custom_adc
sensor_pin: analog4
[adc_temperature my_custom_resistance_adc]
temperature1: 25
resistance1: 1000
temperature2: 100
resistance2: 2000
temperature3: 250
resistance3: 3000
[temperature_fan test_custom_resistance_adc]
pin: ar17
min_temp: 0
max_temp: 100
control: watermark
sensor_type: my_custom_resistance_adc
sensor_pin: analog5
[mcu]
serial: /dev/ttyACM0
pin_map: arduino