diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2018-04-09 12:14:20 -0400 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2018-04-09 12:17:39 -0400 |
commit | 8c8261ba8009b5c16815cb5166d50f7269d786cc (patch) | |
tree | 095fa521d83fd19031ed9b6e87c1e491ce66ae5d /config | |
parent | f8a28401c044575c68e9b4de372d171628bcf80f (diff) | |
download | kutter-8c8261ba8009b5c16815cb5166d50f7269d786cc.tar.gz kutter-8c8261ba8009b5c16815cb5166d50f7269d786cc.tar.xz kutter-8c8261ba8009b5c16815cb5166d50f7269d786cc.zip |
thermistor: Add support for defining custom thermistors
Add the ability to define a new thermistor type in the config file.
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'config')
-rw-r--r-- | config/example-extras.cfg | 25 | ||||
-rw-r--r-- | config/example.cfg | 5 |
2 files changed, 28 insertions, 2 deletions
diff --git a/config/example-extras.cfg b/config/example-extras.cfg index a28654f7..e67f7165 100644 --- a/config/example-extras.cfg +++ b/config/example-extras.cfg @@ -394,6 +394,31 @@ # provided when using an st7920 display. +# Custom thermistors (one may define any number of sections with a +# "thermistor" prefix). A custom thermistor may be used in the +# sensor_type field of a heater config section. (For example, if one +# defines a "[thermistor my_thermistor]" section then one may use a +# "sensor_type: my_thermistor" when defining a heater.) Be sure to +# place the thermistor section in the config file above its first use +# in a heater section. +#[thermistor my_thermistor] +#temperature1: +#resistance1: +#temperature2: +#resistance2: +#temperature3: +#resistance3: +# Three resistance measurements (in Ohms) at the given temperatures +# (in Celsius). The three measurements will be used to calculate the +# Steinhart-Hart coefficients for the thermistor. These parameters +# must be provided when using Steinhart-Hart to define the +# thermistor. +#beta: +# Alternatively, one may define temperature1, resistance1, and beta +# to define the thermistor parameters. This parameter must be +# provided when using "beta" to define the thermistor. + + # Replicape support - see the generic-replicape.cfg file for further # details. #[replicape] diff --git a/config/example.cfg b/config/example.cfg index ae8c3b9a..9d860a58 100644 --- a/config/example.cfg +++ b/config/example.cfg @@ -146,8 +146,9 @@ heater_pin: ar10 # periods) to the heater. The default is 1.0. sensor_type: EPCOS 100K B57560G104F # Type of sensor - this may be "EPCOS 100K B57560G104F", "ATC -# Semitec 104GT-2", "NTC 100K beta 3950", or "AD595". This parameter -# must be provided. +# Semitec 104GT-2", "NTC 100K beta 3950", or "AD595". Additional +# sensor types may be available - see the example-extras.cfg file +# for details. This parameter must be provided. sensor_pin: analog13 # Analog input pin connected to the sensor. This parameter must be # provided. |