Integrating voltage translators with the RPZ

With many peripherals understanding a 5V digital input and the Raspberry Pi Zero operating at 3.3V, you might require a voltage shift from the output of the Raspberry Pi GPIO to an external device. While there are a few ways to accomplish this, the use of a voltage translator will ensure the fastest and most error-free communication. While a voltage divider works great most of the time, the slew rate can cause dirty signal reads, and voltage dividers can only be used for inputs. By having a voltage translator in our toolkit, we expand our ability for the Raspberry Pi Zero to communicate with anything that uses 3.3V or 5V inputs or outputs.

Getting ready

For this recipe, I used a breakout board from Adafruit, ...

Get Raspberry Pi Zero Cookbook 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.