Marlin runs on printer controller boards, interprets G-code, and drives motion, heating, and LCD or TFT interfaces. It supports many 8-bit AVR and 32-bit ARM platforms.
Overview
Marlin is embedded firmware for RepRap-style 3D printers. It reads G-code from a host connection or SD card, plans motion, controls extruders and heaters, and presents menus on attached displays.
Motion features include look-ahead planning with acceleration limits, Linear Advance, Input Shaping, and support for Cartesian, CoreXY, Delta, and several other kinematics. Heating uses PID or model-predictive control with thermal runaway protection, power-loss recovery, and filament runout handling.
The same codebase targets classic 8-bit AVR boards and modern 32-bit ARM, ESP32, RP2040, and other MCUs through a hardware abstraction layer. Hundreds of vendor boards are documented, with example configuration packages for many printers.
User interfaces range from character LCDs to color touch screens, plus host and SD printing. A desktop simulator can run on Linux, macOS, or Windows for testing without hardware.
Key features
- G-code motion and temperature control
- 8-bit and 32-bit board support
- Bed leveling and input shaping
- LCD, TFT, and host interfaces
- SD card standalone printing
- Wide printer configuration library
- Hardware abstraction for many MCUs
- Desktop simulator for testing
Use cases
- Flashing custom firmware on FDM printers
- Tuning acceleration and extrusion behavior
- Supporting vendor or DIY controller boards
- Developing printer features in simulation