Skip to content

Laser diode instead of servo motor #20

@panosss

Description

@panosss

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions