Grbl: G-code parser and CNC motion controller
Real-time motion control firmware for Arduino-based CNCs.
Learn more about Grbl
Grbl is a motion control firmware designed for CNC milling machines, implemented in optimized C for the AVR microcontroller architecture. The firmware runs on Arduino boards with Atmega 328 processors and communicates via serial connection to accept g-code instructions. It includes a g-code parser supporting standard motion commands, arc interpolation, acceleration planning with look-ahead trajectory optimization, and real-time status reporting. The controller is typically paired with external stepper drivers and limit switches to form a complete CNC control system.
Arduino-Based Motion Control
Runs on standard Arduino Uno boards using serial communication instead of legacy parallel ports. Eliminates custom hardware requirements and reduces controller costs while maintaining industrial CNC performance.
Look-Ahead Trajectory Planning
Analyzes up to 18 motions ahead to compute optimal velocity profiles and acceleration curves. Prevents jerk at direction changes and maintains smooth tool movement through complex g-code paths.
30kHz Pulse Generation
AVR-optimized interrupt routines achieve stable 30kHz step pulse output with sub-microsecond timing accuracy. Handles concurrent stepper control, limit monitoring, and serial communication without jitter or dropped pulses.
#include <Arduino.h>
void setup() {
Serial.begin(115200);
delay(2000);
// Send G-code command to move to position
Serial.println("G21"); // Set units to mm
Serial.println("G90"); // Absolute positioning
Serial.println("G0 X10 Y10 Z5"); // Rapid move
}Top in Developer Tools
Related Repositories
Discover similar tools and frameworks used by developers
bolt.new
LLM-powered browser IDE with integrated WebContainers runtime.
Pygame
Python wrapper for SDL enabling 2D game development.
xh
Rust HTTP client reimplementing HTTPie with improved performance and user-friendly API testing syntax.
Playwright
Cross-browser automation framework with built-in test runner.
Floki
Elixir HTML parser with CSS selectors and multiple parser backends.
Related Reading
Guides and comparisons from the Greptile content library
Best AI Code Review Tools for GitHub
Top-rated AI code review tools for GitHub teams in 2025. Compare features, pricing, and accuracy to find the perfect fit for faster PR reviews and bulletproof code quality.
The 7 Best AI Coding Tools for Complex Codebases
The best AI coding tools for complex codebases, ranked on accuracy, suggestion quality, and full-codebase context. See which ones you can actually trust.
What is Shift Left Testing? Everything Engineering Leaders Need to Know
The five types of shift-left testing, the benefits and limitations of each, and how the approach changes when agents write and review a growing share of your code.
27 Code Quality Tools that Catch Bugs [2026 Review]
The best code quality tools that catch bugs, security vulnerabilities, and runtime errors, sorted by language, with type, noise level, cost, and who each one is for.