O'Reilly logo

Raspberry Pi LED Blueprints by Agus Kurniawan

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Expanding Raspberry Pi GPIO

Let's consider that you want to build a five-road intersection model. This means that you need at least 15 pins on Raspberry Pi GPIO. As you know, Raspberry Pi GPIO has limited pins, so we need to expand Raspberry Pi GPIO.

There are many approaches to expand Raspberry Pi 2. In Chapter 2, Make Your Own Countdown Timer, and Chapter 3, Make Your Own Digital Clock Display, we already learned how to expand Raspberry Pi GPIO via the shift register method. Now, you will see how to expand Raspberry Pi GPIO using another approach. Let's introduce the IC MCP23017. It's a 16-bit input/output (I/O) port expander with interrupt output and able to be cascaded for up to eight devices on one bus. The MCP23017 uses I2C for communication. ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required