aboutsummaryrefslogtreecommitdiffstats
path: root/klippy/extras/thermistor.py
Commit message (Collapse)AuthorAgeFilesLines
* klippy: Replace deprecated logger.warn with logger.warning (#6385)Thijs Triemstra2023-11-161-1/+2
| | | | | | | Replace deprecated logger.warn with logger.warning logger.warn will be removed in Python 3.13 Signed-off-by: Thijs Triemstra <info@collab.nl>
* temperature_sensors: Define default thermistors in configKevin O'Connor2021-11-101-26/+0
| | | | | | | Move the definitions of the default thermistors from thermistors.py to the temperature_sensors.cfg file. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* thermistor: Add support for the board thermistor on the Einsy RamboKevin O'Connor2020-10-081-0/+3
| | | | | | Add in support for the "TDK NTCG104LH104JT1" thermistor. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* thermistor: Add in definition for "SliceEngineering 450" thermistorKevin O'Connor2020-07-111-0/+3
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* extras: Use "from . import module" for relative importsKevin O'Connor2020-06-151-1/+1
| | | | | | Use alternate import syntax to improve Python3 compatibility. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* klippy: Rename try_load_module() to load_object()Kevin O'Connor2020-05-081-2/+2
| | | | | | | | Rename try_load_module() so that it uses consistent naming for "printer objects". Change the function to raise an error by default if the specified module does not exist. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* heaters: Make heater.py an "extras" moduleKevin O'Connor2020-04-251-4/+4
| | | | | | | The heater logic is an independent module that does not need to be treated as part of the "core" klipper code. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* heater: Fix misspelling of CelsiusKevin O'Connor2020-02-271-11/+11
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* 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>