temperature_sensors: Deprecate "NTC 100K beta 3950" thermistor

It seems the common "beta 3950" thermistors generally follow a
temperature table defined by the new "Generic 3950" definition.  Using
a table that actually follows the "beta 3950" temperature curve is
generally less accurate.  Deprecate the existing "NTC 100K beta 3950"
definition to avoid this common issue.

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
Kevin O'Connor 2021-11-01 13:54:11 -04:00
parent 19aac4055d
commit c179db3d43
11 changed files with 20 additions and 11 deletions

View File

@ -73,7 +73,7 @@ max_temp: 250
[heater_bed]
heater_pin: PD7
sensor_type: NTC 100K beta 3950
sensor_type: Generic 3950
sensor_pin: PA1
control: watermark
min_temp: 0

View File

@ -123,7 +123,7 @@ sense_resistor: 0.056
[heater_bed]
heater_pin: PB17 #out1
sensor_type: NTC 100K beta 3950
sensor_type: Generic 3950
sensor_pin: vref_scaled:PC0
control: pid
pullup_resistor: 2200

View File

@ -72,7 +72,7 @@ max_temp: 250
[heater_bed]
heater_pin: PA1
sensor_type: NTC 100K beta 3950
sensor_type: Generic 3950
sensor_pin: PC0
control: watermark
min_temp: 0

View File

@ -74,7 +74,7 @@ max_temp: 250
[heater_bed]
heater_pin: PH6
sensor_type: NTC 100K beta 3950
sensor_type: Generic 3950
sensor_pin: PK3
control: watermark
min_temp: 0

View File

@ -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: Generic 3950
sensor_pin: PK5
# T0 on mcu_xye
smooth_time: 3.0

View File

@ -79,7 +79,7 @@ max_temp: 275
[heater_bed]
heater_pin: PE5
sensor_type: NTC 100K beta 3950
sensor_type: Generic 3950
sensor_pin: PF2
control: watermark
min_temp: 0

View File

@ -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: Generic 3950
sensor_pin: PA7
control: pid
pid_Kp: 18.214030
@ -138,7 +138,7 @@ max_temp: 230
[heater_bed]
heater_pin: PD4
sensor_type: NTC 100K beta 3950
sensor_type: Generic 3950
sensor_pin: PA6
control: pid
pid_Kp: 71.321

View File

@ -8,6 +8,13 @@ All dates in this document are approximate.
## Changes
20211110: The "NTC 100K beta 3950" temperature sensor is deprecated.
This sensor will be removed in the near future. Most users will find
the "Generic 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`.
20211104: The "step pulse duration" option in "make menuconfig" has
been removed. A new `step_pulse_duration` setting in the
[stepper config section](Config_Reference.md#stepper) should be set

View File

@ -701,7 +701,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", "Generic 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.
@ -2058,7 +2058,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",
# "Generic 3950", "Honeywell 100K 135-104LAG-J01",
# "NTC 100K MGB18-104F39050L32", "SliceEngineering 450", or
# "TDK NTCG104LH104JT1"
sensor_pin:

View File

@ -280,6 +280,8 @@ class PrinterHeaters:
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())

View File

@ -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