From 930317fa2a40a4424ce0a65bb02f32e6472eeba0 Mon Sep 17 00:00:00 2001 From: Kevin O'Connor Date: Thu, 8 Oct 2020 15:24:19 -0400 Subject: [PATCH] thermistor: Add support for the board thermistor on the Einsy Rambo Add in support for the "TDK NTCG104LH104JT1" thermistor. Signed-off-by: Kevin O'Connor --- config/example.cfg | 7 ++++--- config/generic-einsy-rambo.cfg | 6 ++++++ klippy/extras/thermistor.py | 3 +++ 3 files changed, 13 insertions(+), 3 deletions(-) diff --git a/config/example.cfg b/config/example.cfg index 0e0e5c4d..a25ac737 100644 --- a/config/example.cfg +++ b/config/example.cfg @@ -158,9 +158,10 @@ heater_pin: ar10 sensor_type: EPCOS 100K B57560G104F # Type of sensor - common thermistors are "EPCOS 100K B57560G104F", # "ATC Semitec 104GT-2", "NTC 100K beta 3950", "Honeywell 100K -# 135-104LAG-J01", "NTC 100K MGB18-104F39050L32", and -# "SliceEngineering 450". See the example-extras.cfg file for other -# sensors. This parameter must be provided. +# 135-104LAG-J01", "NTC 100K MGB18-104F39050L32", +# "SliceEngineering 450", and "TDK NTCG104LH104JT1". See the +# example-extras.cfg file for other sensors. This parameter must be +# provided. sensor_pin: analog13 # Analog input pin connected to the sensor. This parameter must be # provided. diff --git a/config/generic-einsy-rambo.cfg b/config/generic-einsy-rambo.cfg index 7c7cb5c5..eca405b5 100644 --- a/config/generic-einsy-rambo.cfg +++ b/config/generic-einsy-rambo.cfg @@ -92,6 +92,12 @@ pin: PH5 #[heater_fan nozzle_cooling_fan] #pin: PH3 +[temperature_sensor board_sensor] +sensor_pin: PF6 +sensor_type: TDK NTCG104LH104JT1 +min_temp: 0 +max_temp: 50 + [mcu] serial: /dev/ttyACM0 diff --git a/klippy/extras/thermistor.py b/klippy/extras/thermistor.py index ac815d99..475c1326 100644 --- a/klippy/extras/thermistor.py +++ b/klippy/extras/thermistor.py @@ -112,6 +112,9 @@ Sensors = { "SliceEngineering 450": { 't1': 25., 'r1': 500000., 't2': 200., 'r2': 3734., 't3': 400., 'r3': 240. }, + "TDK NTCG104LH104JT1": { + 't1': 25., 'r1': 100000., 't2': 50., 'r2': 31230., + 't3': 125., 'r3': 2066. }, "NTC 100K beta 3950": { 't1': 25., 'r1': 100000., 'beta': 3950. }, "Honeywell 100K 135-104LAG-J01": { 't1': 25., 'r1': 100000., 'beta': 3974.}, "NTC 100K MGB18-104F39050L32": { 't1': 25., 'r1': 100000., 'beta': 4100. },