Need help configuring fan.

I have 3 40mm noctua fans I would like to wire 1 on the raspberri pi and 2 over the stepper drivers on the control board. They are 3 wire fans but I can switch them to two wire if needed. I have attached the printer.cfg file. Thank you guys again!!!!!
52 Replies
TheTik
TheTik5mo ago
Step one, get them working as two pin. Step two, get thepwm pin working. Step zero, plug the fans in
nathanjenny
nathanjenny5mo ago
So I think they aren't adjustable fans.... just on or off. even though three wire
TheTik
TheTik5mo ago
Wonder what the third wire is for then, tach? Seems odd to have a tach pin but no pwm What control board? Where are they plugged in?
nathanjenny
nathanjenny5mo ago
it's an octopus v1.1
nathanjenny
nathanjenny5mo ago
Noctua NF-A4x10 FLX, Premium Quiet Fan, 3-Pin (40x10mm, Brown)
Featuring advanced aerodynamic design measures such as Flow Acceleration Channels and Noctua's AAO frame, the NF-A4x10 is a highly optimized, premium quality quiet fan in 40x10mm size. Smooth Commutation Drive technology and Noctua's reference class SSO2 bearings guarantee superb running smoothne...
nathanjenny
nathanjenny5mo ago
that's the link to the fans
nathanjenny
nathanjenny5mo ago
No description
nathanjenny
nathanjenny5mo ago
So here you can see I have the one fan on the pi. It’s wired to the port directly under the 4028 fan. That one works and has 12v power. Noctua supplies a 3 to 2 converter so I used that and it works. But now I want two more fans over the stepper drivers and none of those other ports are working.
TheTik
TheTik5mo ago
Have you put in the jumper to supply 12V?
nathanjenny
nathanjenny5mo ago
yes. I tried i removed when it didn't work they are tiny quiet fans so I don't mind if they run at full speed constantly. It would be nice to see them show up in mainsail but I am not sure if that's even possible.
TheTik
TheTik5mo ago
looking through some docs. Looks like you need pin PD15, figuring out how/where to define that in printer.cfg
nathanjenny
nathanjenny5mo ago
I tried referencing PD15 under user section at bottom but nothing.
nathanjenny
nathanjenny5mo ago
wonder if this would be better?
TheTik
TheTik5mo ago
I think you'll need something like
[fan_generic my_custom_fan]
pin: PD15
[fan_generic my_custom_fan]
pin: PD15
If that doesn't give an error but the fan doesn't come on, try pin: !PD15 https://www.klipper3d.org/Config_Reference.html#fans
nathanjenny
nathanjenny5mo ago
Is this suppose to be the fan that is already connected to the Raspberri Pi I didn't get an error. and I now see My custom fan on the mainsail page. But it doesn't appear to control the PI fan. Ok, I figured it out. I basically just pulled up the pinout pdf and found pd15 and now it works. Thank you! That worked!!!!
TheTik
TheTik5mo ago
fuck yea! Never done that before so I'm pumped 😄
nathanjenny
nathanjenny5mo ago
Nice Job!!!!! Now I found the pin for the control board cooling fan but I have two fans so no idea how the hell to have a second control board cooling fan. I might just need to buy one large 120mm fan and put that on the control board.
blacksmithforlife
just add another entry
[fan_generic my_custom_fan2]
...
[fan_generic my_custom_fan2]
...
nathanjenny
nathanjenny5mo ago
I thought about that but I kinda like it coming on when I start a print. So not running all the time.
blacksmithforlife
fan_generic this is the type of fan you are adding my_custom_fan this is the unique name of the fan ok, make it a controller fan https://www.klipper3d.org/Config_Reference.html#controller_fan
nathanjenny
nathanjenny5mo ago
So if I name it My_controller_fan is there a way to program that to only come on like the default controller fan comes on?
blacksmithforlife
yes
nathanjenny
nathanjenny5mo ago
so by basically referencing the correct pin the controller_pin header that works
blacksmithforlife
[controller_fan MY_NAME]
pin: THE_PIN_I_WANT_TO_USE
[controller_fan MY_NAME]
pin: THE_PIN_I_WANT_TO_USE
nathanjenny
nathanjenny5mo ago
holy crap....... this is so awesome I can change all this stuff just by typing some code.....
blacksmithforlife
https://os.ratrig.com/docs/boards/btt/octopus-11#wiring you can see that one of the ports is already defined for a controller fan if you want more, just make a unique name and tell it what pin to use
nathanjenny
nathanjenny5mo ago
Ok that is awesome. I am going to try now. Makes total sense.
blacksmithforlife
just remember the last two(furthest right from the power inputs) fan ports on the octopus are always on (you can't control them)
nathanjenny
nathanjenny5mo ago
Where do they define the default controller fan? got it
blacksmithforlife
https://github.com/Rat-OS/RatOS-configuration/blob/v2.x/printers/v-core-3/v-core-3.cfg but as long as you follow the wiring diagram you don't really need to know where it is defined
nathanjenny
nathanjenny5mo ago
gotcha
blacksmithforlife
that's kind of the point of Rat-OS, you don't need to know as much about the pins and everything
nathanjenny
nathanjenny5mo ago
ok I am going to try it. Thank you again! Ok so I tried this:[controller_fan controller_fan] pin: PD13d So now pin PD13d turns on and off with the controller fan put PD12d doesn't Is there a way to reference two pins on the same controller_fan line so you can have both pins come on together?
blacksmithforlife
PD13d ? you need to use the pin names from https://github.com/bigtreetech/BIGTREETECH-OCTOPUS-V1.0/blob/master/Hardware/BIGTREETECH%20Octopus%20-%20PIN.pdf so it would be PD13 or PD12 but PD12 is already a controller fan
nathanjenny
nathanjenny5mo ago
That's what I was going for.
blacksmithforlife
so no need to change it
nathanjenny
nathanjenny5mo ago
For some reason now that one doesn't come on
blacksmithforlife
it only comes on when your stepper motors are active
nathanjenny
nathanjenny5mo ago
Once I started the heating process it came on.
blacksmithforlife
so if you define it to be associated with a heater, then it will turn on then
blacksmithforlife
upload your current printer.cfg
nathanjenny
nathanjenny5mo ago
ok here it is.
blacksmithforlife
ok, did you want it as a generic fan for raspberry? You have
[controller_fan controller_fan]
pin: PD13
[controller_fan controller_fan]
pin: PD13
because you used the same name as before (controller_fan) it overwrote the previous config. It should be
[controller_fan controller_fan2]
pin: PD13
[controller_fan controller_fan2]
pin: PD13
you can change controller_fan2 to whatever you want. It just has to be unique
nathanjenny
nathanjenny5mo ago
Ok makes sense. I will give it a go! THAT WORKED!!!!!!!!!! THANK YOU!!!!!!!!!!!!! SO AWESOME!!!!!!!!!!!! Man now I am going to do that with the PI fan so it comes on whenever I start a print
blacksmithforlife
You could also attach the fan to the PI header (sure it is only 5v but that's ok, it just won't run as fast) and have it always on. The pi will constantly be generating heat, unlike the stepper drivers that only really get hot when in use
nathanjenny
nathanjenny5mo ago
Oh that's a good idea. Well wait I already have both 5v in use Only thing left are the two 3v
blacksmithforlife
you could also use something like this (FYI I designed it) https://www.printables.com/model/104296-octopus-and-pi-din-mounted-fans-holder to have two fans and have it cool both the steppers and the pi at the same time
nathanjenny
nathanjenny5mo ago
oh that's pretty cool