So finally on my holiday break and looking to try and connect my 40w Diode laser to my machine
want to get some guidance before i flash my 7i96s and cause my whole CNC to stop working.
would like to be able to use the spindle control, whether that is scalled or as a percentage to adjust the 0-5v for the intensity of the laser
so i understand that i have to flash the board with 7i96s_2pwmd.zip, which will add PWMGen 1 to STEP4+/STEP4-
Is how i have the diagram, would this be the correct way i need to wire to the board?
also is this the correct coding i need to add into my hal/ini file?
(HAL)
# Enable PWM generator on channel 0
etp hm2_7i96s.0.pwmgen.00.enable true
# Set the PWM frequency (adjust based on laser specs)
setp hm2_7i96s.0.pwmgen.00.scale 5000 # Example: Scale to 5000 RPM for 0-5V lasers
# Link PWM output to motion spindle speed command
net laser-power motion.spindle-speed-out => hm2_7i96s.0.pwmgen.00.value
# Link PWM enable to motion spindle enable
net laser-enable motion.spindle-on => hm2_7i96s.0.pwmgen.00.enable
# Link motion spindle-on signal to a GPIO pin
net laser-on motion.spindle-on => hm2_7i96s.0.gpio.000.out
(INI)
[SPINDLE]
SPINDLE_TYPE = PWM
MAX_SPINDLE_SPEED = 5000
# Match the scale in HAL MIN_SPINDLE_SPEED = 0