Skip to content

Commit

Permalink
temperature_sensors: Deprecate "NTC 100K beta 3950" thermistor
Browse files Browse the repository at this point in the history
It seems the common "beta 3950" thermistors generally follow a
temperature table defined by the new "RepRap 3950" definition.  Using
a table that actually follows the "beta 3950" is generally less
accurate.  Deprecate the existing "NTC 100K beta 3950" definition to
avoid this common issue.

Signed-off-by: Kevin O'Connor <[email protected]>
  • Loading branch information
KevinOConnor committed Nov 1, 2021
1 parent 028d717 commit 347ec50
Show file tree
Hide file tree
Showing 11 changed files with 22 additions and 11 deletions.
2 changes: 1 addition & 1 deletion config/generic-bigtreetech-skr-2.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ max_temp: 250

[heater_bed]
heater_pin: PD7
sensor_type: NTC 100K beta 3950
sensor_type: RepRap 3950
sensor_pin: PA1
control: watermark
min_temp: 0
Expand Down
2 changes: 1 addition & 1 deletion config/generic-duet3-mini.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ sense_resistor: 0.056

[heater_bed]
heater_pin: PB17 #out1
sensor_type: NTC 100K beta 3950
sensor_type: RepRap 3950
sensor_pin: vref_scaled:PC0
control: pid
pullup_resistor: 2200
Expand Down
2 changes: 1 addition & 1 deletion config/generic-mks-rumba32-v1.0.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ max_temp: 250

[heater_bed]
heater_pin: PA1
sensor_type: NTC 100K beta 3950
sensor_type: RepRap 3950
sensor_pin: PC0
control: watermark
min_temp: 0
Expand Down
2 changes: 1 addition & 1 deletion config/generic-rumba.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ max_temp: 250

[heater_bed]
heater_pin: PH6
sensor_type: NTC 100K beta 3950
sensor_type: RepRap 3950
sensor_pin: PK3
control: watermark
min_temp: 0
Expand Down
2 changes: 1 addition & 1 deletion config/kit-voron2-250mm.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ max_extrude_only_distance: 780.0
heater_pin: PB4
# D10 on mcu_xye
max_power: 1.0
sensor_type: NTC 100K beta 3950
sensor_type: RepRap 3950
sensor_pin: PK5
# T0 on mcu_xye
smooth_time: 3.0
Expand Down
2 changes: 1 addition & 1 deletion config/printer-mtw-create-2015.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ max_temp: 275

[heater_bed]
heater_pin: PE5
sensor_type: NTC 100K beta 3950
sensor_type: RepRap 3950
sensor_pin: PF2
control: watermark
min_temp: 0
Expand Down
4 changes: 2 additions & 2 deletions config/printer-wanhao-duplicator-i3-v2.1-2017.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ rotation_distance: 29.888
nozzle_diameter: 0.400
filament_diameter: 1.750
heater_pin: PD5
sensor_type: NTC 100K beta 3950
sensor_type: RepRap 3950
sensor_pin: PA7
control: pid
pid_Kp: 18.214030
Expand All @@ -138,7 +138,7 @@ max_temp: 230

[heater_bed]
heater_pin: PD4
sensor_type: NTC 100K beta 3950
sensor_type: RepRap 3950
sensor_pin: PA6
control: pid
pid_Kp: 71.321
Expand Down
9 changes: 9 additions & 0 deletions docs/Config_Changes.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,15 @@ All dates in this document are approximate.

## Changes

20211105: The "NTC 100K beta 3950" temperature sensor is deprecated.
This sensor will be removed in the near future. Most users will find
the "RepRap 3950" temperature sensor more accurate. To continue to
use the older (typically less accurate) definition, define a custom
[thermistor](Config_Reference.md#thermistor) with `temperature1: 25`,
`resistance1: 100000`, and `beta: 3950`.

20210929: Klipper v0.10.0 released.

20210903: The default [`smooth_time`](Config_Reference.md#extruder)
for heaters has changed to 1 second (from 2 seconds). For most
printers this will result in more stable temperature control.
Expand Down
4 changes: 2 additions & 2 deletions docs/Config_Reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -696,7 +696,7 @@ heater_pin:
# periods) to the heater. The default is 1.0.
sensor_type:
# Type of sensor - common thermistors are "EPCOS 100K B57560G104F",
# "ATC Semitec 104GT-2", "NTC 100K beta 3950", "Honeywell 100K
# "ATC Semitec 104GT-2", "RepRap 3950", "Honeywell 100K
# 135-104LAG-J01", "NTC 100K MGB18-104F39050L32", "SliceEngineering
# 450", and "TDK NTCG104LH104JT1". See the "Temperature sensors"
# section for other sensors. This parameter must be provided.
Expand Down Expand Up @@ -2053,7 +2053,7 @@ sections that use one of these sensors.
```
sensor_type:
# One of "EPCOS 100K B57560G104F", "ATC Semitec 104GT-2",
# "NTC 100K beta 3950", "Honeywell 100K 135-104LAG-J01",
# "RepRap 3950", "Honeywell 100K 135-104LAG-J01",
# "NTC 100K MGB18-104F39050L32", "SliceEngineering 450", or
# "TDK NTCG104LH104JT1"
sensor_pin:
Expand Down
2 changes: 2 additions & 0 deletions klippy/extras/heaters.py
Original file line number Diff line number Diff line change
Expand Up @@ -283,6 +283,8 @@ def setup_sensor(self, config):
if sensor_type not in self.sensor_factories:
raise self.printer.config_error(
"Unknown temperature sensor '%s'" % (sensor_type,))
if sensor_type == 'NTC 100K beta 3950':
config.deprecate('sensor_type', 'NTC 100K beta 3950')
return self.sensor_factories[sensor_type](config)
def register_sensor(self, config, psensor, gcode_id=None):
self.available_sensors.append(config.get_name())
Expand Down
2 changes: 1 addition & 1 deletion klippy/extras/temperature_sensors.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ temperature1: 25
resistance1: 100000
beta: 3974

# Definition inherent from name
# Definition inherent from name. This sensor is deprecated!
[thermistor NTC 100K beta 3950]
temperature1: 25
resistance1: 100000
Expand Down

0 comments on commit 347ec50

Please sign in to comment.