From 0183ae4b662e2797d671f5844e50cb445b6a1305 Mon Sep 17 00:00:00 2001 From: Marcio Teixeira Date: Mon, 25 Sep 2017 09:58:59 -0600 Subject: [PATCH] Added fix for Pelonis C4010L24BPLB1b-7 fan. --- Marlin/Conditionals_LulzBot.h | 9 ++++++++- Marlin/Configuration.h | 6 +++--- 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/Marlin/Conditionals_LulzBot.h b/Marlin/Conditionals_LulzBot.h index 017fa5925..1c0154c0d 100644 --- a/Marlin/Conditionals_LulzBot.h +++ b/Marlin/Conditionals_LulzBot.h @@ -39,7 +39,7 @@ #error Must specify model and toolhead. Please see "Configuration_LulzBot.h" for directions. #endif -#define LULZBOT_FW_VERSION ".12" +#define LULZBOT_FW_VERSION ".13" // Select options based on printer model @@ -502,6 +502,13 @@ #define LULZBOT_FAN_MIN_PWM 70 #define LULZBOT_HOST_KEEPALIVE_FEATURE_DISABLED +// For the Pelonis C4010L24BPLB1b-7 fan, we need a relative low +// PWM frequency of about 122Hz PWM for the fan to be speed +// controlled, this can only be accomplished via software PWM +// with a scaling factor of four. +#define LULZBOT_FAN_SOFT_PWM +#define LULZBOT_SOFT_PWM_SCALE 4 + #if defined(LULZBOT_USE_LCD_DISPLAY) #define LULZBOT_REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER #define LULZBOT_SDSUPPORT diff --git a/Marlin/Configuration.h b/Marlin/Configuration.h index 62df3ddf0..21f1681d9 100644 --- a/Marlin/Configuration.h +++ b/Marlin/Configuration.h @@ -1540,18 +1540,18 @@ // @section extras // Increase the FAN PWM frequency. Removes the PWM noise but increases heating in the FET/Arduino -#define FAST_PWM_FAN LULZBOT_FAST_PWM_FAN +//#define FAST_PWM_FAN // Use software PWM to drive the fan, as for the heaters. This uses a very low frequency // which is not as annoying as with the hardware PWM. On the other hand, if this frequency // is too low, you should also increment SOFT_PWM_SCALE. -//#define FAN_SOFT_PWM +#define FAN_SOFT_PWM LULZBOT_FAN_SOFT_PWM // Incrementing this by 1 will double the software PWM frequency, // affecting heaters, and the fan if FAN_SOFT_PWM is enabled. // However, control resolution will be halved for each increment; // at zero value, there are 128 effective control positions. -#define SOFT_PWM_SCALE 0 +#define SOFT_PWM_SCALE LULZBOT_SOFT_PWM_SCALE // If SOFT_PWM_SCALE is set to a value higher than 0, dithering can // be used to mitigate the associated resolution loss. If enabled,