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.
How to test it with the Digital Multimeter. This works even while the simulation is stopped.
- Drag a Digital Multimeter onto the Canvas. Click it and set its Mode to Continuity/Resistance.
- Wire Probe (+) into one hole of a short column strip of five holes on the breadboard. Wire Probe (− / COM) into another hole of the same strip. The meter reads 0.0 Ω.
- Move Probe (− / COM) to a hole in the next column strip. The meter reads OPEN.
- Move Probe (− / COM) to the same column on the other side of the center gap. The meter reads OPEN, because the gap splits the board in two.
- Wire the two probes to two holes far apart in the same power rail row. The meter reads 0.0 Ω. Then move one probe to the other rail row ("+" against "−"). The meter reads OPEN.
What “working correctly” looks like
- How to test it: two holes in the same five-hole column strip read 0.0 Ω. Holes in different strips, on opposite sides of the center gap, or in the "+" and "−" rails read OPEN. Two holes anywhere in the same rail row read 0.0 Ω.
- 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.