Welcome! Log In Create A New Profile

Advanced

How to turn on fan when stepper drivers turn on?

Posted by TTN 
TTN
How to turn on fan when stepper drivers turn on?
November 15, 2015 08:04PM
Is there a PWM solution that can turn on the fan when the stepper drivers power up?

To provide some cooling, I'd like to put a small fan near the board to get some air circulating, it only needs to run when the stepper drivers are on.
PWM would be very hand in this case, then I can set it to 50% or so, whereas now if I hook up the fan it will be on full speed all the time which is noisy.
I'm using an solid state relay for the heatbed which runs off a spare arduino pin, freeing up one of the ramps1.4 mosfets for the extra fan.
TTN
Re: How to turn on fan when stepper drivers turn on?
November 15, 2015 08:06PM
I did lots of googling and I searched this subforum but I didn't find what I was looking for.
Re: How to turn on fan when stepper drivers turn on?
November 16, 2015 03:25AM
There is a board fan pin that does exactly that. It assumes only when printing we need cooling so it turns fan off when motors are off.


Repetier-Software - the home of Repetier-Host (Windows, Linux and Mac OS X) and Repetier-Firmware.
Repetier-Server - the solution to control your printer from everywhere.
Visit us on Facebook and Twitter!
TTN
Re: How to turn on fan when stepper drivers turn on?
November 16, 2015 07:33AM
Thanks!

Though I can't seem to find the setting in configuration.h
Is it in configuration.h or where should I look?

For future googlers who come looking here this may also be of interest/use to you:
[github.com]
[captain-slow.dk]

Edited 1 time(s). Last edit at 11/16/2015 07:44AM by TTN.
Re: How to turn on fan when stepper drivers turn on?
November 16, 2015 08:30AM
#define FAN_BOARD_PIN yourpinnumber

should do. In config tool it is in features section.


Repetier-Software - the home of Repetier-Host (Windows, Linux and Mac OS X) and Repetier-Firmware.
Repetier-Server - the solution to control your printer from everywhere.
Visit us on Facebook and Twitter!
TTN
Re: How to turn on fan when stepper drivers turn on?
November 16, 2015 04:33PM
I can't find it in configuration.h (got it from github) I'll just define it in configuration.h and that should do the trick. smiling smiley

Thanks!

EDIT: worked smiling smiley

Edited 2 time(s). Last edit at 11/16/2015 05:55PM by TTN.
TTN
Re: How to turn on fan when stepper drivers turn on?
November 16, 2015 06:58PM
Is it possible to set a PWM value for the FAN_BOARD_PIN?
Sorry, only registered users may post in this forum.

Click here to login