Source: https://mokxi.com/learn/path/sim-rig-controllers
Updated: 2026-11-20

All paths

# Sim racing and flight sim controllers

Template a button box, a shifter with a handbrake and a flight panel on a Pro Micro before you buy the parts.

SparkFun Pro Micro Free 4 lessons 5 h 2 chapters 1,153 XP Maker · Intermediate +150 XP

0 of 4 done

Start the course free Buttons and toggles a game understands Lesson plan for teachers

What you will build

## 2 projects, built step by step

4 lessons in 2 chapters, about 5 hours on a simulated SparkFun Pro Micro. Free, in your browser, every step checked by the simulator.

Chapter 1 project

### Encoders: every click reaches the game

Read two rotary encoders with a state table that throws contact bounce away, send each click as a short button press, and queue fast spins so none are lost.
Open it in the simulator

Chapter 2 project

### A flight panel: autopilot and gear

One encoder for heading, altitude and vertical speed on a four-digit display, an AP button with its light, and a gear lever with three greens and a red in transit.
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 button box

Buttons, toggles, a key switch and encoders that send exactly what a game expects.

Open 218 XP

### Buttons and toggles a game understands

A Pro Micro as a USB game controller: momentary buttons, toggles that send a press per flip, an ignition key that guards START, and lights that follow the switches.

0 of 6 steps

Start What is in it

Project Locked 374 XP

### Encoders: every click reaches the game

Read two rotary encoders with a state table that throws contact bounce away, send each click as a short button press, and queue fast spins so none are lost.

0 of 5 steps

Chapter 2

## Rig and cockpit

An H shifter with a handbrake, then an autopilot and gear panel.

Locked 187 XP

### An H-pattern shifter and a handbrake

Turn two pots into a gear with trigger and release lines, push the knob down for reverse, add paddles, and scale a hall-sensor handbrake with dead zones.

0 of 5 steps

Project Locked 374 XP

### A flight panel: autopilot and gear

One encoder for heading, altitude and vertical speed on a four-digit display, an AP button with its light, and a gear lever with three greens and a red in transit.

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

### The button box

- Buttons and toggles a game understands A Pro Micro as a USB game controller: momentary buttons, toggles that send a press per flip, an ignition key that guards START, and lights that follow the switches.
- Encoders: every click reaches the game Read two rotary encoders with a state table that throws contact bounce away, send each click as a short button press, and queue fast spins so none are lost.

Chapter 2

### Rig and cockpit

- An H-pattern shifter and a handbrake Turn two pots into a gear with trigger and release lines, push the knob down for reverse, add paddles, and scale a hall-sensor handbrake with dead zones.
- A flight panel: autopilot and gear One encoder for heading, altitude and vertical speed on a four-digit display, an AP button with its light, and a gear lever with three greens and a red in transit.

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 Sim racing and flight sim controllers

Is Sim racing and flight sim controllers free?

Yes. All 4 lessons of Sim racing and flight sim controllers are free and run in your browser, with nothing to install and no parts to buy before you start.

Do I need a real SparkFun Pro Micro?

No. Every lesson runs on a simulated SparkFun Pro Micro 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 Sim racing and flight sim controllers take?

About 5 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: Encoders: every click reaches the game and A flight panel: autopilot and gear.

Where do I start?

With "Buttons and toggles a game understands", and each lesson builds on the one before it. New to circuits? Electronics basics is the course that starts from zero.
