GreatLight CNC Machining Factory logo
CNC Machining
Rapid Prototyping
Materials
Industries
News
About GL

Get Instant Quote

Grbl control basics

How to Operate a Grbl CNC Machine

This guide walks through how to operate a Grbl CNC machine end to end: flashing and configuring the firmware, homing, setting work zero, streaming G-code, and reading the controller's feedback. It is written for engineers and buyers who need to judge whether an open-source controller suits a given part, and where it stops being the right tool.

3-axis motion115200 baudG-code sender±0.005 mm on production mills
how to operate grbl cnc machine
Quick answer

Key takeaways

Grbl is motion onlyIt turns G-code into step and direction pulses for 3 axes. No tool table, no spindle feedback.
Baud rate firstMost boards connect at 115200 baud. A wrong rate gives a silent port or garbage replies.
Homing before zeroRun $H, then set work zero with G10 or G92. Skipping homing loses position on the next power cycle.
Sender mattersA sender streams lines and waits for ok. Typing by hand from a terminal will overrun the 128-byte buffer.
Know the ceilingNo thermal compensation and no tool changer. Tight-tolerance metal parts belong on a production mill.
Before you cut

How to Operate a Grbl CNC Machine Safely: What the Firmware Actually Controls

Grbl is free, open-source firmware that runs on an Arduino-class board and translates G-code into step and direction pulses. It handles three axes of simultaneous motion on most builds, with some forks supporting a fourth. That is the whole job. It does not measure the tool, does not read spindle load, and does not know your stock is 0.3 mm thicker than the drawing.

The practical consequence: everything above the pulse level is your responsibility. Tool length, work offset, feed rate, and depth of cut come from your CAM file and from the numbers you type before the first move. When someone asks how to operate a Grbl CNC machine, the honest answer starts with 'you own the setup data, not the controller.'

Feed rates on these machines are conservative because the frames are light. A desktop router with a 1.5 kW spindle cutting 6061 aluminium usually runs 300–600 mm/min at 0.2–0.3 mm depth of cut with a 6 mm two-flute carbide end mill. Push a 3 mm radial engagement at 900 mm/min and you will hear chatter before you see it in the part.

Wood, MDF, and plastics tolerate much more. For 18 mm MDF with a 6 mm compression bit, 1,800–2,400 mm/min at full depth is normal if the spindle holds 18,000 rpm and the gantry is rigid. The limits are mechanical, not electrical.

Before any of this, verify the machine by hand. Power off, motors disabled, and push each axis through its full travel. Binding, a tight leadscrew, or a loose coupler will show up as lost steps later, and lost steps look exactly like a bad CAM file.

  • 1
    3-axis motionSimultaneous X, Y, Z on standard builds
  • 2
    128-byte bufferWhy hand-typed commands overrun
  • 3
    No feedback loopOpen-loop steppers cannot report a missed step
Setup

Firmware Settings and the Sender Connection

Flash the firmware that matches your board, then open a sender and connect on the correct COM port. Default baud is 115200 for nearly every Grbl board made in the last decade; older clones sometimes ship at 9600 or 57600. If the port opens but nothing returns, change the rate before you change the cable.

Send $$ to dump the full settings list. The values that matter most are $100, $101, and $102, the steps per millimeter for each axis. These come from the lead screw pitch, the microstep setting on the driver, and the pulley ratio. Get one wrong and every dimension scales by the same factor, which is easy to spot on a test cut and easy to misdiagnose as a CAM error.

Next set $110, $111, and $112, the maximum rate per axis, and $120, $121, $122, the acceleration. Acceleration is where light machines fail. A value that is too high stalls the motor on direction changes; too low and the tool dwells in the cut and burns the edge. Start low and raise it in 50 mm/s² increments while watching for lost position.

$130, $131, and $132 define the travel limits. Set them from a measured tape, not from the spec sheet. A soft limit that is 5 mm optimistic will let the gantry crash into the frame at the end of a long program, and that crash costs more than the tape measure.

Finally, confirm $20 and $21, the soft limit and hard limit switches, and $22, homing enable. On a machine with switches, $22=1 and $21=1. On a machine without them, leave both at 0 and accept that homing is manual.

Running a job

Homing, Work Zero, and the First Cut

Homing establishes machine coordinates. Send $H and the machine seeks each switch in turn, then backs off and sets machine zero. Without a homing cycle, the controller has no absolute reference, so a power blip mid-job means starting the whole setup again. This is the single step most new operators skip and most experienced operators never do.

Work zero is separate. Jog to the corner of your stock, touch off the tool, and set the offset. Use G10 L20 P1 X0 Y0 Z0 to store it in the controller's EEPROM, or G92 for a temporary offset that clears on reset. G10 survives a power cycle; G92 does not. Pick deliberately.

Run the first pass in the air. Raise Z by 20 mm above the stock top and let the program execute. Watch the toolpath against the screen and listen for a change in motor pitch. If the Z axis dives at a rapid move, your CAM post is issuing a clearance height below the stock top, not a machine fault.

For the first real cut, reduce feed to 50% using the feed override, then step it back up. Grbl supports real-time override on most senders. If the cut sounds clean at 100%, note the number; that is your baseline for the next job with the same tool and material.

Aluminium on a light frame needs a lubricant or at least an air blast to clear chips. Recutting chips is the fastest way to break a 3 mm cutter and the fastest way to a rough finish. A single nozzle aimed at the cut zone is enough.

Limits

When a Grbl Machine Is the Wrong Tool

A Grbl controller is a good fit for prototypes, fixtures, signs, and one-off brackets. It is a poor fit for parts that need a stated tolerance held across a run. Open-loop steppers miss steps under load and cannot report it, so a 200-part run can drift without a single error message.

There is also no tool table. Tool length is whatever you measured and typed. Change a cutter mid-job and you re-zero by hand. Production mills handle this with a tool setter and automatic compensation, which is why they hold ±0.005 mm on aluminium across thousands of parts.

For anything going into a regulated product, process documentation matters as much as the cut. A Grbl setup gives you a text file of settings and a G-code program. That is a start, not a quality record. Medical and automotive work needs inspection reports, material certificates, and traceability, which is a different infrastructure entirely.

The sensible split: use Grbl for learning and for geometry you can verify with calipers. Move to a production shop once the drawing carries a tolerance band tighter than ±0.05 mm, once the material is stainless or titanium, or once the order exceeds a handful of units.

Operator sequence

Step by Step: Operating a Grbl CNC Machine

Follow in order. Each step assumes the previous one passed.

  • 1
    1. Inspect the machine by handPower off. Push each axis through full travel and feel for binding. Check couplers, belts, and the spindle mount. Fix mechanical faults before touching software.
  • 2
    2. Connect at the right baudOpen the sender, pick the COM port, set 115200 baud. Send a status query and confirm a machine state comes back. No reply means wrong rate or wrong port.
  • 3
    3. Dump and review settingsSend $$ and compare $100–$102 against your screw pitch and microstep math. A factor error shows as scaled dimensions on a test cut.
  • 4
    4. Set limits and accelerationSet $130–$132 from a measured tape. Raise $120–$122 in 50 mm/s² steps until the motor stalls, then back off 30%.
  • 5
    5. Home the machineSend $H. Confirm each axis trips its switch, backs off, and settles. Re-home after every power cycle if homing is enabled.
  • 6
    6. Set work zeroJog to the stock corner, touch off Z on the top face, then store G10 L20 P1 X0 Y0 Z0. Verify by jogging to X0 Y0 and checking the tool sits on the corner.
  • 7
    7. Air-run the programRaise Z 20 mm above stock. Run at 100% feed and watch for clearance moves that dip below the stock top. Fix the CAM clearance height if they do.
  • 8
    8. Cut at reduced feed, then rampStart at 50% feed override for the first pass. Step up in 10% increments while listening for chatter. Note the clean value for the next job.
Fit check

Grbl Setup vs Production CNC: Which Part Goes Where

Match the part to the machine before you write the program.

FactorGrbl router or millProduction CNC mill
Tolerance held±0.05 mm on light cuts±0.005 mm on aluminium
Axes3 simultaneous, 4 on some forks16 simultaneous 5-axis centers on site
Tool changesManual, re-zero by handTool table plus automatic compensation
MaterialsWood, plastic, aluminiumSteel, stainless, titanium, Inconel
Part sizeSmall plates and bracketsUp to 4,000 mm processing size
Run lengthOne-offs and small batchesOne prototype to 10,000+ parts
DocumentationSettings file and G-codeInspection reports and material certs
Best useLearning and prototypesReleased drawings and production runs

Use Grbl to learn, use a production mill to ship

A Grbl controller is the cheapest way to understand feeds, offsets, and G-code on real material. It is not the platform for released drawings, hard metals, or runs of hundreds. Know which one you have before you turn the spindle on.

FAQs

Grbl Operation Questions

Why does my Grbl board connect but return nothing?

Nine times out of ten the baud rate is wrong. Set the sender to 115200 and reconnect. If that fails, confirm you picked the COM port of the controller and not of a USB-serial adapter left over from another device.

A second cause is a board that booted into a bad state. Close the sender, unplug the USB cable, wait five seconds, and reconnect. Do not send commands while the board is still initializing; the buffer will fill and the reply stream will look like garbage.

Do I need limit switches to operate a Grbl CNC machine?

No, but you lose repeatability. Without switches you home by hand every session, and any power interruption mid-job means re-zeroing from scratch.

With switches, $22=1 enables the homing cycle and $21=1 enables hard limits. Add $20=1 for soft limits, which stop the machine before it reaches the frame. Soft limits only work after a successful homing cycle, so the two settings go together.

What feed rate should I start with on aluminium?

For a 6 mm two-flute carbide end mill in 6061 on a light desktop frame, start at 400 mm/min, 0.25 mm depth of cut, and full slot width at 12,000–16,000 rpm. Use an air blast or a small amount of lubricant.

If the cut sounds clean, raise feed in 10% steps. If you hear a low-frequency growl, you are near the stability limit. Back off 20% and note the value. Chatter marks on the wall mean the same thing.

Can I run a fourth axis on Grbl?

Standard Grbl drives three axes. Some forks add a fourth, usually by giving up one of the others or by using a spare pin. Support and documentation vary between forks, so check before you buy hardware.

If the part needs simultaneous 5-axis motion, a Grbl board is not the platform. That work goes to a machine with a rotary table and a controller that can keep four or five axes in sync under load.

How do I recover after a job fails halfway?

Stop the spindle, note the machine coordinates from the status report, and do not move the axes by hand. Re-run the program from a safe restart line if your sender supports it, with the tool still in the same position.

If the position is lost, re-home, reset work zero on a known feature of the stock, and cut the remaining material as a separate operation. Trying to resume without a known reference is how a nearly finished part becomes scrap.

When should I move the part to a production shop?

When the drawing carries a tolerance tighter than ±0.05 mm, when the material is stainless, titanium, or Inconel, or when the order goes past a handful of units. Those three conditions each break a different assumption in the Grbl workflow.

Send the STEP file and the drawing. We return a quotation and a DFM analysis within 12 hours, and production can start within 24 hours once the file is released.

Send the drawing, get a real answer

Upload your STEP file and we return a quotation with a free DFM analysis within 12 hours. No minimum order quantity, from one prototype to 10,000+ parts.

12-hour quote100% inspection±0.005 mm toleranceNo minimum order

Follow

More from GreatLight

We publish setup notes, tooling trials and inspection data from the factory floor.

FacebookTikTokYouTubeLinkedInInstagramThreadsPinterest

Trusted by engineers and manufacturers worldwide

Tesla Ford Motor Company BYD Auto Denso Magna International Boeing Airbus Medtronic KUKA FANUC