The button on the wrong pin
The sketch reads a button on pin 2 and lights the LED. Hold the button and nothing happens. Find out why.
Open it in the simulatorShort puzzles on an Uno: one planted fault each, in the wiring or the code. Find it, fix it, and see it work.
0 of 8 done
8 lessons in 2 chapters, about 1 hour on a simulated Arduino Uno R3. Free, in your browser, every step checked by the simulator.
The sketch reads a button on pin 2 and lights the LED. Hold the button and nothing happens. Find out why.
Open it in the simulatorThe LED should light only while the button is held, and it is on all the time. One character is to blame.
Open it in the simulatorEach lesson opens when the one before it is done, and each chapter ends in a project.
A missing wire, a missing ground, and a wire on the wrong pin.
Blink is running, pin 13 is switching, and the LED on the breadboard stays dark. Find the gap in the loop.
0 of 4 steps
Pin 13 is high, the LED and resistor are wired to the rail, and nothing lights. Find what the loop is missing.
0 of 4 steps
The sketch reads a button on pin 2 and lights the LED. Hold the button and nothing happens. Find out why.
0 of 4 steps
A copied line, a missing pinMode, an upside-down test, an off-by-one and a stray semicolon.
A blink sketch with two writes and two delays, and an LED that comes on and never goes off. Read the loop.
0 of 4 steps
digitalWrite says HIGH and the LED barely glows. The loop is fine. Find what setup() leaves out.
0 of 4 steps
The LED should light while the button is held. It is lit with the button up and goes dark when you press.
0 of 4 steps
A for loop that should print 1 to 10 prints 1 to 9 and says done. Find where ten went.
0 of 4 steps
The LED should light only while the button is held, and it is on all the time. One character is to blame.
0 of 4 steps
All 8 lessons, in order, each with what it covers. Any of them opens in the editor right away.
Fix the bug is part of the coding track, a ladder of courses from zero to expert.
The habits that keep a big program sane, on the Uno: references and const, classes, a ring buffer, a state machine class, templates, and logic split from pins so it tests itself. Ends with a tested calculator.
Open the next coursePython and C++ from your first print to classes, tests and state machines. Every program runs on a simulated board, so a bug is something you can see.
See every course on the trackEvery 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 8 lessons of Fix the bug 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 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.
About 1 hour: 8 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: The button on the wrong pin and The if that always runs.
With "The LED that never lights", and each lesson builds on the one before it. New to circuits? Electronics basics is the course that starts from zero.