New GRBL Installation

Hello, I recently purchased a Chinese DIY laser and flashed ATMEGA328P with GRBL. When I run a job in Lightburn there is XY movement but the laser does not fire up. Also when I open Lightburn the laser flickers a few times. Can anyone please help me to fire up my laser. Thank you.

We would need more details to be able to help you.

I would suggest reading this: https://github.com/LightBurnSoftware/Documentation/blob/master/CommonGrblSetups.md

and telling us more information about what kind of machine you have, what version of GRBL it has, what the result of $$ in console is, and how you have set up the device in LightBurn.

Lightburn automatically detected the device. I have flashed Grbl 1.1f using xloader hex file.

In Lightburn there is only one device- GRBL

The board is Arduino Nano and has ATMEGA328P chipset.

M3 does nothing. M4 also does nothing and a red light pops up on the board.

The $$ output:

$$

$0=10

$1=25

$2=0

$3=6

$4=0

$5=0

$6=0

$10=1

$11=0.010

$12=0.002

$13=0

$20=0

$21=0

$22=0

$23=0

$24=25.000

$25=500.000

$26=250

$27=1.000

$30=255

$31=0

$32=1

$100=53.333

$101=53.333

$102=53.333

$110=4000.000

$111=4000.000

$112=500.000

$120=10.000

$121=10.000

$122=10.000

$130=170.000

$131=170.000

$132=170.000

ok

Uploaded Firmware 1.1e Master Release and manually created a GRBL-M3 Device. Still no luck. The laser does not power up.

Any help would be very nice. Thank you.

“The laser” is not terribly descriptive. Can you say what laser you have, and how it’s wired to the controller? (Which pins, for a start?)

You said it’s a Chinese DIY engraver - did it come with its own software and firmware, or was it always GRBL? Some older versions of GRBL used different pinouts by default, so the fact that it’s been flashed to a newer version might be the problem - if the original version used different pins, and you didn’t configure the newer version to match.

My bad its a 2W laser and its blue/violet. I think I’ll look up more info on configuring PINs. The software which came with it was Lite Fire Laser and it had a tab for GRBL.

So I have been on my system for a few hours now. I cant find latest info on how to swap pins d11 and d12 in cpu_map file.

#ifdef VARIABLE_SPINDLE // Z Limit pin and spindle enabled swapped to access hardware PWM on Pin 11.
#define Z_LIMIT_BIT 4 // Uno Digital Pin 12
#else
#define Z_LIMIT_BIT 3 // Uno Digital Pin 11
#endif

Swapped 4 and 3 in the above lines. No luck.

  #ifdef VARIABLE_SPINDLE
    #ifdef USE_SPINDLE_DIR_AS_ENABLE_PIN
      // If enabled, spindle direction pin now used as spindle enable, while PWM remains on D11.
      #define SPINDLE_ENABLE_BIT    5  // Uno Digital Pin 13 (NOTE: D13 can't be pulled-high input due to LED.)
    #else
      #define SPINDLE_ENABLE_BIT    3  // Uno Digital Pin 11
    #endif
  #else
    #define SPINDLE_ENABLE_BIT    4  // Uno Digital Pin 12
  #endif

Swapped 4 and 3 in the above lines. No luck.

On GRBL github the info is dated. There is no config.h in newer versions.

To do so, just edit the config.h file in the Arduino library path for Grbl, comment out the #define VARIABLE_SPINDLE line, and recompile and flash. If you want laser and variable spindle support on these cheap clone boards, there are several solutions on how to alter the boards, like soldering jumper wires, but this isn’t the place for questions about this. Simply search the web. There are plenty of solutions and prior issues threads that have already answered this question in great depth and detail.

Anyone help please?

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.