Hello everyone,
I’m hoping someone can help me with a Klipper configuration issue that I’ve been stuck on for a few hours.
I am trying to configure a custom, SSR-driven heater that uses a MAX31855 temperature sensor.
My [max31855] sensor section appears to be working correctly. If I remove the [heater_generic] section from my printer.cfg, Klipper starts without any errors, and I am able to read the temperature from the sensor just fine.
However, as soon as I add the [heater_generic] section to control the heater, Klipper fails on startup with the error: Unknown temperature sensor 'custom_heater_temp'.
It seems the [heater_generic] module cannot recognize the sensor that has been defined. I would appreciate any help you can provide. I’m getting really frustrated with this issue. Thank you in advance.
printer.cfg
[include mainsail.cfg]
[printer]
kinematics: none # I am not making a 3D printer!
max_velocity: 500
max_accel: 3000
[mcu]
serial: /dev/serial/by-id/usb-1a86_USB_Serial-if00-port0
restart_method: command
[temperature_sensor custom_heater_temp]
sensor_type: MAX31855
sensor_pin: PB12 # This is the Chip Select (CS) pin
spi_software_sclk_pin: PB13 # This is the Clock (CLK) pin
spi_software_miso_pin: PB15 # This is the Data Out (DO) pin
spi_software_mosi_pin: PB14 # Required by Klipper, but not used by the MAX31855
min_temp: 0
max_temp: 300
[heater_generic custom_heater]
heater_pin: PC6
sensor_type: custom_heater_temp
control: watermark
max_power: 1.0
max_temp: 100
max_delta: 2.0