aboutsummaryrefslogtreecommitdiffstats
path: root/klippy/extras/thermistor.py
Commit message (Collapse)AuthorAgeFilesLines
* thermistor: Add support for printers with an "inline_resistor"Kevin O'Connor2019-06-021-4/+6
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* thermistor: Wrap code to 80 columnsKevin O'Connor2019-02-271-1/+1
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* heater: Rename add_sensor() to add_sensor_factory()Kevin O'Connor2019-02-251-2/+2
| | | | | Signed-off-by: Douglas Hammond <wizhippo@gmail.com> Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* adc_temperature: Move PrinterADCtoTemperature to adc_temperature.pyKevin O'Connor2019-01-211-25/+2
| | | | | | | Move the low-level PrinterADCtoTemperature() class from thermistor.py to adc_temperature.py and use it from the Linear() class. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* thermistor: Separate thermistor configuration from basic ADC callback logicKevin O'Connor2019-01-211-14/+19
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* thermistor: Breakout thermistor math to its own classKevin O'Connor2019-01-201-40/+49
| | | | | | | Separate the thermistor math from the heater temperature callback system. This may make it easier for debugging. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* thermistor: Avoid divide by zero error if min_temp=-273.15Kevin O'Connor2019-01-041-0/+2
| | | | | | Reported by @TheGuv. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* adccmds: Add support for min/max temperature check filteringKevin O'Connor2018-07-021-1/+3
| | | | | | | | | | | Extend the ADC out of range check so that it is possible to sample multiple times before going into a shutdown state. This reduces the chance that measurement noise will cause an error. In an actual over temperature (or under temperature event) it is expected that the sensor will consistently report the problem, so extra checks for an additional second or two should not substantially increase risk. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* thermistor: Add Honeywell 100K and MGB18 thermistor definitionsKevin O'Connor2018-04-301-0/+2
| | | | | | Add two additional thermistors (as suggested by Tim Miller). Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* thermistor: Fallback to using beta if Steinhart-Hart c3 is negativeKevin O'Connor2018-04-091-4/+11
| | | | | | | | If the c3 coefficient is negative it can cause the adc calculations to fail. The c3 shouldn't be negative in practice, so fallback to a simple beta calculation in that case. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* thermistor: Add support for defining custom thermistorsKevin O'Connor2018-04-091-0/+26
| | | | | | Add the ability to define a new thermistor type in the config file. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* heater: Move Thermistor and Linear to their own files in extras/Kevin O'Connor2018-04-041-0/+95
Move the Thermistor code to a new thermistor.py module. Move the Linear code to a new adc_temperature.py module. This simplifies the heater.py code. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>