100% power in LightBurn produces 10% duty cycle from the controller's PWM pins. What's going on?

I’m watching these youtube videos explaining PWM control of lasers and it seems pretty intuitive. 5V peak-to-peak variable duty cycle, with 100% duty cycle meaning “full power” and so on. But when I send full power from LightBurn to my controller, the most I’m seeing is around 10% duty cycle at 1000 Hz (100 uS @ 5v, 900 @ uS 0v; period = 1000 us, 1 ms). When I send 50% power, I see 5% duty cycle at 1000 Hz. I see the same thing when I save gcodes to file and send them from an offline controller.

Is this normal operation? My laser isn’t producing any light. I’m using https://www.amazon.com/Doesbot-Control-Support-Spindle-Engraving/dp/B0C625ZCN7?pd_rd_w=b5eqI&content-id=amzn1.sym.80b2efcb-1985-4e3a-b8e5-050c8b58b7cf&pf_rd_p=80b2efcb-1985-4e3a-b8e5-050c8b58b7cf&pf_rd_r=0T7B48661DWZ8V2W4FTY&pd_rd_wg=PYOO3&pd_rd_r=cf2a9bb7-01e3-4b69-b516-1de0a86ff6b9&pd_rd_i=B0C625ZCN7&psc=1&ref_=pd_bap_d_grid_rp_0_1_ec_pd_nav_hcs_rp_2_t . I thought maybe the controller was limiting the duty cycle because I’m using an 80watt laser on a 60watt rated controller, but it does it even when the laser is disconnected from the board. I upgraded the firmware from GRBL 1.1f to GRBL 1.1h, and nothing changed (Though homing works properly now).

What machine is this?
What controller is in the machine?

Post pictures of:

  • LPS showing connections
  • Controller showing connections
  • Control Panel

How are you measuring this?


These seem to be contradicting…


We should start helping you by understanding what the machine is not doing.
So aside from your suspicions about the PWM what is the machine not doing?

The laser is a comgrow Z1. The jumper was changed from “Auto” to “ON”, and the 12V laser power output on the 4P laser connectors changed from a pulse wave with a peak of 12V and frequency of 1000 Hz, to a constant 12v signal. The PWM did not change.

I don’t understand how to use the 3P connector, and it seems like that might be what my laser uses.





It’s helpful if you answer directly as many questions as you can.

Keep in mind that we don’t know your machine or what you are trying to do/fix as well as you do.
So bringing us up to speed on the details of the machine is paramount to us helping you.


So this is a diode laser.
I can only guess that you changed out the stock controller and now you are trying to get it working again?

Was it working before you made these changes?
Do have a wiring diagram for your current setup?


Did you change out the stock controller?
What controller is that?
Do you have any technical information on that controller? Schematic?

No idea what this jumper is and where.

No idea what 4P connectors you are referring to.

What PWM are we referring to?

I don’t either but with more information we probably can figure it out.

In the dialog in the first image lightburn has Laser Power Max (S) set to 1,000
In the second You can see that GRBL has Laser Max ($30, aka Spindle max RPM) set to 10,000

I think this is where your ‘unable to get more than 10% of max power’ issue lies… :wink:

Either lower $30 on your controller to 1,000, or change the max power value used in lightburn to 10,000.

EDIT: IT IS $30 and not $32 as I originally said here…

Apologies @jkwilborn and @Astar_Wstar for leading you astray…

Looks like you’re right. Changed it as the s-max power message bubble instructed so that $32 in the machine settings would match, and PWM was showing full 4.94v 100% duty cycle at 100% power.

Now the laser still doesn’t turn on, but I think it might have been damaged when the first controller went down, or I may have damaged it trying to get it to work with this controller (The way the laser power and board power connectors would seem to fit together, applies reverse 12V to the laser power input wires).

Sorry, I have no idea what this means… :face_with_spiral_eyes:

I will assume a hover message?

Actually it says $30…


$30 (max spindle speed) and S-value Max have to be equal. This was your original power issue as @easytarget stated, however he mentions the wrong variable… probably a typo…

$32 sets the control board to laser mode… This turns the laser off between moves.


Generally we don’t turn the spindle off, just lift it up and move it… an operation that really can’t be done with lasers.

Might want to read over these documents for a grbl machine setup.

:smile_cat:

1 Like

Mea Culpa… I screwed this up in my original post… Whenever I think of LaserGRBL I get $32 brain fever.

A safe assumption :+1:

There’s such a great naming relationship an operation to a number… :face_with_spiral_eyes:

I can’t really keep track of them myself …

:smile_cat:

1 Like