9

Interfacing Hardware

The Raspberry Pi has a double row of pins on one side of it. These pins are called the GPIO (General Purpose Input/Output) connector and allow you to connect electronic hardware to the Pi as an alternative to using the USB port.

The maker and education communities have created many expansion and prototyping boards you can attach to your Pi so you can add your own electronics. This includes everything from simple temperature sensors to relays. You can even convert your Raspberry Pi into a controller for a robot.

In this chapter, we explore the various ways of connecting the Pi to electronic devices using the GPIO connector. Because this is a fast-moving field, it is fairly certain that new products will have come on the ...

Get Programming the Raspberry Pi, Third Edition: Getting Started with Python, 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.