All paths

Build a claw machine

Build a real arcade claw machine piece by piece, from one stepper motor to coins, a clock, a win sensor, lights and sound.

Arduino Uno R3Free8 lessons6 h3 chapters2,079 XPMaker · Advanced+250 XP

0 of 8 done

Start the course freeOne stepper on a driverBuild it as a kitRetails for about $71, free on Mokxi.Lesson plan for teachers
What you will build

3 projects, built step by step

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

Chapter 1 project

The second axis

Copy the first axis for Y: a second A4988 and NEMA 17, two more wires, and the claw can reach the whole cabinet floor.

Open it in the simulator
Chapter 2 project

The claw and the drop

Wire the cabinet's winch and servo claw and add the Drop button, and write the grab as a state machine: lower, close, lift, carry home, open.

Open it in the simulator
Chapter 3 project

Lights, sound and the whole machine

Finish the cabinet with a NeoPixel marquee and a speaker, and meet the payout setting real machines use.

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

The gantry

Two stepper motors that go exactly where the stick says.

  1. Open189 XP

    One stepper on a driver

    Start the claw machine with one axis: a NEMA 17 on an A4988, two signal wires from the Uno, and a test move that proves the wiring.

    0 of 4 steps

  2. Locked189 XP

    Steer with a joystick

    Add the thumb stick so a player can drive the gantry, and turn how far it is pushed into how fast the motor steps.

    0 of 4 steps

  3. ProjectLocked378 XP

    The second axis

    Copy the first axis for Y: a second A4988 and NEMA 17, two more wires, and the claw can reach the whole cabinet floor.

    0 of 4 steps

Chapter 2

Home and grab

Find zero at power-up, then drop, grab and carry a prize home.

  1. Locked189 XP

    The cabinet and its home switches

    Mount the two motors in the cabinet, and wire the lever switch at the home end of each axis, so the machine finds zero at power-up the way printers and real cabinets do.

    0 of 4 steps

  2. ProjectLocked378 XP

    The claw and the drop

    Wire the cabinet's winch and servo claw and add the Drop button, and write the grab as a state machine: lower, close, lift, carry home, open.

    0 of 4 steps

Chapter 3

The game

Coins, a countdown, a sensor that knows you won, and the lights and sound of a real cabinet.

  1. Locked189 XP

    Coins and a countdown

    Add a coin switch and a 16x2 LCD, and load the full game: insert a coin, beat the clock, and drop.

    0 of 4 steps

  2. Locked189 XP

    Knowing you won

    Wire the infrared beam across the prize chute, so the machine knows a prize really fell and can call a win.

    0 of 4 steps

  3. ProjectLocked378 XP

    Lights, sound and the whole machine

    Finish the cabinet with a NeoPixel marquee and a speaker, and meet the payout setting real machines use.

    0 of 4 steps

Syllabus

Every lesson in the course

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

Chapter 1

The gantry

  1. One stepper on a driverStart the claw machine with one axis: a NEMA 17 on an A4988, two signal wires from the Uno, and a test move that proves the wiring.
  2. Steer with a joystickAdd the thumb stick so a player can drive the gantry, and turn how far it is pushed into how fast the motor steps.
  3. The second axisCopy the first axis for Y: a second A4988 and NEMA 17, two more wires, and the claw can reach the whole cabinet floor.
Chapter 2

Home and grab

  1. The cabinet and its home switchesMount the two motors in the cabinet, and wire the lever switch at the home end of each axis, so the machine finds zero at power-up the way printers and real cabinets do.
  2. The claw and the dropWire the cabinet's winch and servo claw and add the Drop button, and write the grab as a state machine: lower, close, lift, carry home, open.
Chapter 3

The game

  1. Coins and a countdownAdd a coin switch and a 16x2 LCD, and load the full game: insert a coin, beat the clock, and drop.
  2. Knowing you wonWire the infrared beam across the prize chute, so the machine knows a prize really fell and can call a win.
  3. Lights, sound and the whole machineFinish the cabinet with a NeoPixel marquee and a speaker, and meet the payout setting real machines use.
Keep going

The next course on your track

Build a claw machine is part of the maker track, a ladder of courses from zero to expert.

Next course

Build a programming language

Write Orbit, a small language for a mission control panel, in Python on a Raspberry Pi: tokenizer, recursive descent parser, AST, evaluator, scope, functions and real error messages, ending in a REPL that lights real lamps.

Open the next course
Track

Maker track

Follow the starter kit you already own, then build a claw machine, a balance bot, a handheld console or an LED cube, each a short course checked by the simulator.

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.

The kit for this course

Claw Machine Kit

Two steppers, a winch, a servo claw, a coin slot and a prize sensor.

Open the kit
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 Build a claw machine

Is Build a claw machine free?

Yes. All 8 lessons of Build a claw machine 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 Build a claw machine take?

About 6 hours: 8 lessons in 3 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: The second axis, The claw and the drop and Lights, sound and the whole machine.

Where do I start?

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