"Setting Up GRBL Firmware on Arduino Uno for CNC CO₂ Laser Machine Control"

I am building cnc laser machine and i have Arduino Uno R3 (ATmega328P) ,CNC Shield v3.51 ,Driver Tb6600, nema 23 stepper motor 3.6n.m,laser co2 100watt,power supply 12volt 30A and laser power supply. by use the link GitHub - gnea/grbl: An open source, embedded, high performance g-code-parser and CNC milling controller written in optimized C that will run on a straight Arduino (directs to the official GitHub repository for Grbl, an open-source, high-performance G-code parser and CNC milling controller) the link to install library in arduino IDE, is it enough to control the machine ? Notes: 1- I am required to use Arduino in the project. 2-i have this code in text file is it useful or not?
code.txt (49.4 KB)

So as not to lose the context:

As I mentioned earlier, an Arduino Uno will be grossly underqualified for the speeds required for a large CO₂ machine.

The CNC Shield is intended for plug-in PCB stepper modules, not the TB6600 drivers. It lacks the screw terminals generally used for reliable connection in large machines and those pin-header connectors will cause severe intermittent problems on large machines.

Running NEMA 23 size stepper motors from a 12 V supply will severely limit their maximum speed, because the drivers won’t have enough headroom for effective current feedback. Typical large lasers run from 24 or 36 VDC supplies.

That is the bare config.h file to configure parts of the GRBL source code; there are many other header files in addition to the source code files in the GRBL repository. As I stated earlier, you must adapt the default configuration values to match whatever your machine turns out to be.

You have a long way to go before LightBurn becomes relevant to your project and, because this is a forum for LightBurn software, you will get better and more specific assistance from a site devoted to builders starting with a class assignment and a parts list.

2 Likes

GitHub - gnea/grbl: An open source, embedded, high performance g-code-parser and CNC milling controller written in optimized C that will run on a straight Arduino This first step or not

Follow the installation instructions in that repository to make the Arduino microcontroller run GRBL.

You must then set the configuration options to match the machine hardware.

A large CO₂ machine will require home switches, so be sure to configure them correctly.

If you must use a 12 VDC supply, the machine may not be capable of movement at the speeds required for a 100 W CO₂ tube. You must set the stepper driver parameters to match the capabilities of your hardware, rather than the typical speeds of CO₂ machines.

2 Likes

I’m use 2 motor in y axis What should I take into consideration during?

Using a GRBL fork on more capable hardware to handle dual-motor homing, because stock GRBL on an Arduino Uno cannot prevent gantry racking.

These parts of the LinuxCNC doc describe the problem:

Cloning the A-axis to the Y-axis is not a good solution?

Stock GRBL on an Arduino Uno controls only three independent axes.

At this point, it’s obvious you want me to do your classroom assignment for you.

Perhaps an AI can guide you through your project.

Good luck …