Connection max6675

MCU / Printerboard: SKR 1.4 Pro

klippy (3).log (673.1 KB)

Hello. I am trying to connect a type K thermocouple using the Max6675 module, but I get the error:
“MCU ‘mcu’ shutdown: Thermocouple reader fault
Once the underlying issue is corrected, use the
“FIRMWARE_RESTART” command to reset the firmware, reload the
config, and restart the host software.
Printer is shutdown”.
I would like to hear where I did it wrong.
([extruder]
step_pin: P2.13
dir_pin: !P0.11
enable_pin: !P2.12
microsteps: 16
rotation_distance: 1
nozzle_diameter: 0.400
filament_diameter: 1.750
heater_pin: P2.5
sensor_type: MAX6675
spi_speed: 4000000
sensor_pin: P1.1
spi_software_miso_pin: P0.5
spi_software_sclk_pin: P0.4
spi_software_mosi_pin: P1.17
control:pid
pid_Kp: 22.2
pid_Ki: 1.08
pid_Kd: 114
min_temp: 0
max_temp: 350)

I think, the firs address to ask would be the author of custom_thermocouple.py

Git version: 'v0.13.0-91-gca83c13f3-dirty'
Untracked files: klippy/extras/custom_thermocouple.py

Sorry, that’s not it.
klippy (4).log (1.3 MB)

It is still dirty:

Git version: 'v0.13.0-154-g9346ad19-dirty'
Modified files: docs/API_Server.md, docs/Bed_Mesh.md, docs/Benchmarks.md, docs/CANBUS.md, docs/Code_Overview.md, docs/Config_Reference.md, docs/Features.md, docs/G-Codes.md, docs/Installation.md, docs/Load_Cell.md, (+50 files)

Please see here: The "dirty" Flag and the Team's Position

As indicated by @EddyMI3D, it is hard to tell when Klipper is modifiied.
From the log:

Max6675 : Device ID error

Could be:

  • Incorrect wiring
  • Incorrect SPI connections / pins
  • Hardware defect

Thank you for bringing this to my attention that I didn’t know. I’ll try to fix it. But I don’t understand how to correctly register max6675 in printer.cfg. I think I have a bigger problem because of the incorrect config.