[BUG] LASER_FEATURE inhibits CONTROLLERFAN_SPEED_ACTIVE setting
#22,291 opened on Jul 3, 2021
Description
Did you test the latest bugfix-2.0.x code?
Yes, and the problem still exists.
Bug Description
I was using CONTROLLERFAN_SPEED_ACTIVE at 190 and worked fine until I activate LASER FEATURE. I noticed that controller fan was not working as it should, and I realized that CONTROLLERFAN_SPEED_ACTIVE needs to be at 255 to work . If I use any other value controller fan stops turning. I am using different pins to control controller fan and laser. To control the laser I am using the servo pin D6 (PWM 5V) on Trigorilla board.
Readings
- LASER FEATURE disabled
PWM output 500Hz
M710 S50 - PWM duty cycle of 79% - approx 3,44V on fan terminals (not enough torque to start) M710 S150 - PWM duty cycle of 41% - approx 8,3V on fan terminals (it turns with reduced speed) M710 S190 - PWM duty cycle of 25% - approx 10V on fan terminals (it turns with reduced speed) M710 S220 - PWM duty cycle of 13% - approx 11,4V on fan terminals (it turns with reduced speed) M710 S254 - PWM duty cycle of 0% - approx 12,87V on fan terminals (it turns full power) M710 S255 - PWM duty cycle of 0% - approx 12,9V on fan terminals (it turns full power)
- LASER FEATURE active
PWM output 2500Hz
M710 S50 - PWM duty cycle of 97% - approx 1,06V on fan terminals (not enough torque to start) M710 S150 - PWM duty cycle of 91,5% - approx 1,32V on fan terminals (not enough torque to start) M710 S190 - PWM duty cycle of 90% - approx 1,42V on fan terminals (not enough torque to start) M710 S220 - PWM duty cycle of 88% - approx 1,49V on fan terminals (not enough torque to start) M710 S254 - PWM duty cycle of 86% - approx 1,57V on fan terminals (not enough torque to start) M710 S255 - PWM duty cycle of 0% - approx 12,9V on fan terminals (it turns full power)
I realized that enabling LASER FEATURE PWM frequency changes. Maybe a scale error?
Bug Timeline
Issue was closed before being fixed on December 2020
Expected behavior
With or without LASER FEATURE function activated, controller fan should turn to the specified CONTROLLERFAN_SPEED_ACTIVE value.
Actual behavior
When activating LASER FEATURE controller fan only works if the CONTROLLERFAN_SPEED_ACTIVE value is 255.
Steps to Reproduce
- With LASER FEATURE disabled, change CONTROLLERFAN_SPEED_ACTIVE to 190.
- Test controller fan by moving any axis. It should work well.
- Now, activate LASER FEATURE and upload the changes to the printer.
- Test controller fan again. Fan doesn't turn.
- Change CONTROLLERFAN_SPEED_ACTIVE to 255 value. The controller fan starts turning.
Version of Marlin Firmware
Tested on FW 2.0.6.1, 2.0.7.1, 2.0.9, 2.0.9.1
Printer model
Anycubic I3 Mega S
Electronics
Stock motherboard
Add-ons
No response
Your Slicer
Cura
Host Software
No response
Additional information & file uploads
No response