#define USE_CONTROLLER_FAN

Using Ramps 1.4 and Dual Endstop firmware

I would like to get the #define USE_CONTROLLER_FAN function working to drive a fan when the steppers are enabled to cool the drivers.

My aim is to connect the fan to D9 connection as this is controlled by MOSFET and I wont need a breakout board as I would if using an aux pin.

This would lead me to make the following declaration in config file:
#define CONTROLLER_FAN_PIN 9

However, this as this is pin is defined as “FAN_PIN” the compiler fails as the sanity check calls out the conflict.

Has anybody else successfully implemented the Controller Fan functionality without additional breakout boards?

You can move the fan pin to another pin. On ramps, you can set it to 70 and it will go to an unused pin.

1 Like