1
0
mirror of https://github.com/MarlinFirmware/Marlin.git synced 2024-11-23 12:04:19 +00:00

Merge pull request #6556 from thinkyhead/rc_use_controller_fan

Implement USE_CONTROLLER_FAN as a feature
This commit is contained in:
Scott Lahteine 2017-05-02 22:43:26 -05:00 committed by GitHub
commit 902fe76db9
30 changed files with 335 additions and 174 deletions

View File

@ -558,9 +558,9 @@
// Other fans // Other fans
#define HAS_FAN0 (PIN_EXISTS(FAN)) #define HAS_FAN0 (PIN_EXISTS(FAN))
#define HAS_FAN1 (PIN_EXISTS(FAN1) && CONTROLLERFAN_PIN != FAN1_PIN && E0_AUTO_FAN_PIN != FAN1_PIN && E1_AUTO_FAN_PIN != FAN1_PIN && E2_AUTO_FAN_PIN != FAN1_PIN && E3_AUTO_FAN_PIN != FAN1_PIN) #define HAS_FAN1 (PIN_EXISTS(FAN1) && CONTROLLER_FAN_PIN != FAN1_PIN && E0_AUTO_FAN_PIN != FAN1_PIN && E1_AUTO_FAN_PIN != FAN1_PIN && E2_AUTO_FAN_PIN != FAN1_PIN && E3_AUTO_FAN_PIN != FAN1_PIN)
#define HAS_FAN2 (PIN_EXISTS(FAN2) && CONTROLLERFAN_PIN != FAN2_PIN && E0_AUTO_FAN_PIN != FAN2_PIN && E1_AUTO_FAN_PIN != FAN2_PIN && E2_AUTO_FAN_PIN != FAN2_PIN && E3_AUTO_FAN_PIN != FAN2_PIN) #define HAS_FAN2 (PIN_EXISTS(FAN2) && CONTROLLER_FAN_PIN != FAN2_PIN && E0_AUTO_FAN_PIN != FAN2_PIN && E1_AUTO_FAN_PIN != FAN2_PIN && E2_AUTO_FAN_PIN != FAN2_PIN && E3_AUTO_FAN_PIN != FAN2_PIN)
#define HAS_CONTROLLERFAN (PIN_EXISTS(CONTROLLERFAN)) #define HAS_CONTROLLER_FAN (PIN_EXISTS(CONTROLLER_FAN))
// Servos // Servos
#define HAS_SERVOS (defined(NUM_SERVOS) && NUM_SERVOS > 0) #define HAS_SERVOS (defined(NUM_SERVOS) && NUM_SERVOS > 0)

View File

@ -174,12 +174,19 @@
#define TEMP_SENSOR_AD595_OFFSET 0.0 #define TEMP_SENSOR_AD595_OFFSET 0.0
#define TEMP_SENSOR_AD595_GAIN 1.0 #define TEMP_SENSOR_AD595_GAIN 1.0
//This is for controlling a fan to cool down the stepper drivers /**
//it will turn on when any driver is enabled * Controller Fan
//and turn off after the set amount of seconds from last driver being disabled again * To cool down the stepper drivers and MOSFETs.
#define CONTROLLERFAN_PIN -1 //Pin used for the fan to cool controller (-1 to disable) *
#define CONTROLLERFAN_SECS 60 //How many seconds, after all motors were disabled, the fan should run * The fan will turn on automatically whenever any stepper is enabled
#define CONTROLLERFAN_SPEED 255 // == full speed * and turn off after a set period after all steppers are turned off.
*/
//#define USE_CONTROLLER_FAN
#if ENABLED(USE_CONTROLLER_FAN)
//#define CONTROLLER_FAN_PIN FAN1_PIN // Set a custom pin for the controller fan
#define CONTROLLERFAN_SECS 60 // Duration in seconds for the fan to run after all motors are disabled
#define CONTROLLERFAN_SPEED 255 // 255 == full speed
#endif
// When first starting the main fan, run it at full speed for the // When first starting the main fan, run it at full speed for the
// given number of milliseconds. This gets the fan spinning reliably // given number of milliseconds. This gets the fan spinning reliably

View File

@ -11471,7 +11471,7 @@ void prepare_move_to_destination() {
#endif // BEZIER_CURVE_SUPPORT #endif // BEZIER_CURVE_SUPPORT
#if HAS_CONTROLLERFAN #if USE_CONTROLLER_FAN
void controllerFan() { void controllerFan() {
static millis_t lastMotorOn = 0, // Last time a motor was turned on static millis_t lastMotorOn = 0, // Last time a motor was turned on
@ -11504,12 +11504,12 @@ void prepare_move_to_destination() {
uint8_t speed = (!lastMotorOn || ELAPSED(ms, lastMotorOn + (CONTROLLERFAN_SECS) * 1000UL)) ? 0 : CONTROLLERFAN_SPEED; uint8_t speed = (!lastMotorOn || ELAPSED(ms, lastMotorOn + (CONTROLLERFAN_SECS) * 1000UL)) ? 0 : CONTROLLERFAN_SPEED;
// allows digital or PWM fan output to be used (see M42 handling) // allows digital or PWM fan output to be used (see M42 handling)
WRITE(CONTROLLERFAN_PIN, speed); WRITE(CONTROLLER_FAN_PIN, speed);
analogWrite(CONTROLLERFAN_PIN, speed); analogWrite(CONTROLLER_FAN_PIN, speed);
} }
} }
#endif // HAS_CONTROLLERFAN #endif // USE_CONTROLLER_FAN
#if ENABLED(MORGAN_SCARA) #if ENABLED(MORGAN_SCARA)
@ -11925,7 +11925,7 @@ void manage_inactivity(bool ignore_stepper_queue/*=false*/) {
} }
#endif #endif
#if HAS_CONTROLLERFAN #if USE_CONTROLLER_FAN
controllerFan(); // Check if fan should be turned on to cool stepper drivers down controllerFan(); // Check if fan should be turned on to cool stepper drivers down
#endif #endif
@ -12195,8 +12195,8 @@ void setup() {
endstops.enable_z_probe(false); endstops.enable_z_probe(false);
#endif #endif
#if HAS_CONTROLLERFAN #if USE_CONTROLLER_FAN
SET_OUTPUT(CONTROLLERFAN_PIN); //Set pin used for driver cooling fan SET_OUTPUT(CONTROLLER_FAN_PIN); //Set pin used for driver cooling fan
#endif #endif
#if HAS_STEPPER_RESET #if HAS_STEPPER_RESET

View File

@ -174,6 +174,8 @@
#error "(min|max)_software_endstops are now (MIN|MAX)_SOFTWARE_ENDSTOPS. Please update your configuration." #error "(min|max)_software_endstops are now (MIN|MAX)_SOFTWARE_ENDSTOPS. Please update your configuration."
#elif ENABLED(Z_PROBE_SLED) && defined(SLED_PIN) #elif ENABLED(Z_PROBE_SLED) && defined(SLED_PIN)
#error "Replace SLED_PIN with SOL1_PIN (applies to both Z_PROBE_SLED and SOLENOID_PROBE)." #error "Replace SLED_PIN with SOL1_PIN (applies to both Z_PROBE_SLED and SOLENOID_PROBE)."
#elif defined(CONTROLLERFAN_PIN)
#error "CONTROLLERFAN_PIN is now CONTROLLER_FAN_PIN, enabled with USE_CONTROLLER_FAN. Please update your Configuration_adv.h."
#endif #endif
/** /**
@ -765,19 +767,21 @@ static_assert(1 >= 0
#endif #endif
#endif #endif
#if HAS_FAN0 && CONTROLLERFAN_PIN == FAN_PIN #if HAS_FAN0 && CONTROLLER_FAN_PIN == FAN_PIN
#error "You cannot set CONTROLLERFAN_PIN equal to FAN_PIN." #error "You cannot set CONTROLLER_FAN_PIN equal to FAN_PIN."
#endif #endif
#if HAS_CONTROLLERFAN #if USE_CONTROLLER_FAN
#if E0_AUTO_FAN_PIN == CONTROLLERFAN_PIN #if !HAS_CONTROLLER_FAN
#error "You cannot set E0_AUTO_FAN_PIN equal to CONTROLLERFAN_PIN." #error "USE_CONTROLLER_FAN requires a CONTROLLER_FAN_PIN. Define in Configuration_adv.h."
#elif E1_AUTO_FAN_PIN == CONTROLLERFAN_PIN #elif E0_AUTO_FAN_PIN == CONTROLLER_FAN_PIN
#error "You cannot set E1_AUTO_FAN_PIN equal to CONTROLLERFAN_PIN." #error "You cannot set E0_AUTO_FAN_PIN equal to CONTROLLER_FAN_PIN."
#elif E2_AUTO_FAN_PIN == CONTROLLERFAN_PIN #elif E1_AUTO_FAN_PIN == CONTROLLER_FAN_PIN
#error "You cannot set E2_AUTO_FAN_PIN equal to CONTROLLERFAN_PIN." #error "You cannot set E1_AUTO_FAN_PIN equal to CONTROLLER_FAN_PIN."
#elif E3_AUTO_FAN_PIN == CONTROLLERFAN_PIN #elif E2_AUTO_FAN_PIN == CONTROLLER_FAN_PIN
#error "You cannot set E3_AUTO_FAN_PIN equal to CONTROLLERFAN_PIN." #error "You cannot set E2_AUTO_FAN_PIN equal to CONTROLLER_FAN_PIN."
#elif E3_AUTO_FAN_PIN == CONTROLLER_FAN_PIN
#error "You cannot set E3_AUTO_FAN_PIN equal to CONTROLLER_FAN_PIN."
#endif #endif
#endif #endif

View File

@ -174,12 +174,19 @@
#define TEMP_SENSOR_AD595_OFFSET 3.0 #define TEMP_SENSOR_AD595_OFFSET 3.0
#define TEMP_SENSOR_AD595_GAIN 2.0 #define TEMP_SENSOR_AD595_GAIN 2.0
//This is for controlling a fan to cool down the stepper drivers /**
//it will turn on when any driver is enabled * Controller Fan
//and turn off after the set amount of seconds from last driver being disabled again * To cool down the stepper drivers and MOSFETs.
#define CONTROLLERFAN_PIN -1 //Pin used for the fan to cool controller (-1 to disable) *
#define CONTROLLERFAN_SECS 60 //How many seconds, after all motors were disabled, the fan should run * The fan will turn on automatically whenever any stepper is enabled
#define CONTROLLERFAN_SPEED 255 // == full speed * and turn off after a set period after all steppers are turned off.
*/
//#define USE_CONTROLLER_FAN
#if ENABLED(USE_CONTROLLER_FAN)
//#define CONTROLLER_FAN_PIN FAN1_PIN // Set a custom pin for the controller fan
#define CONTROLLERFAN_SECS 60 // Duration in seconds for the fan to run after all motors are disabled
#define CONTROLLERFAN_SPEED 255 // 255 == full speed
#endif
// When first starting the main fan, run it at full speed for the // When first starting the main fan, run it at full speed for the
// given number of milliseconds. This gets the fan spinning reliably // given number of milliseconds. This gets the fan spinning reliably

View File

@ -174,12 +174,19 @@
#define TEMP_SENSOR_AD595_OFFSET 0.0 #define TEMP_SENSOR_AD595_OFFSET 0.0
#define TEMP_SENSOR_AD595_GAIN 1.0 #define TEMP_SENSOR_AD595_GAIN 1.0
//This is for controlling a fan to cool down the stepper drivers /**
//it will turn on when any driver is enabled * Controller Fan
//and turn off after the set amount of seconds from last driver being disabled again * To cool down the stepper drivers and MOSFETs.
#define CONTROLLERFAN_PIN -1 //Pin used for the fan to cool controller (-1 to disable) *
#define CONTROLLERFAN_SECS 60 //How many seconds, after all motors were disabled, the fan should run * The fan will turn on automatically whenever any stepper is enabled
#define CONTROLLERFAN_SPEED 255 // == full speed * and turn off after a set period after all steppers are turned off.
*/
//#define USE_CONTROLLER_FAN
#if ENABLED(USE_CONTROLLER_FAN)
//#define CONTROLLER_FAN_PIN FAN1_PIN // Set a custom pin for the controller fan
#define CONTROLLERFAN_SECS 60 // Duration in seconds for the fan to run after all motors are disabled
#define CONTROLLERFAN_SPEED 255 // 255 == full speed
#endif
// When first starting the main fan, run it at full speed for the // When first starting the main fan, run it at full speed for the
// given number of milliseconds. This gets the fan spinning reliably // given number of milliseconds. This gets the fan spinning reliably

View File

@ -174,12 +174,19 @@
#define TEMP_SENSOR_AD595_OFFSET 0.0 #define TEMP_SENSOR_AD595_OFFSET 0.0
#define TEMP_SENSOR_AD595_GAIN 1.0 #define TEMP_SENSOR_AD595_GAIN 1.0
//This is for controlling a fan to cool down the stepper drivers /**
//it will turn on when any driver is enabled * Controller Fan
//and turn off after the set amount of seconds from last driver being disabled again * To cool down the stepper drivers and MOSFETs.
#define CONTROLLERFAN_PIN -1 //Pin used for the fan to cool controller (-1 to disable) *
#define CONTROLLERFAN_SECS 60 //How many seconds, after all motors were disabled, the fan should run * The fan will turn on automatically whenever any stepper is enabled
#define CONTROLLERFAN_SPEED 255 // == full speed * and turn off after a set period after all steppers are turned off.
*/
//#define USE_CONTROLLER_FAN
#if ENABLED(USE_CONTROLLER_FAN)
//#define CONTROLLER_FAN_PIN FAN1_PIN // Set a custom pin for the controller fan
#define CONTROLLERFAN_SECS 60 // Duration in seconds for the fan to run after all motors are disabled
#define CONTROLLERFAN_SPEED 255 // 255 == full speed
#endif
// When first starting the main fan, run it at full speed for the // When first starting the main fan, run it at full speed for the
// given number of milliseconds. This gets the fan spinning reliably // given number of milliseconds. This gets the fan spinning reliably

View File

@ -174,12 +174,19 @@
#define TEMP_SENSOR_AD595_OFFSET 0.0 #define TEMP_SENSOR_AD595_OFFSET 0.0
#define TEMP_SENSOR_AD595_GAIN 1.0 #define TEMP_SENSOR_AD595_GAIN 1.0
//This is for controlling a fan to cool down the stepper drivers /**
//it will turn on when any driver is enabled * Controller Fan
//and turn off after the set amount of seconds from last driver being disabled again * To cool down the stepper drivers and MOSFETs.
#define CONTROLLERFAN_PIN -1 //Pin used for the fan to cool controller (-1 to disable) *
#define CONTROLLERFAN_SECS 60 //How many seconds, after all motors were disabled, the fan should run * The fan will turn on automatically whenever any stepper is enabled
#define CONTROLLERFAN_SPEED 255 // == full speed * and turn off after a set period after all steppers are turned off.
*/
//#define USE_CONTROLLER_FAN
#if ENABLED(USE_CONTROLLER_FAN)
//#define CONTROLLER_FAN_PIN FAN1_PIN // Set a custom pin for the controller fan
#define CONTROLLERFAN_SECS 60 // Duration in seconds for the fan to run after all motors are disabled
#define CONTROLLERFAN_SPEED 255 // 255 == full speed
#endif
// When first starting the main fan, run it at full speed for the // When first starting the main fan, run it at full speed for the
// given number of milliseconds. This gets the fan spinning reliably // given number of milliseconds. This gets the fan spinning reliably

View File

@ -174,12 +174,19 @@
#define TEMP_SENSOR_AD595_OFFSET 0.0 #define TEMP_SENSOR_AD595_OFFSET 0.0
#define TEMP_SENSOR_AD595_GAIN 1.0 #define TEMP_SENSOR_AD595_GAIN 1.0
//This is for controlling a fan to cool down the stepper drivers /**
//it will turn on when any driver is enabled * Controller Fan
//and turn off after the set amount of seconds from last driver being disabled again * To cool down the stepper drivers and MOSFETs.
#define CONTROLLERFAN_PIN -1 //Pin used for the fan to cool controller (-1 to disable) *
#define CONTROLLERFAN_SECS 60 //How many seconds, after all motors were disabled, the fan should run * The fan will turn on automatically whenever any stepper is enabled
#define CONTROLLERFAN_SPEED 255 // == full speed * and turn off after a set period after all steppers are turned off.
*/
//#define USE_CONTROLLER_FAN
#if ENABLED(USE_CONTROLLER_FAN)
//#define CONTROLLER_FAN_PIN FAN1_PIN // Set a custom pin for the controller fan
#define CONTROLLERFAN_SECS 60 // Duration in seconds for the fan to run after all motors are disabled
#define CONTROLLERFAN_SPEED 255 // 255 == full speed
#endif
// When first starting the main fan, run it at full speed for the // When first starting the main fan, run it at full speed for the
// given number of milliseconds. This gets the fan spinning reliably // given number of milliseconds. This gets the fan spinning reliably

View File

@ -187,12 +187,19 @@
#define TEMP_SENSOR_AD595_OFFSET 0.0 #define TEMP_SENSOR_AD595_OFFSET 0.0
#define TEMP_SENSOR_AD595_GAIN 1.0 #define TEMP_SENSOR_AD595_GAIN 1.0
//This is for controlling a fan to cool down the stepper drivers /**
//it will turn on when any driver is enabled * Controller Fan
//and turn off after the set amount of seconds from last driver being disabled again * To cool down the stepper drivers and MOSFETs.
#define CONTROLLERFAN_PIN -1 //Pin used for the fan to cool controller (-1 to disable) *
#define CONTROLLERFAN_SECS 60 //How many seconds, after all motors were disabled, the fan should run * The fan will turn on automatically whenever any stepper is enabled
#define CONTROLLERFAN_SPEED 255 // == full speed * and turn off after a set period after all steppers are turned off.
*/
//#define USE_CONTROLLER_FAN
#if ENABLED(USE_CONTROLLER_FAN)
//#define CONTROLLER_FAN_PIN FAN1_PIN // Set a custom pin for the controller fan
#define CONTROLLERFAN_SECS 60 // Duration in seconds for the fan to run after all motors are disabled
#define CONTROLLERFAN_SPEED 255 // 255 == full speed
#endif
// When first starting the main fan, run it at full speed for the // When first starting the main fan, run it at full speed for the
// given number of milliseconds. This gets the fan spinning reliably // given number of milliseconds. This gets the fan spinning reliably

View File

@ -174,12 +174,19 @@
#define TEMP_SENSOR_AD595_OFFSET 0.0 #define TEMP_SENSOR_AD595_OFFSET 0.0
#define TEMP_SENSOR_AD595_GAIN 1.0 #define TEMP_SENSOR_AD595_GAIN 1.0
//This is for controlling a fan to cool down the stepper drivers /**
//it will turn on when any driver is enabled * Controller Fan
//and turn off after the set amount of seconds from last driver being disabled again * To cool down the stepper drivers and MOSFETs.
#define CONTROLLERFAN_PIN 2 //Pin used for the fan to cool controller (-1 to disable) *
#define CONTROLLERFAN_SECS 60 //How many seconds, after all motors were disabled, the fan should run * The fan will turn on automatically whenever any stepper is enabled
#define CONTROLLERFAN_SPEED 255 // == full speed * and turn off after a set period after all steppers are turned off.
*/
#define USE_CONTROLLER_FAN
#if ENABLED(USE_CONTROLLER_FAN)
#define CONTROLLER_FAN_PIN 2 // Set a custom pin for the controller fan
#define CONTROLLERFAN_SECS 60 // Duration in seconds for the fan to run after all motors are disabled
#define CONTROLLERFAN_SPEED 255 // 255 == full speed
#endif
// When first starting the main fan, run it at full speed for the // When first starting the main fan, run it at full speed for the
// given number of milliseconds. This gets the fan spinning reliably // given number of milliseconds. This gets the fan spinning reliably

View File

@ -174,12 +174,19 @@
#define TEMP_SENSOR_AD595_OFFSET 0.0 #define TEMP_SENSOR_AD595_OFFSET 0.0
#define TEMP_SENSOR_AD595_GAIN 1.0 #define TEMP_SENSOR_AD595_GAIN 1.0
//This is for controlling a fan to cool down the stepper drivers /**
//it will turn on when any driver is enabled * Controller Fan
//and turn off after the set amount of seconds from last driver being disabled again * To cool down the stepper drivers and MOSFETs.
#define CONTROLLERFAN_PIN 4 // RigidBot: Fans/Water Pump to cool the hotend cool side. *
#define CONTROLLERFAN_SECS 60 //How many seconds, after all motors were disabled, the fan should run * The fan will turn on automatically whenever any stepper is enabled
#define CONTROLLERFAN_SPEED 255 // == full speed * and turn off after a set period after all steppers are turned off.
*/
#define USE_CONTROLLER_FAN
#if ENABLED(USE_CONTROLLER_FAN)
#define CONTROLLER_FAN_PIN 4 // Set a custom pin for the controller fan
#define CONTROLLERFAN_SECS 60 // Duration in seconds for the fan to run after all motors are disabled
#define CONTROLLERFAN_SPEED 255 // 255 == full speed
#endif
// When first starting the main fan, run it at full speed for the // When first starting the main fan, run it at full speed for the
// given number of milliseconds. This gets the fan spinning reliably // given number of milliseconds. This gets the fan spinning reliably

View File

@ -174,12 +174,19 @@
#define TEMP_SENSOR_AD595_OFFSET 0.0 #define TEMP_SENSOR_AD595_OFFSET 0.0
#define TEMP_SENSOR_AD595_GAIN 1.0 #define TEMP_SENSOR_AD595_GAIN 1.0
//This is for controlling a fan to cool down the stepper drivers /**
//it will turn on when any driver is enabled * Controller Fan
//and turn off after the set amount of seconds from last driver being disabled again * To cool down the stepper drivers and MOSFETs.
#define CONTROLLERFAN_PIN -1 //Pin used for the fan to cool controller (-1 to disable) *
#define CONTROLLERFAN_SECS 60 //How many seconds, after all motors were disabled, the fan should run * The fan will turn on automatically whenever any stepper is enabled
#define CONTROLLERFAN_SPEED 255 // == full speed * and turn off after a set period after all steppers are turned off.
*/
//#define USE_CONTROLLER_FAN
#if ENABLED(USE_CONTROLLER_FAN)
//#define CONTROLLER_FAN_PIN FAN1_PIN // Set a custom pin for the controller fan
#define CONTROLLERFAN_SECS 60 // Duration in seconds for the fan to run after all motors are disabled
#define CONTROLLERFAN_SPEED 255 // 255 == full speed
#endif
// When first starting the main fan, run it at full speed for the // When first starting the main fan, run it at full speed for the
// given number of milliseconds. This gets the fan spinning reliably // given number of milliseconds. This gets the fan spinning reliably

View File

@ -174,20 +174,19 @@
#define TEMP_SENSOR_AD595_OFFSET 0.0 #define TEMP_SENSOR_AD595_OFFSET 0.0
#define TEMP_SENSOR_AD595_GAIN 1.0 #define TEMP_SENSOR_AD595_GAIN 1.0
//This is for controlling a fan to cool down the stepper drivers /**
//it will turn on when any driver is enabled * Controller Fan
//and turn off after the set amount of seconds from last driver being disabled again * To cool down the stepper drivers and MOSFETs.
*
/********************************************************** * The fan will turn on automatically whenever any stepper is enabled
Fan Pins * and turn off after a set period after all steppers are turned off.
Fan_0 8 - Extruder 0 fan */
Fan_1 6 - Extruder 1 fan #define USE_CONTROLLER_FAN
Fan_2 2 - Case fan #if ENABLED(USE_CONTROLLER_FAN)
***********************************************************/ #define CONTROLLER_FAN_PIN 2 // Set a custom pin for the controller fan
#define CONTROLLERFAN_SECS 60 // Duration in seconds for the fan to run after all motors are disabled
#define CONTROLLERFAN_PIN 2 //Pin used for the fan to cool controller (-1 to disable) #define CONTROLLERFAN_SPEED 130 // 255 == full speed
#define CONTROLLERFAN_SECS 60 //How many seconds, after all motors were disabled, the fan should run #endif
#define CONTROLLERFAN_SPEED 130 // 255 == full speed
// When first starting the main fan, run it at full speed for the // When first starting the main fan, run it at full speed for the
// given number of milliseconds. This gets the fan spinning reliably // given number of milliseconds. This gets the fan spinning reliably

View File

@ -174,12 +174,19 @@
#define TEMP_SENSOR_AD595_OFFSET 0.0 #define TEMP_SENSOR_AD595_OFFSET 0.0
#define TEMP_SENSOR_AD595_GAIN 1.0 #define TEMP_SENSOR_AD595_GAIN 1.0
//This is for controlling a fan to cool down the stepper drivers /**
//it will turn on when any driver is enabled * Controller Fan
//and turn off after the set amount of seconds from last driver being disabled again * To cool down the stepper drivers and MOSFETs.
#define CONTROLLERFAN_PIN -1 //Pin used for the fan to cool controller (-1 to disable) *
#define CONTROLLERFAN_SECS 60 //How many seconds, after all motors were disabled, the fan should run * The fan will turn on automatically whenever any stepper is enabled
#define CONTROLLERFAN_SPEED 255 // == full speed * and turn off after a set period after all steppers are turned off.
*/
//#define USE_CONTROLLER_FAN
#if ENABLED(USE_CONTROLLER_FAN)
//#define CONTROLLER_FAN_PIN FAN1_PIN // Set a custom pin for the controller fan
#define CONTROLLERFAN_SECS 60 // Duration in seconds for the fan to run after all motors are disabled
#define CONTROLLERFAN_SPEED 255 // 255 == full speed
#endif
// When first starting the main fan, run it at full speed for the // When first starting the main fan, run it at full speed for the
// given number of milliseconds. This gets the fan spinning reliably // given number of milliseconds. This gets the fan spinning reliably

View File

@ -174,12 +174,19 @@
#define TEMP_SENSOR_AD595_OFFSET 0.0 #define TEMP_SENSOR_AD595_OFFSET 0.0
#define TEMP_SENSOR_AD595_GAIN 1.0 #define TEMP_SENSOR_AD595_GAIN 1.0
//This is for controlling a fan to cool down the stepper drivers /**
//it will turn on when any driver is enabled * Controller Fan
//and turn off after the set amount of seconds from last driver being disabled again * To cool down the stepper drivers and MOSFETs.
#define CONTROLLERFAN_PIN -1 //Pin used for the fan to cool controller (-1 to disable) *
#define CONTROLLERFAN_SECS 60 //How many seconds, after all motors were disabled, the fan should run * The fan will turn on automatically whenever any stepper is enabled
#define CONTROLLERFAN_SPEED 255 // == full speed * and turn off after a set period after all steppers are turned off.
*/
//#define USE_CONTROLLER_FAN
#if ENABLED(USE_CONTROLLER_FAN)
//#define CONTROLLER_FAN_PIN FAN1_PIN // Set a custom pin for the controller fan
#define CONTROLLERFAN_SECS 60 // Duration in seconds for the fan to run after all motors are disabled
#define CONTROLLERFAN_SPEED 255 // 255 == full speed
#endif
// When first starting the main fan, run it at full speed for the // When first starting the main fan, run it at full speed for the
// given number of milliseconds. This gets the fan spinning reliably // given number of milliseconds. This gets the fan spinning reliably

View File

@ -174,12 +174,19 @@
#define TEMP_SENSOR_AD595_OFFSET 0.0 #define TEMP_SENSOR_AD595_OFFSET 0.0
#define TEMP_SENSOR_AD595_GAIN 1.0 #define TEMP_SENSOR_AD595_GAIN 1.0
//This is for controlling a fan to cool down the stepper drivers /**
//it will turn on when any driver is enabled * Controller Fan
//and turn off after the set amount of seconds from last driver being disabled again * To cool down the stepper drivers and MOSFETs.
#define CONTROLLERFAN_PIN -1 //Pin used for the fan to cool controller (-1 to disable) *
#define CONTROLLERFAN_SECS 60 //How many seconds, after all motors were disabled, the fan should run * The fan will turn on automatically whenever any stepper is enabled
#define CONTROLLERFAN_SPEED 255 // == full speed * and turn off after a set period after all steppers are turned off.
*/
//#define USE_CONTROLLER_FAN
#if ENABLED(USE_CONTROLLER_FAN)
//#define CONTROLLER_FAN_PIN FAN1_PIN // Set a custom pin for the controller fan
#define CONTROLLERFAN_SECS 60 // Duration in seconds for the fan to run after all motors are disabled
#define CONTROLLERFAN_SPEED 255 // 255 == full speed
#endif
// When first starting the main fan, run it at full speed for the // When first starting the main fan, run it at full speed for the
// given number of milliseconds. This gets the fan spinning reliably // given number of milliseconds. This gets the fan spinning reliably

View File

@ -174,12 +174,19 @@
#define TEMP_SENSOR_AD595_OFFSET 0.0 #define TEMP_SENSOR_AD595_OFFSET 0.0
#define TEMP_SENSOR_AD595_GAIN 1.0 #define TEMP_SENSOR_AD595_GAIN 1.0
//This is for controlling a fan to cool down the stepper drivers /**
//it will turn on when any driver is enabled * Controller Fan
//and turn off after the set amount of seconds from last driver being disabled again * To cool down the stepper drivers and MOSFETs.
#define CONTROLLERFAN_PIN -1 //Pin used for the fan to cool controller (-1 to disable) *
#define CONTROLLERFAN_SECS 60 //How many seconds, after all motors were disabled, the fan should run * The fan will turn on automatically whenever any stepper is enabled
#define CONTROLLERFAN_SPEED 255 // == full speed * and turn off after a set period after all steppers are turned off.
*/
//#define USE_CONTROLLER_FAN
#if ENABLED(USE_CONTROLLER_FAN)
//#define CONTROLLER_FAN_PIN FAN1_PIN // Set a custom pin for the controller fan
#define CONTROLLERFAN_SECS 60 // Duration in seconds for the fan to run after all motors are disabled
#define CONTROLLERFAN_SPEED 255 // 255 == full speed
#endif
// When first starting the main fan, run it at full speed for the // When first starting the main fan, run it at full speed for the
// given number of milliseconds. This gets the fan spinning reliably // given number of milliseconds. This gets the fan spinning reliably

View File

@ -174,12 +174,19 @@
#define TEMP_SENSOR_AD595_OFFSET 0.0 #define TEMP_SENSOR_AD595_OFFSET 0.0
#define TEMP_SENSOR_AD595_GAIN 1.0 #define TEMP_SENSOR_AD595_GAIN 1.0
//This is for controlling a fan to cool down the stepper drivers /**
//it will turn on when any driver is enabled * Controller Fan
//and turn off after the set amount of seconds from last driver being disabled again * To cool down the stepper drivers and MOSFETs.
#define CONTROLLERFAN_PIN -1 //Pin used for the fan to cool controller (-1 to disable) *
#define CONTROLLERFAN_SECS 60 //How many seconds, after all motors were disabled, the fan should run * The fan will turn on automatically whenever any stepper is enabled
#define CONTROLLERFAN_SPEED 255 // == full speed * and turn off after a set period after all steppers are turned off.
*/
//#define USE_CONTROLLER_FAN
#if ENABLED(USE_CONTROLLER_FAN)
//#define CONTROLLER_FAN_PIN FAN1_PIN // Set a custom pin for the controller fan
#define CONTROLLERFAN_SECS 60 // Duration in seconds for the fan to run after all motors are disabled
#define CONTROLLERFAN_SPEED 255 // 255 == full speed
#endif
// When first starting the main fan, run it at full speed for the // When first starting the main fan, run it at full speed for the
// given number of milliseconds. This gets the fan spinning reliably // given number of milliseconds. This gets the fan spinning reliably

View File

@ -174,12 +174,19 @@
#define TEMP_SENSOR_AD595_OFFSET 0.0 #define TEMP_SENSOR_AD595_OFFSET 0.0
#define TEMP_SENSOR_AD595_GAIN 1.0 #define TEMP_SENSOR_AD595_GAIN 1.0
//This is for controlling a fan to cool down the stepper drivers /**
//it will turn on when any driver is enabled * Controller Fan
//and turn off after the set amount of seconds from last driver being disabled again * To cool down the stepper drivers and MOSFETs.
#define CONTROLLERFAN_PIN -1 //Pin used for the fan to cool controller (-1 to disable) *
#define CONTROLLERFAN_SECS 60 //How many seconds, after all motors were disabled, the fan should run * The fan will turn on automatically whenever any stepper is enabled
#define CONTROLLERFAN_SPEED 255 // == full speed * and turn off after a set period after all steppers are turned off.
*/
//#define USE_CONTROLLER_FAN
#if ENABLED(USE_CONTROLLER_FAN)
//#define CONTROLLER_FAN_PIN FAN1_PIN // Set a custom pin for the controller fan
#define CONTROLLERFAN_SECS 60 // Duration in seconds for the fan to run after all motors are disabled
#define CONTROLLERFAN_SPEED 255 // 255 == full speed
#endif
// When first starting the main fan, run it at full speed for the // When first starting the main fan, run it at full speed for the
// given number of milliseconds. This gets the fan spinning reliably // given number of milliseconds. This gets the fan spinning reliably

View File

@ -179,12 +179,19 @@
#define TEMP_SENSOR_AD595_OFFSET 0.0 #define TEMP_SENSOR_AD595_OFFSET 0.0
#define TEMP_SENSOR_AD595_GAIN 1.0 #define TEMP_SENSOR_AD595_GAIN 1.0
//This is for controlling a fan to cool down the stepper drivers /**
//it will turn on when any driver is enabled * Controller Fan
//and turn off after the set amount of seconds from last driver being disabled again * To cool down the stepper drivers and MOSFETs.
#define CONTROLLERFAN_PIN -1 //Pin used for the fan to cool controller (-1 to disable) *
#define CONTROLLERFAN_SECS 60 //How many seconds, after all motors were disabled, the fan should run * The fan will turn on automatically whenever any stepper is enabled
#define CONTROLLERFAN_SPEED 255 // == full speed * and turn off after a set period after all steppers are turned off.
*/
//#define USE_CONTROLLER_FAN
#if ENABLED(USE_CONTROLLER_FAN)
//#define CONTROLLER_FAN_PIN FAN1_PIN // Set a custom pin for the controller fan
#define CONTROLLERFAN_SECS 60 // Duration in seconds for the fan to run after all motors are disabled
#define CONTROLLERFAN_SPEED 255 // 255 == full speed
#endif
// When first starting the main fan, run it at full speed for the // When first starting the main fan, run it at full speed for the
// given number of milliseconds. This gets the fan spinning reliably // given number of milliseconds. This gets the fan spinning reliably

View File

@ -174,12 +174,19 @@
#define TEMP_SENSOR_AD595_OFFSET 0.0 #define TEMP_SENSOR_AD595_OFFSET 0.0
#define TEMP_SENSOR_AD595_GAIN 1.0 #define TEMP_SENSOR_AD595_GAIN 1.0
//This is for controlling a fan to cool down the stepper drivers /**
//it will turn on when any driver is enabled * Controller Fan
//and turn off after the set amount of seconds from last driver being disabled again * To cool down the stepper drivers and MOSFETs.
#define CONTROLLERFAN_PIN -1 //Pin used for the fan to cool controller (-1 to disable) *
#define CONTROLLERFAN_SECS 60 //How many seconds, after all motors were disabled, the fan should run * The fan will turn on automatically whenever any stepper is enabled
#define CONTROLLERFAN_SPEED 255 // == full speed * and turn off after a set period after all steppers are turned off.
*/
//#define USE_CONTROLLER_FAN
#if ENABLED(USE_CONTROLLER_FAN)
//#define CONTROLLER_FAN_PIN FAN1_PIN // Set a custom pin for the controller fan
#define CONTROLLERFAN_SECS 60 // Duration in seconds for the fan to run after all motors are disabled
#define CONTROLLERFAN_SPEED 255 // 255 == full speed
#endif
// When first starting the main fan, run it at full speed for the // When first starting the main fan, run it at full speed for the
// given number of milliseconds. This gets the fan spinning reliably // given number of milliseconds. This gets the fan spinning reliably

View File

@ -174,12 +174,19 @@
#define TEMP_SENSOR_AD595_OFFSET 0.0 #define TEMP_SENSOR_AD595_OFFSET 0.0
#define TEMP_SENSOR_AD595_GAIN 1.0 #define TEMP_SENSOR_AD595_GAIN 1.0
//This is for controlling a fan to cool down the stepper drivers /**
//it will turn on when any driver is enabled * Controller Fan
//and turn off after the set amount of seconds from last driver being disabled again * To cool down the stepper drivers and MOSFETs.
#define CONTROLLERFAN_PIN -1 //Pin used for the fan to cool controller (-1 to disable) *
#define CONTROLLERFAN_SECS 60 //How many seconds, after all motors were disabled, the fan should run * The fan will turn on automatically whenever any stepper is enabled
#define CONTROLLERFAN_SPEED 255 // == full speed * and turn off after a set period after all steppers are turned off.
*/
//#define USE_CONTROLLER_FAN
#if ENABLED(USE_CONTROLLER_FAN)
//#define CONTROLLER_FAN_PIN FAN1_PIN // Set a custom pin for the controller fan
#define CONTROLLERFAN_SECS 60 // Duration in seconds for the fan to run after all motors are disabled
#define CONTROLLERFAN_SPEED 255 // 255 == full speed
#endif
// When first starting the main fan, run it at full speed for the // When first starting the main fan, run it at full speed for the
// given number of milliseconds. This gets the fan spinning reliably // given number of milliseconds. This gets the fan spinning reliably

View File

@ -174,12 +174,19 @@
#define TEMP_SENSOR_AD595_OFFSET 0.0 #define TEMP_SENSOR_AD595_OFFSET 0.0
#define TEMP_SENSOR_AD595_GAIN 1.0 #define TEMP_SENSOR_AD595_GAIN 1.0
//This is for controlling a fan to cool down the stepper drivers /**
//it will turn on when any driver is enabled * Controller Fan
//and turn off after the set amount of seconds from last driver being disabled again * To cool down the stepper drivers and MOSFETs.
#define CONTROLLERFAN_PIN -1 //Pin used for the fan to cool controller (-1 to disable) *
#define CONTROLLERFAN_SECS 60 //How many seconds, after all motors were disabled, the fan should run * The fan will turn on automatically whenever any stepper is enabled
#define CONTROLLERFAN_SPEED 255 // == full speed * and turn off after a set period after all steppers are turned off.
*/
//#define USE_CONTROLLER_FAN
#if ENABLED(USE_CONTROLLER_FAN)
//#define CONTROLLER_FAN_PIN FAN1_PIN // Set a custom pin for the controller fan
#define CONTROLLERFAN_SECS 60 // Duration in seconds for the fan to run after all motors are disabled
#define CONTROLLERFAN_SPEED 255 // 255 == full speed
#endif
// When first starting the main fan, run it at full speed for the // When first starting the main fan, run it at full speed for the
// given number of milliseconds. This gets the fan spinning reliably // given number of milliseconds. This gets the fan spinning reliably

View File

@ -174,12 +174,19 @@
#define TEMP_SENSOR_AD595_OFFSET 0.0 #define TEMP_SENSOR_AD595_OFFSET 0.0
#define TEMP_SENSOR_AD595_GAIN 1.0 #define TEMP_SENSOR_AD595_GAIN 1.0
//This is for controlling a fan to cool down the stepper drivers /**
//it will turn on when any driver is enabled * Controller Fan
//and turn off after the set amount of seconds from last driver being disabled again * To cool down the stepper drivers and MOSFETs.
#define CONTROLLERFAN_PIN 23 //Pin used for the fan to cool controller (-1 to disable) *
#define CONTROLLERFAN_SECS 60 //How many seconds, after all motors were disabled, the fan should run * The fan will turn on automatically whenever any stepper is enabled
#define CONTROLLERFAN_SPEED 255 // == full speed * and turn off after a set period after all steppers are turned off.
*/
#define USE_CONTROLLER_FAN
#if ENABLED(USE_CONTROLLER_FAN)
#define CONTROLLER_FAN_PIN 23 // Set a custom pin for the controller fan
#define CONTROLLERFAN_SECS 60 // Duration in seconds for the fan to run after all motors are disabled
#define CONTROLLERFAN_SPEED 255 // 255 == full speed
#endif
// When first starting the main fan, run it at full speed for the // When first starting the main fan, run it at full speed for the
// given number of milliseconds. This gets the fan spinning reliably // given number of milliseconds. This gets the fan spinning reliably

View File

@ -174,12 +174,19 @@
#define TEMP_SENSOR_AD595_OFFSET 0.0 #define TEMP_SENSOR_AD595_OFFSET 0.0
#define TEMP_SENSOR_AD595_GAIN 1.0 #define TEMP_SENSOR_AD595_GAIN 1.0
//This is for controlling a fan to cool down the stepper drivers /**
//it will turn on when any driver is enabled * Controller Fan
//and turn off after the set amount of seconds from last driver being disabled again * To cool down the stepper drivers and MOSFETs.
#define CONTROLLERFAN_PIN -1 //Pin used for the fan to cool controller (-1 to disable) *
#define CONTROLLERFAN_SECS 60 //How many seconds, after all motors were disabled, the fan should run * The fan will turn on automatically whenever any stepper is enabled
#define CONTROLLERFAN_SPEED 255 // == full speed * and turn off after a set period after all steppers are turned off.
*/
//#define USE_CONTROLLER_FAN
#if ENABLED(USE_CONTROLLER_FAN)
//#define CONTROLLER_FAN_PIN FAN1_PIN // Set a custom pin for the controller fan
#define CONTROLLERFAN_SECS 60 // Duration in seconds for the fan to run after all motors are disabled
#define CONTROLLERFAN_SPEED 255 // 255 == full speed
#endif
// When first starting the main fan, run it at full speed for the // When first starting the main fan, run it at full speed for the
// given number of milliseconds. This gets the fan spinning reliably // given number of milliseconds. This gets the fan spinning reliably

View File

@ -219,8 +219,8 @@
#ifndef FAN2_PIN #ifndef FAN2_PIN
#define FAN2_PIN -1 #define FAN2_PIN -1
#endif #endif
#ifndef CONTROLLERFAN_PIN #ifndef CONTROLLER_FAN_PIN
#define CONTROLLERFAN_PIN -1 #define CONTROLLER_FAN_PIN -1
#endif #endif
#ifndef HEATER_0_PIN #ifndef HEATER_0_PIN
@ -507,7 +507,7 @@
X_STEP_PIN, X_DIR_PIN, X_ENABLE_PIN, X_MIN_PIN, X_MAX_PIN, \ X_STEP_PIN, X_DIR_PIN, X_ENABLE_PIN, X_MIN_PIN, X_MAX_PIN, \
Y_STEP_PIN, Y_DIR_PIN, Y_ENABLE_PIN, Y_MIN_PIN, Y_MAX_PIN, \ Y_STEP_PIN, Y_DIR_PIN, Y_ENABLE_PIN, Y_MIN_PIN, Y_MAX_PIN, \
Z_STEP_PIN, Z_DIR_PIN, Z_ENABLE_PIN, Z_MIN_PIN, Z_MAX_PIN, Z_MIN_PROBE_PIN, \ Z_STEP_PIN, Z_DIR_PIN, Z_ENABLE_PIN, Z_MIN_PIN, Z_MAX_PIN, Z_MIN_PROBE_PIN, \
PS_ON_PIN, HEATER_BED_PIN, FAN_PIN, FAN1_PIN, FAN2_PIN, CONTROLLERFAN_PIN, \ PS_ON_PIN, HEATER_BED_PIN, FAN_PIN, FAN1_PIN, FAN2_PIN, CONTROLLER_FAN_PIN, \
_E0_PINS _E1_PINS _E2_PINS _E3_PINS _E4_PINS BED_PINS \ _E0_PINS _E1_PINS _E2_PINS _E3_PINS _E4_PINS BED_PINS \
_H0_PINS _H1_PINS _H2_PINS _H3_PINS _H4_PINS \ _H0_PINS _H1_PINS _H2_PINS _H3_PINS _H4_PINS \
_X2_PINS _Y2_PINS _Z2_PINS \ _X2_PINS _Y2_PINS _Z2_PINS \

View File

@ -95,8 +95,8 @@
#if PIN_EXISTS(CASE_LIGHT) #if PIN_EXISTS(CASE_LIGHT)
REPORT_NAME_DIGITAL(CASE_LIGHT_PIN, __LINE__ ) REPORT_NAME_DIGITAL(CASE_LIGHT_PIN, __LINE__ )
#endif #endif
#if PIN_EXISTS(CONTROLLERFAN) #if PIN_EXISTS(CONTROLLER_FAN)
REPORT_NAME_DIGITAL(CONTROLLERFAN_PIN, __LINE__ ) REPORT_NAME_DIGITAL(CONTROLLER_FAN_PIN, __LINE__ )
#endif #endif
#if PIN_EXISTS(CUTOFF_RESET) #if PIN_EXISTS(CUTOFF_RESET)
REPORT_NAME_DIGITAL(CUTOFF_RESET_PIN, __LINE__ ) REPORT_NAME_DIGITAL(CUTOFF_RESET_PIN, __LINE__ )

View File

@ -107,7 +107,9 @@
#undef FAN_PIN #undef FAN_PIN
#define FAN_PIN 6 // Part Cooling System #define FAN_PIN 6 // Part Cooling System
#define CONTROLLERFAN_PIN 4 // Pin used for the fan to cool motherboard (-1 to disable) #ifndef CONTROLLER_FAN_PIN
#define CONTROLLER_FAN_PIN 4 // Pin used for the fan to cool motherboard (-1 to disable)
#endif
// Fans/Water Pump to cool the hotend cool side. // Fans/Water Pump to cool the hotend cool side.
#define ORIG_E0_AUTO_FAN_PIN 5 #define ORIG_E0_AUTO_FAN_PIN 5

View File

@ -116,7 +116,9 @@
#define FAN1_PIN 35 #define FAN1_PIN 35
#define FAN2_PIN 36 #define FAN2_PIN 36
#define CONTROLLERFAN_PIN FAN2_PIN #ifndef CONTROLLER_FAN_PIN
#define CONTROLLER_FAN_PIN FAN2_PIN
#endif
#define FAN_SOFT_PWM #define FAN_SOFT_PWM