4028 Inverted behavior on EBB42. Even with !fan_part_cooling_pin

I know this is mentioned multiple times here but i can't seem to solve it.
I'm building an VCore 3.1

My 4028 4pin Part cooling fan keeps responding inverted whatever i do. (100% off 1% = full)

I use the EBB42 1.2 toolboard.
In the config.cfg i included:
[include RatOS/boards/btt-ebb42-12/toolboard-config.cfg]
and
[include RatOS/boards/toolboard.cfg]
Blue wire of NIDEC W40S12BS2E5-57T04HF9 is connected to PA0 of the toolboard


In the config.cfg i tried [include RatOS/4pin-fans/part-cooling-fan-100hz.cfg] but got an error:
Pin '4p_fan_part_cooling_tach_pin' is not a valid pin name on mcu 'mcu'

Therefor i copied the content from 4pin-fans/part-cooling-fan-100hz.cfg and placed it in the config.sfg. With the same error.
So i changed 4p_fan_part_cooling_pin to fan_part_cooling_pin.

when placing the code at the same position in config.sfg as the include it works but inverted.
There is no change when using pin: !fan_part_cooling_pin or pin: fan_part_cooling_pin

I use PA3 of my octopus 1.1 as enable pin

#############################################################################

FANS

If your board has 4 pin fan headers and you want to use them, you can enable them here.

NOTE: If none are uncommented, the default 2pin fan headers will be used.

#############################################################################

Part cooling

#[include RatOS/4pin-fans/part-cooling-fan-25khz.cfg]
#[include RatOS/4pin-fans/part-cooling-fan-100hz.cfg]

[fan]
pin: !fan_part_cooling_pin
enable_pin: PA3
cycle_time: 0.001

Hotend / Toolhead cooling

#[include RatOS/4pin-fans/toolhead-fan-25khz.cfg]
#[include RatOS/4pin-fans/toolhead-fan-100hz.cfg]


When placing the same code in the overrides section of config.sfg it won't work!
when setting any speed the fan blows 100% except for 0% and 100% then it stops

What am i missing?
Your help is much appreciated
Was this page helpful?