aboutsummaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2019-01-21 20:14:49 -0500
committerKevin O'Connor <kevin@koconnor.net>2019-01-21 21:28:25 -0500
commit7327394c50cc52ba2363959b0647370860f18d9f (patch)
tree1615cc50ba2f25ba6ac11cdb5587ce48596f76df /config
parentfc946c796c72c83a5c9c753a3ca69fce3b8a88da (diff)
downloadkutter-7327394c50cc52ba2363959b0647370860f18d9f.tar.gz
kutter-7327394c50cc52ba2363959b0647370860f18d9f.tar.xz
kutter-7327394c50cc52ba2363959b0647370860f18d9f.zip
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>
Diffstat (limited to 'config')
-rw-r--r--config/example-extras.cfg22
1 files changed, 15 insertions, 7 deletions
diff --git a/config/example-extras.cfg b/config/example-extras.cfg
index 34f1c4e1..a4e52dde 100644
--- a/config/example-extras.cfg
+++ b/config/example-extras.cfg
@@ -1051,13 +1051,13 @@
# sections with an "adc_temperature" prefix). This allows one to
# define a custom temperature sensor that measures a voltage on an
# Analog to Digital Converter (ADC) pin and uses linear interpolation
-# between a set of configured temperature/voltage measurements to
-# determine the temperature. The resulting sensor can be used as a
-# sensor_type in a heater section. (For example, if one defines a
-# "[adc_temperature my_sensor]" section then one may use a
-# "sensor_type: my_sensor" when defining a heater.) Be sure to place
-# the sensor section in the config file above its first use in a
-# heater section.
+# between a set of configured temperature/voltage (or
+# temperature/resistance) measurements to determine the
+# temperature. The resulting sensor can be used as a sensor_type in a
+# heater section. (For example, if one defines a "[adc_temperature
+# my_sensor]" section then one may use a "sensor_type: my_sensor" when
+# defining a heater.) Be sure to place the sensor section in the
+# config file above its first use in a heater section.
#[adc_temperature my_sensor]
#temperature1:
#voltage1:
@@ -1067,6 +1067,14 @@
# A set of temperatures (in Celsius) and voltages (in Volts) to use
# as reference when converting a temperature. At least two
# measurements must be provided.
+#temperature1:
+#resistance1:
+#temperature2:
+#resistance2:
+#...
+# Alternatively one may specify a set of temperatures (in Celsius)
+# and resistance (in Ohms) to use as reference when converting a
+# temperature. At least two measurements must be provided.
# MAXxxxxx serial peripheral interface (SPI) temperature based