From the course: Raspberry Pi Essential Training
Unlock this course with a free trial
Join today to access over 24,900 courses taught by industry experts.
The GPIO header
From the course: Raspberry Pi Essential Training
The GPIO header
- One of Raspberry Pi's most useful features, and I think it's the one you're going to have the most fun with, is the GPIO headers here. This is the set of pins that takes up most of this side of the board. Now, you can connect wires between GPIO pins and a hardware component, and you can write code to control that device or to read from it. Every pin here has its own function. So some of these provide power to external components, some supply a common ground, and others are used to read the state of the component or to send it a signal. Notice how the pin numbering goes from one to 40. With a pin-out diagram, it's easy to locate pins by number on boards like Raspberry Pi 5 or Zero 2, but it's possible to get mixed up when you're using a Raspberry Pi 400 or 500. So pins one and 40 are helpfully marked on the GPIO header at the back of the computer. So a heads up if you're new to this. The physical pin numbers from one to 40 don't correspond directly to the logical pin numbers you'll…