Chapter 14
Learning to Hack Hardware
IN EARLIER CHAPTERS, you learned how the Raspberry Pi can be turned into a flexible platform for running a variety of software. In this respect, it’s not alone. Any desktop or laptop can run the same software, and in many cases, run it far faster than the Pi’s low-power processor can manage.
The Pi has another trick up its sleeve, though, which places it above and beyond the capabilities of the average PC: its general-purpose input-output (GPIO) port, located on the top-left of the Pi’s printed circuit board.
The GPIO enables the Pi to communicate with other components and circuits and allows it to act as a controller in a larger electronic circuit. Through the GPIO port, it’s possible to have the Pi sense temperatures, move servos and talk to other computing devices using a variety of different protocols, including Serial Peripheral Interface (SPI) and Inter-Integrated Circuit (I²C). Chapter 15, “The GPIO Port”, provides details on working with the GPIO pins.
Before you can get started building circuits to use with the Pi’s GPIO port, however, you need some additional equipment and an understanding about some of the language surrounding the world of electronics.
Electronic Equipment
To start building circuits that can be controlled by the Pi’s GPIO port, you need various components and tools. The following is a sample shopping list for getting started with electronics:
- Breadboard—An electronic breadboard provides a grid of holes spaced at ...
Get Raspberry Pi User Guide, 3rd Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.