Nice LED mod! I do not feel the need to do it, I have my Ikea goose neck light on the side if I need to... one day maybe.
Anyway today I investigated my new cooling fan, the Sunon MF50152VX-1L02C-A99
According to the datasheet this fan is designed to operate in this voltage range 20.4V - 26.4V.
So I did a couple of measurement
(the fan is lighten up to make the rpm reading easier)
by controlling the fan with
M106 P0 S[pwm]
and indeed:
so I edited the Marlin like this:
/**
* PWM Fan Scaling
*
* Define the min/max speeds for PWM fans (as set with M106).
*
* With these options the M106 0-255 value range is scaled to a subset
* to ensure that the fan has enough power to spin, or to run lower
* current fans with higher current. (e.g., 5V/12V fans with 12V/24V)
* Value 0 always turns off the fan.
*
* Define one or both of these to override the default 0-255 range.
*/
#define FAN_MIN_PWM 216 // Zuk, new fan starting point
#define FAN_MAX_PWM 251 // Zuk, new fan max point
and then in the Slicer SW I changed the Min% from 35% to 1% to have the max range available:
this last step is not important, but meh it costs nothing.
Of course do not forget FAN_KICKSTART_TIME:
// When first starting the main fan, run it at full speed for the
// given number of milliseconds. This gets the fan spinning reliably
// before setting a PWM value. (Does not work with software PWM for fan on Sanguinololu)
#define FAN_KICKSTART_TIME 100 // Zuk new Sunon Blower
So far the theory part I let you know if everythink works as expected.
Yes it could be the PWM frequency it not the right one for that fan, but meh... I do not want to make my like more complicated with FAST_PWM_FAN in Marlin ... BTW do we really need 255 different speeds for the cooling fan?