aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBryan Boettcher <bryan.boettcher@gmail.com>2020-08-09 20:06:43 -0500
committerGitHub <noreply@github.com>2020-08-09 21:06:43 -0400
commit04bd48ca9dfdadb43f42d62990cfcddd6b5e090c (patch)
tree15087c5676eedf6d08ed5e89ff7e440ebf449816
parent864d172b68b9b6058fcf1743f1b732c709848c37 (diff)
downloadkutter-04bd48ca9dfdadb43f42d62990cfcddd6b5e090c.tar.gz
kutter-04bd48ca9dfdadb43f42d62990cfcddd6b5e090c.tar.xz
kutter-04bd48ca9dfdadb43f42d62990cfcddd6b5e090c.zip
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>
-rw-r--r--config/example-extras.cfg4
-rw-r--r--docs/Features.md4
-rw-r--r--klippy/extras/adc_temperature.py9
3 files changed, 13 insertions, 4 deletions
diff --git a/config/example-extras.cfg b/config/example-extras.cfg
index b0ce5749..337f0b61 100644
--- a/config/example-extras.cfg
+++ b/config/example-extras.cfg
@@ -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.
diff --git a/docs/Features.md b/docs/Features.md
index d3d0dcea..eb19f125 100644
--- a/docs/Features.md
+++ b/docs/Features.md
@@ -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.
diff --git a/klippy/extras/adc_temperature.py b/klippy/extras/adc_temperature.py
index 83265a3b..87a1cac6 100644
--- a/klippy/extras/adc_temperature.py
+++ b/klippy/extras/adc_temperature.py
@@ -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),