All paths

3D printer and CNC basics

Learn what a printer’s firmware does underneath: homing, temperature control with safety, G-code motion and runout detection.

Arduino Uno R3Free4 lessons4 h2 chapters1,111 XPMaker · Advanced+250 XP

0 of 4 done

What you will build

2 projects, built step by step

4 lessons in 2 chapters, about 4 hours on a simulated Arduino Uno R3. Free, in your browser, every step checked by the simulator.

Chapter 1 project

A mini G-code interpreter

Send G28, G0, G1 and M114 to a two-axis plotter line by line, and see what a firmware does with each one: home, interpolate, report, answer ok.

Open it in the simulator
Chapter 2 project

A filament runout sensor

An optical runout sensor, a debounce, the filament still in the path after the sensor, and a pause that waits for new filament and a press of resume.

Open it in the simulator
The map

Chapter by chapter

Each lesson opens when the one before it is done, and each chapter ends in a project.

Chapter 1

Motion

Find zero with an endstop, then move two axes from G-code lines.

  1. Open189 XP

    Stepper homing

    How a printer finds zero: an A4988, a NEMA 17 and an endstop, a fast seek, a back-off and a slow second touch, then moves inside software limits.

    0 of 4 steps

  2. ProjectLocked378 XP

    A mini G-code interpreter

    Send G28, G0, G1 and M114 to a two-axis plotter line by line, and see what a firmware does with each one: home, interpolate, report, answer ok.

    0 of 4 steps

Chapter 2

Printing safely

Hold a heater at temperature, catch a loose sensor and pause for empty spools.

  1. Locked166 XP

    Heated bed PID and thermal runaway

    A thermistor, a MOSFET and a PID loop that hold a bed at temperature, and the protection that switches the heater off when the reading stops following it.

    0 of 4 steps

  2. ProjectLocked378 XP

    A filament runout sensor

    An optical runout sensor, a debounce, the filament still in the path after the sensor, and a pause that waits for new filament and a press of resume.

    0 of 4 steps

Syllabus

Every lesson in the course

All 4 lessons, in order, each with what it covers. Any of them opens in the editor right away.

Chapter 1

Motion

  1. Stepper homingHow a printer finds zero: an A4988, a NEMA 17 and an endstop, a fast seek, a back-off and a slow second touch, then moves inside software limits.
  2. A mini G-code interpreterSend G28, G0, G1 and M114 to a two-axis plotter line by line, and see what a firmware does with each one: home, interpolate, report, answer ok.
Chapter 2

Printing safely

  1. Heated bed PID and thermal runawayA thermistor, a MOSFET and a PID loop that hold a bed at temperature, and the protection that switches the heater off when the reading stops following it.
  2. A filament runout sensorAn optical runout sensor, a debounce, the filament still in the path after the sensor, and a pause that waits for new filament and a press of resume.
Keep going

The next course on your track

3D printer and CNC basics is part of the robotics track, a ladder of courses from zero to expert.

Next course

PLCs and ladder logic

How factory machines think: the scan cycle, contacts and coils, seal-in circuits, timers, counters and sequencers, ending on a crossing controller you design rung by rung.

Open the next course
Track

Robotics track

Motors, servos, sensors and PID control loops, then a rover, a claw machine and a balance bot, every lesson checked on a simulated board.

See every course on the track
Kits

Build it on your bench too

Every lesson runs in the simulator with nothing to buy. When you want the real thing, these kits have the parts.

Have a kit already?

Find your kit

Pick the starter kit you own and run every lesson in its manual with the same parts on the same pins.

See every kit
Questions

About 3D printer and CNC basics

Is 3D printer and CNC basics free?

Yes. All 4 lessons of 3D printer and CNC basics are free and run in your browser, with nothing to install and no parts to buy before you start.

Do I need a real Arduino Uno R3?

No. Every lesson runs on a simulated Arduino Uno R3 with its parts on the canvas, and the simulator checks each step as you go. When you want to build it for real, the same wiring and code work on a real board.

How long does 3D printer and CNC basics take?

About 4 hours: 4 lessons in 2 chapters, each one a few short steps. Your progress is kept, so you can stop after any lesson and pick up where you left off.

What will I build?

Each chapter ends in a project that puts it together: A mini G-code interpreter and A filament runout sensor.

Where do I start?

With "Stepper homing", and each lesson builds on the one before it. New to circuits? Electronics basics is the course that starts from zero.