Welcome! Log In Create A New Profile

Advanced

Firmware change for fans - I'm stumped!

Posted by Niccio 
Firmware change for fans - I'm stumped!
November 17, 2022 10:51AM
Hello everyone, hopefully this is easy for someone, but here is the issue:
I have an SKR Mini E3 V.3.0 board in a printer. This board has Fan0, Fan1, and Fan2 ports.

The factory firmware has it set up as port "Fan1" on the board for the extruder (hotend) cooling and port "Fan0" for the parts cooling. What I'm trying to do is use the "Fan2" header for the parts cooling instead of the "Fan0" header but can't find where to change this in the firmware. Also, the firmware seems to call "Fan0" on the board "Fan1" in the firmware, etc. The reason for this is that Fan0 on the board burned out due to a certain kitty chewing on a fan wire. All of the other fan ports still work though.

Can anyone direct me on what needs to be changed in the firmware to make this happen? Thanks!
Re: Firmware change for fans - I'm stumped!
November 17, 2022 04:49PM
You need to swap the io pins in Marlin/src/pins/stm32g0/pins_BTT_SKR_MINI_E3_V3_0.h

It currently has
#define FAN_PIN                             PC6   // "FAN0"
#define FAN1_PIN                            PC7   // "FAN1"
#define FAN2_PIN                            PB15  // "FAN2"


FAN_PIN is always the part cooling fan
So you want
#define FAN_PIN                             PB15  // "FAN2"
#define FAN1_PIN                            PC7   // "FAN1"
#define FAN2_PIN                            PC6   // "FAN0"
Sorry, only registered users may post in this forum.

Click here to login