Laser turning on automatically with x-controller

Hey there! I recently installed a laser from Opt Lasers to my x-carve. The first time running, it worked beautifully. The next time around, when I unplugged everything to put all the cables inside the belts, it stopped working properly. Now, everytime the x-controller turns on, it send the PWM terminal 4.4v, and the 0-10V to 8.8v. I don’t understand what’s going on. Here’s the g-code the console is generating at start-up:

**** Connected to COM3 @ 115200 baud ****
Grbl 1.1g [‘$’ for help]

$$
$0 = 10 (Step pulse time, microseconds)
$1 = 255 (Step idle delay, milliseconds)
$2 = 0 (Step pulse invert, mask)
$3 = 3 (Step direction invert, mask)
$4 = 0 (Invert step enable pin, boolean)
$5 = 0 (Invert limit pins, boolean)
$6 = 0 (Invert probe pin, boolean)
$10 = 1 (Status report options, mask)
$11 = 0.020 (Junction deviation, millimeters)
$12 = 0.002 (Arc tolerance, millimeters)
$13 = 0 (Report in inches, boolean)
$20 = 0 (Soft limits enable, boolean)
$21 = 0 (Hard limits enable, boolean)
$22 = 0 (Homing cycle enable, boolean)
$23 = 3 (Homing direction invert, mask)
$24 = 25.000 (Homing locate feed rate, mm/min)
$25 = 750.000 (Homing search seek rate, mm/min)
$26 = 250 (Homing switch debounce delay, milliseconds)
$27 = 1.000 (Homing switch pull-off distance, millimeters)
$30 = 12000 (Maximum spindle speed, RPM)
$31 = 0 (Minimum spindle speed, RPM)
$32 = 0 (Laser-mode enable, boolean)
$100 = 40.000 (X-axis travel resolution, step/mm)
$101 = 40.000 (Y-axis travel resolution, step/mm)
$102 = 188.947 (Z-axis travel resolution, step/mm)
$110 = 8000.000 (X-axis maximum rate, mm/min)
$111 = 8000.000 (Y-axis maximum rate, mm/min)
$112 = 500.000 (Z-axis maximum rate, mm/min)
$120 = 500.000 (X-axis acceleration, mm/sec^2)
$121 = 500.000 (Y-axis acceleration, mm/sec^2)
$122 = 50.000 (Z-axis acceleration, mm/sec^2)
$130 = 740.000 (X-axis maximum travel, millimeters)
$131 = 790.000 (Y-axis maximum travel, millimeters)
$132 = 100.000 (Z-axis maximum travel, millimeters)
ok
$G
[GC:G0 G54 G17 G21 G90 G94 M5 M9 T0 F0 S0]
ok

Can someone please help me? Thank you all.

2 Likes

Did you ever figure out what the problem was? I am close to pulling the trigger on the OPT as well and just curious how you solved the problem.

1 Like

Yeah. Check that your $32=1 is correct which is the function that tells the machine when to tie your laser on and off. You can test that your laser is working properly if you connect the logic positive cable to the positive current from your power supply. If the laser turns on and the fan as well, your good. Bad wiring. I accidentally fried something in the MCU which made it imposible for me to correct it from inside, so I built another controller with tb6600 drivers, an arduino and the same power supply. I’ve seen people that had that same problem and added a relay to an arduino controller but with the x-controller I’m not sure. Hope it helps.

2 Likes