Learn
Using the Breadboard on a Raspberry Pi 4B — Rows, Rails, and Zero-Code Power Wiring
Understand how a breadboard's matrix columns and power rails actually connect components — then wire an LED to light instantly from the rails, with no Python code at all.
Try this directly in the free Raspberry Pi 4B simulator — no hardware or signup required. New to the GPIO header? Start with the interactive pinout guide.
What you’ll need
- Raspberry Pi 4B
- Breadboard
- LED
- Resistor (~220Ω)
Step by step
- Drag Raspberry Pi 4B and Breadboard onto the Canvas.
- Drag a Resistor onto the breadboard's main hole grid (the "matrix") — mount its two legs into two holes in the same row-bank, a few columns apart.
- Drag an LED onto the breadboard, mounting its anode (+) leg into the SAME column as the resistor's right-hand leg (so they share an electrical connection), and its cathode (−) leg into an empty column of its own.
- Wire the resistor's OTHER leg's column → any hole in the breadboard's top "+" rail row (printed with a "+" stripe along the board's edge).
- Wire the LED's cathode column → any hole in the breadboard's top "−" rail row (printed with a "−" stripe).
- Wire the Pi's 5V pin → any other hole in that same "+" rail row.
- Wire the Pi's GND pin → any other hole in that same "−" rail row.
- Click Start.
What “working correctly” looks like
- The LED lights up the instant you click Start — no Python code is involved at all, since a rail row is one continuous electrical connection running the board's full width, and the Pi's real 5V/GND pins are now feeding it directly.
- Hover over any hole and every other hole electrically connected to it (the same matrix column, or the same rail row) highlights — a quick way to confirm two things are really connected before you wire them.
If something’s wrong
- The LED doesn't light → make sure every leg actually landed IN a real breadboard hole, not just near one visually — the app only counts a mount if the leg is close enough to a hole's true center.
- The LED lights when wired to the "−" rail instead → you likely mixed up which printed stripe is which; check the "+"/"−" markings printed on the board itself before wiring, not just which row looks like it "should" be power.
- Want to confirm two components are really in the same net? Hover one of their legs and watch which other holes light up — if the two you expect aren't both highlighted, they aren't actually connected yet.