mirror of
https://github.com/Klipper3d/klipper.git
synced 2025-07-20 21:27:53 -06:00
adc_temperatures: Add "PT100 INA826" sensor type
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
parent
b2caa486c5
commit
c463893a5e
2 changed files with 18 additions and 5 deletions
|
@ -81,9 +81,21 @@ AD595 = [
|
|||
(440., 4.476), (460., 4.686), (480., 4.896)
|
||||
]
|
||||
|
||||
PT100 = [
|
||||
(0, 0.00), (1, 1.11), (10, 1.15), (20, 1.20), (30, 1.24), (40, 1.28),
|
||||
(50, 1.32), (60, 1.36), (70, 1.40), (80, 1.44), (90, 1.48), (100, 1.52),
|
||||
(110, 1.56), (120, 1.61), (130, 1.65), (140, 1.68), (150, 1.72), (160, 1.76),
|
||||
(170, 1.80), (180, 1.84), (190, 1.88), (200, 1.92), (210, 1.96), (220, 2.00),
|
||||
(230, 2.04), (240, 2.07), (250, 2.11), (260, 2.15), (270, 2.18), (280, 2.22),
|
||||
(290, 2.26), (300, 2.29), (310, 2.33), (320, 2.37), (330, 2.41), (340, 2.44),
|
||||
(350, 2.48), (360, 2.51), (370, 2.55), (380, 2.58), (390, 2.62), (400, 2.66),
|
||||
(500, 3.00), (600, 3.33), (700, 3.63), (800, 3.93), (900, 4.21),
|
||||
(1000, 4.48), (1100, 4.73)
|
||||
]
|
||||
|
||||
def load_config(config):
|
||||
# Register default sensors
|
||||
pheater = config.get_printer().lookup_object("heater")
|
||||
for sensor_type, params in [("AD595", AD595)]:
|
||||
for sensor_type, params in [("AD595", AD595), ("PT100 INA826", PT100)]:
|
||||
func = (lambda config, params=params: Linear(config, params))
|
||||
pheater.add_sensor(sensor_type, func)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue