So I’m having an issue where my laser is turning on during bootup and I have to toggle the laser on and then toggle it off to turn it off. So I know active state as low is correct, as I am able to toggle the laser on and off just fine. It’s just that the laser comes on right after start up.
I currently have power and ground going to my power supply and the ttl going to my fan 2 port.
I commented out my fan 2 pin (PB5) in the pins_BTT_SKR_V2_0_common.h so I can use that pin for the PWM.
I didn’t comment out the pin for the ENA which is Heater 0 (PB3)
Any suggestions on what to do? Does the ENABLE pin need to see any voltage?
See below for laser details and config_adv.h code.
I have this laser : PWM/TTL 450nm 7W Focusable Blue Laser Module/Blue Laser Engraver | eBay
“PWM/TTL 450nm 7W Focusable Blue Laser Module/Blue Laser Engraver”
Here’s my config_adv for the laser:
#define LASER_FEATURE
#if EITHER(SPINDLE_FEATURE, LASER_FEATURE)
#define SPINDLE_LASER_ACTIVE_STATE LOW // Set to “HIGH” if SPINDLE_LASER_ENA_PIN is active HIGH
#define SPINDLE_LASER_PWM_PIN PB5 //FAN 2 (Rightmost Pin) on SKR 2. Refer to SKR USER Manual for Picture
#define SPINDLE_LASER_ENA_PIN PB3 //PS-ON (left most pin).
#define SPINDLE_LASER_USE_PWM // Enable if your controller supports setting the speed/power
#if ENABLED(SPINDLE_LASER_USE_PWM)
#define SPINDLE_LASER_PWM_INVERT true // Set to "true" if the speed/power goes up when you want it to go slower
#define SPINDLE_LASER_FREQUENCY 2500 // (Hz) Spindle/laser frequency (only on supported HALs: AVR and LPC)
#define LASER_POWER_INLINE
#endif