Created
May 6, 2026 15:03
-
-
Save dunhamjared/1ab34a8a5f4f9c9e1c91c3ea91133246 to your computer and use it in GitHub Desktop.
Creality K1 motherboard fan override
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # klippy/extras/fan_feedback.py | |
| # If you are using a custom mcu backplate motherboard fan (using the free fan port (PA0) on the motherboard)... | |
| # ...and you want the "motherboard fan error" to go away | |
| # Replace the `_handle_result_fan_check1` function with the code below: | |
| def _handle_result_fan_check1(self, params): | |
| self.cx_fan_status = { | |
| "fan0_speed": self.cx_fan_status.get("fan0_speed", 0), | |
| "fan1_speed": 3000, | |
| "fan2_speed": self.cx_fan_status.get("fan2_speed", 0), | |
| "fan3_speed": self.cx_fan_status.get("fan3_speed", 0), | |
| "fan4_speed": self.cx_fan_status.get("fan4_speed", 0), | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # And I added my own custom code to handle mcu temp and fan speed | |
| # First, disable the old sensor block | |
| #[temperature_sensor mcu_temp] | |
| #sensor_type: temperature_mcu | |
| #min_temp: 0 | |
| #max_temp: 100 | |
| # Then add: | |
| [temperature_fan motherboard_fan] | |
| pin: PA0 | |
| sensor_type: temperature_mcu | |
| min_temp: 0 | |
| max_temp: 100 | |
| target_temp: 45.0 | |
| control: watermark | |
| max_delta: 2.0 | |
| # DO NOT mess with the printer_params.cfg | |
| # You need to leave the original motherboard fan pin in there | |
| # If you change it, the little fan feedback hack won't work and you'll get that annoying error on the screen |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
My motherboard is: CR4CU220812512
Which uses the config called: K1_CR4CU220812S12
Image of my custom fan: