Is there a trick to PWM?

Post Reply
Posts: 1
Joined: Thu May 28, 2020 6:12 pm

Is there a trick to PWM?

Post by KevinPartner » Thu May 28, 2020 6:19 pm

tl;dr I can't get M3 S1000 to work in laser mode

I've been slowly building my CNC, making sure each stage works before I move onto the next, but I'm currently stuck trying to get my laser to work. Testing with a multimeter, running M3 S1000 and measuring V across Spindle Enable and Gnd reads 0V. I have tried a manner of combinations of M3,M4, and M5 as well as various S values. I've been able to get the laser to power on (see below), however M3 S(Anything) does nothing when sent by the UGS or by Arduino Serial.

I'm sure the laser is wired correctly because when I connect the PWM input for the laser to the Coolant plug and try M8/M9 the laser turns on with full power.

Pertinent Settings:
$30 = 255 (also tried 1000)
$32 = 1

Thanks for the help and for reading!

Bertus Kruger
Site Admin
Posts: 1779
Joined: Wed Feb 03, 2016 10:26 pm
Location: Wellington , New Zealand

Re: Is there a trick to PWM?

Post by Bertus Kruger » Wed Jun 03, 2020 7:23 pm

This is a short guide on PWM with GRBL... ... d-spindle/

What kind of laser driver are you using? is it using PWM 0-5V?

Posts: 3
Joined: Fri Mar 08, 2019 4:32 pm

Re: Is there a trick to PWM?

Post by anewsome » Fri Oct 16, 2020 6:18 pm

Once you enable "laser mode" with $32=1, the laser will refuse to come on if the there is no movement.

Once you enable $32=1 laser mode, your laser needs to be moving in order to fire. If you want to turn on the laser with no movement, do $32=0 first.

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest