Source: https://mokxi.com/learn/path/build-a-slot-machine
Updated: 2026-11-20

All paths

# Build a slot machine

Pull a real arcade lever, spin three OLED reels and pay out by a table whose odds you can check, on an Uno.

Arduino Uno R3 Free 4 lessons 4 h 2 chapters 1,168 XP Maker · Intermediate +150 XP

0 of 4 done

Start the course free Slot machine: the lever Build it as a kit Retails for about $58, free on Mokxi. Lesson plan for teachers

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

### Slot machine: one reel

Draw a spinning reel on an SSD1306 with no frame buffer, then let the lever pick where it stops. Animation that fits in an Uno.
Open it in the simulator

Chapter 2 project

### Slot machine: the whole machine

Coins, a bet, a pay table with odds you can check, win lights and sounds. The finished machine, and the math that keeps it honest.
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

## Lever and reel

Read the lever once per pull, and draw a reel that spins.

Open 174 XP

### Slot machine: the lever

A real arcade lever on an Uno. Read its DOWN switch, count each pull exactly once on its edge, and give it a click you can hear.

0 of 4 steps

Start What is in it

Project Locked 348 XP

### Slot machine: one reel

Draw a spinning reel on an SSD1306 with no frame buffer, then let the lever pick where it stops. Animation that fits in an Uno.

0 of 4 steps

Chapter 2

## The machine

Three reels on three buses, then credits, bets and honest odds.

Locked 174 XP

### Slot machine: three reels

Three OLEDs with the same address, each on its own pair of wires, and reels that stop one by one from left to right.

0 of 4 steps

Project Locked 472 XP

### Slot machine: the whole machine

Coins, a bet, a pay table with odds you can check, win lights and sounds. The finished machine, and the math that keeps it honest.

0 of 6 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

### Lever and reel

- Slot machine: the lever A real arcade lever on an Uno. Read its DOWN switch, count each pull exactly once on its edge, and give it a click you can hear.
- Slot machine: one reel Draw a spinning reel on an SSD1306 with no frame buffer, then let the lever pick where it stops. Animation that fits in an Uno.

Chapter 2

### The machine

- Slot machine: three reels Three OLEDs with the same address, each on its own pair of wires, and reels that stop one by one from left to right.
- Slot machine: the whole machine Coins, a bet, a pay table with odds you can check, win lights and sounds. The finished machine, and the math that keeps it honest.

Keep going

## The next course on your track

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

Next course

### Build a pinball table

From two flipper buttons to a full table with a kicker, lights, sound and a saved high score, on a Mega.
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

### Slot Machine Kit

A pull lever, three screen reels, a light strip, a coin button and two bet buttons.
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 slot machine

Is Build a slot machine free?

Yes. All 4 lessons of Build a slot 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 slot machine 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: Slot machine: one reel and Slot machine: the whole machine.

Where do I start?

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