A Step-by-Step Guide to Connecting a Breadboard to Your Raspberry Pi

Learn how to connect a breadboard to your Raspberry Pi for easy prototyping and circuit building with this comprehensive guide. …


Updated September 12, 2023

Need help with your Raspberry Pi?
Contact Me!

Do you love silly Raspberry Pi Projects?
Check out my this YouTube Channel!


Learn how to connect a breadboard to your Raspberry Pi for easy prototyping and circuit building with this comprehensive guide.

  1. Supplies

    • A Raspberry Pi (any model)
    • A Breadboard (either 830 or 850-point)
    • Jumper wires (male-to-male and female-to-female sets)
    • A power supply (USB cable or battery pack)
    • Electrical components (resistors, capacitors, LEDs, etc.)
    • An assistant (optional, but highly recommended)
  2. Wire connections

    1. Plug the USB power cable into your Raspberry Pi and a wall outlet or battery pack to provide power.
    2. Connect one end of a jumper wire to any GPIO pin on the Raspberry Pi (e.g., GPIO 3V3 for 3.3V power) and the other end to the positive rail (+) on the breadboard.
    3. Connect another jumper wire from any GND pin on the Raspberry Pi to the negative rail (-) on the breadboard.
    4. Finally, connect a jumper wire from any GPIO pin (e.g., GPIO 2) to the second row of the breadboard, right next to the positive power rail (+). This will be used as a test GPIO pin later in the guide.
  3. Building a simple circuit

    1. Place an LED on the breadboard with its long leg (anode) in row 8 and its short leg (cathode) in row 7.
    2. Insert a resistor (e.g., 220 ohms) between the LED’s cathode and the second row of the breadboard, where you connected the GPIO pin earlier. The resistor should be on the same row as the anode.
    3. Connect a jumper wire from the GPIO pin to the other end of the resistor (on row 7).
    4. Plug in your Raspberry Pi and run a test program that sets GPIO 2 to high, then low, every second. You should see the LED blink on and off.
import RPi.GPIO as GPIO
import time

GPIO.setmode(GPIO.BCM)
GPIO.setup(2, GPIO.OUT)

while True:
    GPIO.output(2, GPIO.HIGH)
    time.sleep(1)
    GPIO.output(2, GPIO.LOW)
    time.sleep(1)
  1. What’s next?
    • Now that you have a basic breadboard set up with your Raspberry Pi, you can start building more complex circuits and projects using the breadboard and your imagination! Try adding buttons, sensors, motors, or other components to expand your creations.
    • Remember to always double-check your connections before powering on your Raspberry Pi, as incorrect wiring can cause damage to both devices.
    • Keep in mind that the GPIO pins have different voltage levels (3.3V and 5V). Be sure to use appropriate components for each level to prevent damage.

And there you have it! You’re now ready to start building projects with your Raspberry Pi and breadboard. Happy tinkering!