Raspberry gPIo

Pages
Contributors: jimblom, MTaylor
Favorited Favorite 19

Hardware Setup

To get a head start you can assemble the circuit now. We'll use this setup for both the C and Python examples. We'll use two LEDs to test the output functionality (digital and PWM), and a button to test the input.

Fritzing Diagram of A Raspberry Pi Connected to LEDs and Button

Connections to Original Pi



Fritzing Diagram of A Raspberry Pi Connected to LEDs and Button

Connections to the Pi B + and Pi 2 B

Our two LEDs are connected to the Pi's GPIO 18 and GPIO 23 -- those are the Broadcom chip-specific numbers. If you're basing your wiring off the P1 connector pin numbers, that'd be pins 12 and 16.

The button is connected to Broadcom GPIO 17, aka P1 pin 11.

If you have Pi Wedge, the hookup should be pretty straight-forward. It'll look a little something like this when you're done:

alt text

If you don't have a Pi Wedge, male-to-female jumper wires help to make an easy transition from Pi to breadboard.

Jumper Wires Premium 6" M/F Pack of 10

Jumper Wires Premium 6" M/F Pack of 10

PRT-09140
$4.50
1
Jumper Wires Premium 12" M/F Pack of 10

Jumper Wires Premium 12" M/F Pack of 10

PRT-09385
$4.95
1