Untitled design (26)

Using the Raspberry Pi and a Level Shifter

You should know the logic voltage level of the components you use when working with circuitry. To successfully send and receive signals amongst one another, they should be on the same level. However, you might need to connect modules for some projects that don’t all use the same binary voltage thresholds. You may need to use a level changer in this circumstance. To assist you, we’ll explore further using a level shifter with the Raspberry Pi.

Raspberry Pi with Level Shifters

A level shifter is a circuit that resembles a small rectangle with numerous tiny connection points, known as pins, arranged in a row on its top face. Each LV and HV-labeled pins have a number connected to the end. The letters LV and HV stand for low and high values, respectively, and the numbers denote the channel to which the pins belong. For instance, Channel 1 corresponds to LV1 and HV1. The two different binary signal circuit devices employ to communicate are high and low values. Low values are zeros, while high values are ones. Additionally, two GND (ground) pins act as a reference point for voltage measurements in the circuit because they are powered at zero volts.

The Raspberry Pi, which operates on 3.3V logic levels, can transform signals so that you can connect your Pi to devices that run on 5V logic levels. It will convert 3.3V outputs into ones recognized by 5V modules and 5V inputs into 3.3V. Engaging in these conversations with the level changer won’t risk causing your Pi permanent harm.

A Level Shifter Circuit’s Configuration

You must know the precise locations to connect several wires to use a level shifter with the Raspberry Pi. The purpose of each numbered pin on the Pi’s side is listed in a chart that can be found online. To complete the circuit and establish a GND connection between the 5V component and the Pi, you must join any GND on the level shifter with a GND pin on the level shifter. The level shifter’s LV pin, devoid of a number, should connect to Pin 1 on the Pi (or the other 3.3V pin, which is Pin 17 on the Pi 4). In the meantime, Pin 2 is connected to the level shifter’s HV pin (or the other 5V pin, which is Pin 4 on the Pi 4). On the Pi, there are typically two 3.3V and two 5V pins available for use.

The LV1 pin of the level shifter should then be connected to any GPIO (general-purpose input/output) pin on the Raspberry Pi, presuming you’re just utilizing one channel. The GPIO pin will function as an input in this case. The output pin of the 5V gadget must receive the appropriate HV1 pin. The 5V pin on the 5V module will then be connected to the free 5V pin on your Pi.

With this knowledge, you can take on more challenging wiring projects. Visit Chicago Electronic Distributors online to put this knowledge to use and find the supplies your makers’ electronics projects require. We are a renowned DIY electronics retailer that carries all the necessary Raspberry Pi parts.