No config files

Hi where to find the config.h and cpu_map.h files if you flash mega2560 with hex file? i can’t find these two file in Aurdino examples or libraries. Agian please note i did flash it with hex file using xloader.please help thanks

You’ll want to upload firmware through Arduino if you want to modify the grbl files.

or

Neil thanks for quick response. I tried that way CNC router works fine but the laser stops working I did set $32=1. thanks again

Laser worked when you flashed the hex file?
Which hex file did you use?

gbrl-Mega-v1.1f.20170802.hex downloaded from gbrl/gnea

Did your laser work with that hex?

Sorry for uncomplete answer.
Q1;Laser worked when you flashed the hex file?
answer:Yes laser did work but with low power not the same as if running straight i mean not thru board. I tried M4 S500; Laser On @ Power Level: 500 also M4 S255; Laser On @ Power Level: 255.
Q2: Which hex file did you use?
answer: gbrl-Mega-v1.1f.20170802.hex downloade from gbrl/gnea
thanks

I’ve never used laser mode, so I can’t help much there.
Did you read here?
Maybe @LarryM or others would be of more help.

yes i did. for your reference or anyone else coming in for helpmy file has begin and end like below.
How do i invite LarryM for help?
$32=1 ;[ENABLE] GRBL Laser Mode
G4 P0.01 ;Dwell, wait for sync
G20
G90
M4 S1; Laser OFF
G0 X0.91368 Y1.88577
M4 S255; Laser On @ Power Level: 255
M4 S1; Laser OFF
G0 X0.00000 Y0.00000
G4 P0.1
$32=0 ;[DISABLE] GRBL Laser Mode
G4 P0.01 ;Dwell, wait for sync
G4 P0.01 ;Dwell, wait for sync

Put an @ in front of his name like I did above…he’ll be notified he was mentioned.

What are you using as a UI to send your gcode?

Unniversal Gcode Sender UGS

@LarryM

So now Larry will be notified?

I have uploaded a pic for how dark the circle looks when run straight (not thru board) and how light it looks when run thru board

thanks for trying

A couple of times…yup.

Are you sure 255 is the max?

I think so.
But i tried different setting because someone was talking that some laser take a setting of 1000. so i tested with setting below but same results. I think i need to increase the pwm in the settings. Since i don’t see the config files i cant see the settings.

M4 S255; Laser On @ Power Level: 255
M4 S500; Laser On @ Power Level: 500
M4 S1000; Laser On @ Power Level: 1000

@LarryM

Larry please help when you get a chance. Thnx

If I’m reading correctly you are using the Atmega2560 flavor of grbl. This version only has limited support and only for the short term.

It’s best to begin with basic health checks and then move higher in the work flow chain. Post your $$ output from grbl here so we can see how your machine is configured.

Thanks for coming in for help at my request
Here u 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

From this output I would think that you are not running an
X-carve, but if you are it is highly modified. If your unit is a standard Inventables product then these values are way off.

What version of grbl do you have loaded into your machine?

v1.1

I just built this machine and trying to configure it. Please supply me the recommended settings.
I am using pin7 to control laser using m4 command.
Where do i go to turn variable_spindle on?
what other setting you recommend to change ?
Thnx

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

Without knowing a lot about how you put the machine together in terms of electrical components, mechanical components, and software you are trying to use, it’s anybody’s guess as to what the settings should be.

That’s why Inventables is making money in the open software/hardware market as they have already done the calculations and footwork to put together a component set that works together nicely.

Did you upload a pre-compiled version of 1.1f or did you compile from source to get the version you are using?