pin PD12 used multiple times in config

Trying to set up two fans for the drivers, adding the following lines results in an error pin PD12 used multiple times in config: On lines 137-145 of printer.cfg,
[controller_fan controller_fan_1]
pin:PD12

[controller_fan controller_fan_2]
pin:PD13
[controller_fan controller_fan_1]
pin:PD12

[controller_fan controller_fan_2]
pin:PD13
I don't know where PD12 is used previously. Also, could I simplify this to [controller_fan controller_fan_1] pin:PD12, PD13 and should I tie the enable_pin to the steppers?
Solution:
no, you already have one fan defined as a controller fan using the pin you want. Just add the other in your printer.cfg
[controller_fan controller_fan_2]
pin:PD13
[controller_fan controller_fan_2]
pin:PD13
...
Jump to solution
16 Replies
Decker
DeckerOP6d ago
Got an error when trying to attatch printer cfg to the OP (because I tried to drag and drop it right out of 7zip
blacksmithforlife
upload your printer.cfg and ratos.cfg
Decker
DeckerOP6d ago
oh ratos cfg i totally overlooked that one, my bad
Decker
DeckerOP6d ago
didnt think to check ratos.cfg, but there is is, line 359
# Controller cooling fan
[controller_fan controller_fan]
# 2-pin fan connected to 2-pin header on Octopus V1.1 F446 - input voltage pwm
pin: PD12
# Controller cooling fan
[controller_fan controller_fan]
# 2-pin fan connected to 2-pin header on Octopus V1.1 F446 - input voltage pwm
pin: PD12
Should I use the Setup Wizard to tell it No Fan and use the two in printer.cfg, or set it to "input voltage pwm" and then set up only the second fan in printer.cfg
MDFPereira
MDFPereira6d ago
You can use multi_pin_fan to use 2 controller fans and they will work together.
Decker
DeckerOP6d ago
So get rid of both controller_fan entries in printer.cfg, set controller fan to none in set up wizard, then add to printer.cfg:
[multi_pin controller_fan_pins]
pins: PD12, PD13

[controller_fan controller_fans]
pin: multi_pin:controller_fan_pins
[multi_pin controller_fan_pins]
pins: PD12, PD13

[controller_fan controller_fans]
pin: multi_pin:controller_fan_pins
Solution
blacksmithforlife
no, you already have one fan defined as a controller fan using the pin you want. Just add the other in your printer.cfg
[controller_fan controller_fan_2]
pin:PD13
[controller_fan controller_fan_2]
pin:PD13
blacksmithforlife
don't mess around with multi-pin, it is a headache
Decker
DeckerOP6d ago
fair enough lol, I'll swap to that now
blacksmithforlife
multi-pin is only useful for the print cooling fan, but we have long ago switched from dual fans to the 4028 so that isn't even needed anymore
Decker
DeckerOP6d ago
looks like the fans turn on as soon as the drivers are on and after a delay, turn off once the drivers are off, just as expected. thank you now I can finally turn on performance mode after uh,,,,,, more than a year of putting it off
blacksmithforlife
"performance" mode is really normal, and non-performance mode is "training wheels" (only good for making sure things work and not doing damage if there is a crash)
Decker
DeckerOP5d ago
it's been a long training process
MDFPereira
MDFPereira5d ago
Not at all if you know what you are doing… Used it plenty of times. And since you are setting it on printer.cfg it will override what’s in RatOs.cfg.
blacksmithforlife
agree to disagree
MDFPereira
MDFPereira5d ago
Exactly! Agreed 😉

Did you find this page helpful?