No config files

What are you using for your control electronics (Arduino Mega with gShield) or something else?

ANSWER: ATMEGA2560 with TB6560 drivers for NEMA 23 motors

Did you upload a pre-compiled version of 1.1f or did you compile from source to get the version you are using?
ANSWER: i tried both but precompiled i mean grbl-Mega_v1.1f.20170802hex file makes the laser turn on off but not full power. See the attached pic previously. i also tried windows vesrion and compiled and uploaded from gbrl/gnea which does not male the laser work at all.

The delay happened because the system did not let me post my 21st reply being my first day and new user before 24 hours. Please see my answers and help

Ok, put the pre-compiled version grbl-Mega_v1,1f.20170802.hex back into the Atmega2560 and we will work with that one.

Once you have that loaded in post the $$ results here.

Here you go:

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

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

Change $1 to 255 ($1=255)

Are you using NO or NC switches?

Change $10 to 1 ($10=1)

Change $25 to 750 ($25=750.000)

Change $27 to 3 ($27=3)

Try a homing sequence and report results.

OK give me 10-15 minutes as i have to go to my garage and there is no internet

ok

$1=255
ok
$10=1
ok
$25=750
ok
$27=3
ok
$$
$0 = 10 (Step pulse time, microseconds)
$1 = 255 (Step idle delay, milliseconds)
$2 = 0 (Step pulse invert, mask)
$3 = 1 (Step direction invert, mask)
$4 = 0 (Invert step enable pin, boolean)
$5 = 1 (Invert limit pins, boolean)
$6 = 0 (Invert probe pin, boolean)
$10 = 1 (Status report options, mask)
$11 = 0.010 (Junction deviation, millimeters)
$12 = 0.002 (Arc tolerance, millimeters)
$13 = 0 (Report in inches, boolean)
$20 = 1 (Soft limits enable, boolean)
$21 = 0 (Hard limits enable, boolean)
$22 = 1 (Homing cycle enable, boolean)
$23 = 3 (Homing direction invert, mask)
$24 = 250.000 (Homing locate feed rate, mm/min)
$25 = 750.000 (Homing search seek rate, mm/min)
$26 = 250 (Homing switch debounce delay, milliseconds)
$27 = 3.000 (Homing switch pull-off distance, millimeters)
$30 = 255 (Maximum spindle speed, RPM)
$31 = 0 (Minimum spindle speed, RPM)
$32 = 1 (Laser-mode enable, boolean)
$100 = 380.000 (X-axis travel resolution, step/mm)
$101 = 380.000 (Y-axis travel resolution, step/mm)
$102 = 380.000 (Z-axis travel resolution, step/mm)
$110 = 500.000 (X-axis maximum rate, mm/min)
$111 = 500.000 (Y-axis maximum rate, mm/min)
$112 = 500.000 (Z-axis maximum rate, mm/min)
$120 = 10.000 (X-axis acceleration, mm/sec^2)
$121 = 10.000 (Y-axis acceleration, mm/sec^2)
$122 = 10.000 (Z-axis acceleration, mm/sec^2)
$130 = 225.000 (X-axis maximum travel, millimeters)
$131 = 280.000 (Y-axis maximum travel, millimeters)
$132 = 110.000 (Z-axis maximum travel, millimeters)
ok

Did homing work correctly?

Yes did

Ok, so now you are at the point where you would like to work on getting variable laser power working?

I did try different level but the result is same always that is the problem i have and with hex file i don’t have the config file to change the setting. With compile and upload the gbrl windo exe laser does not work at all
M4 S1125; Laser On @ Power Level: 125

M4 S255; Laser On @ Power Level: 255

M4 S500; Laser On @ Power Level: 500

M4 S1000; Laser On @ Power Level: 1000

@LarryM
I tried to change the spindle speed to 1000 by changing $30=1000

All of your example commands have the power set to full on.

Since your RPM range is 0 to 255 any setting above 254 will be asking for full power. Don’t use M4 for these tests, use M3

M3 S64 would be 25 percent power.
M3 S128 would be 50 percent power.
M3 S192 would be 75 percent power.
M3 S255 would be 100 percent power.

S0 would be laser off
M5 would be laser off

If you change things other than the requests I make it makes it much more difficult to help you out.

OK give me 15 minutes will post results

Did not work at all no burning. tRIED HALF POWER AS WELL AS FULL PWOER
half power:
G21
G90
M3 S0; Laser OFF
G0 X54.527 Y25.675
M3 S128; Laser On @ Power Level: 128
G1 X56.972 Y26.161 F800.0
G1 X59.357 Y26.884 F800.0
====FULL PWOER=======
G21
G90
M3 S0; Laser OFF
G0 X54.527 Y25.675
M3 S255; Laser On @ Power Level: 255
G1 X56.972 Y26.161 F800.0
G1 X59.357 Y26.884 F800.0

Which laser do you have? Can you posts some pictures of your wiring?

WILL post pictures of wiring in 15 minutes.

2.5W 445nm TTL Blue Laser Module Adjustable-focus, 100-240V Laser Head Engraving Modulewith Heatsink for DIY Laser Engraver Machine

SORRY STILL NOT DONE ON FINISHING WIRING THE LASER.LASER WIRING IS MESS HOPE IT MAKES SENSE.

YELLOW IS SIGNAL FROM D7
BLACK COMING FROM MAIN POWER GOES TO COMMON GROUND ON BREAD BOARD
RED IS POWER COMING FROM MAINPOWER

image
image


Is that a switch? What does it do?