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 simulatorTemplate a button box, a shifter with a handbrake and a flight panel on a Pro Micro before you buy the parts.
0 of 4 done
4 lessons in 2 chapters, about 5 hours on a simulated SparkFun Pro Micro. Free, in your browser, every step checked by the simulator.
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 simulatorOne 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 simulatorEach lesson opens when the one before it is done, and each chapter ends in a project.
Buttons, toggles, a key switch and encoders that send exactly what a game expects.
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
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
An H shifter with a handbrake, then an autopilot and gear panel.
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
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
All 4 lessons, in order, each with what it covers. Any of them opens in the editor right away.
Every lesson runs in the simulator with nothing to buy. When you want the real thing, these kits have the parts.
Pick the starter kit you own and run every lesson in its manual with the same parts on the same pins.
See every kitYes. 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.
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.
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.
Each chapter ends in a project that puts it together: Encoders: every click reaches the game and A flight panel: autopilot and gear.
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.