I use the GRBL for unipolar stepper motors GRBL-28byj-48-Servo library, which uses your library (grbl-servo).
I replaced the servo motor with a laser diode, 5mW, this one.
But when the diode lights on (with M03 S255, or any number) it does not come off with M03 S1.
Or M05. It only dims.
With M03 S255 is bright and with M03 S1 it 's a little less bright. (not great difference but noticable)
So I have to modify the code to switch the diode on and off.
How can I do this?
As a switch I use a 2N2222A transistor.
I use the GRBL for unipolar stepper motors GRBL-28byj-48-Servo library, which uses your library (grbl-servo).
I replaced the servo motor with a laser diode, 5mW, this one.
But when the diode lights on (with M03 S255, or any number) it does not come off with M03 S1.
Or M05. It only dims.
With M03 S255 is bright and with M03 S1 it 's a little less bright. (not great difference but noticable)
So I have to modify the code to switch the diode on and off.
How can I do this?
As a switch I use a 2N2222A transistor.