adc_temperature: add support for AD597 (#3164)

The AD597 thermocouple amplifier is used in the Raise3D N2+ (and
possibly others).

Signed-off-by: Bryan Boettcher <bryan.boettcher@gmail.com>
This commit is contained in:
Bryan Boettcher 2020-08-09 20:06:43 -05:00 committed by GitHub
parent 864d172b68
commit 04bd48ca9d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 13 additions and 4 deletions

View File

@ -900,8 +900,8 @@
# See the "extruder" section in example.cfg for a description of
# heater parameters. The parameters below describe sensor parameters.
#sensor_type:
# One of "PT100 INA826", "AD595", "AD8494", "AD8495", "AD8496", or
# "AD8497".
# One of "PT100 INA826", "AD595", "AD597", "AD8494", "AD8495",
# "AD8496", or "AD8497".
#sensor_pin:
# Analog input pin connected to the sensor. This parameter must be
# provided.

View File

@ -83,8 +83,8 @@ Klipper supports many standard 3d printer features:
probe or via manual probing.
* Support for common temperature sensors (eg, common thermistors,
AD595, AD849x, PT100, MAX6675, MAX31855, MAX31856, MAX31865). Custom
thermistors and custom analog temperature sensors can also be
AD595, AD597, AD849x, PT100, MAX6675, MAX31855, MAX31856, MAX31865).
Custom thermistors and custom analog temperature sensors can also be
configured.
* Basic thermal heater protection enabled by default.

View File

@ -175,6 +175,14 @@ AD595 = [
(420., 4.266), (440., 4.476), (460., 4.686), (480., 4.896)
]
AD597 = [
(0., 0.), (10., .097), (20., .196), (25., .245), (30., .295),
(40., 0.395), (50., 0.496), (60., 0.598), (80., 0.802), (100., 1.005),
(120., 1.207), (140., 1.407), (160., 1.605), (180., 1.801), (200., 1.997),
(220., 2.194), (240., 2.392), (260., 2.592), (280., 2.794), (300., 2.996),
(320., 3.201), (340., 3.406), (360., 3.611), (380., 3.817), (400., 4.024),
(420., 4.232), (440., 4.440), (460., 4.649), (480., 4.857), (500., 5.066)
]
AD8494 = [
(-180, -0.714), (-160, -0.658), (-140, -0.594), (-120, -0.523),
@ -275,6 +283,7 @@ def load_config(config):
# Register default sensors
pheaters = config.get_printer().load_object(config, "heaters")
for sensor_type, params in [("AD595", AD595),
("AD597", AD597),
("AD8494", AD8494),
("AD8495", AD8495),
("AD8496", AD8496),