When working with circuitry, you should be aware of the logic voltage level of the components you are using. They should ideally fall within the same level so they can send and receive signals between one another effectively. For some projects, though, you may need to connect modules that do not all operate with the same binary voltage thresholds. When faced with this scenario, you may need to utilize a level shifter. We’ll go into detail about using a level shifter with the Raspberry Pi here to help you.
A level shifter is a circuit that looks like a small rectangle with several small points of connection, called pins, lined up on its top face. The pins are labeled LV and HV, and each has a number attached to the end. LV stands for low value, HV stands for high value, and the numbers indicate which channel the pins belong to. For example, LV1 and HV1 correspond to Channel 1. The high and low values are the two different binary signals that circuit devices use to communicate. High values are ones, and low values are zeros. There are also two GND (ground) pins that serve as the reference point when you measure voltage in the circuit, as they are set at zero volts.
The Raspberry Pi, which uses 3.3V logic levels, can serve as a signal converter that lets you connect your Pi with components that use 5V logic levels. It will both translate 5V inputs into 3.3V and translate 3.3V outputs into ones that are recognizable by 5V modules. With the level shifter, you won’t risk irreparably damaging your Pi through these exchanges.
Using a level shifter with the Raspberry Pi requires that you know exactly where to connect multiple wires. You can look up a chart that labels what each of the numbered pins on the side of the Pi is for. You need to connect a GND pin on the level shifter with any GND on the Pi to complete the circuit and make a GND connection between the 5V component and the Pi. The LV pin on the level shifter without a number should link to Pin 1 on the Pi (or the other 3.3V pin, which is Pin 17 on the Pi 4). Meanwhile, the level shifter’s HV pin connects to Pin 2 (or the other 5V pin, which is Pin 4 on the Pi 4). There are usually two 3.3V and two 5V pins to choose from on the Pi.
Assuming you’re using only one channel, you should then wire the level shifter’s LV1 pin to any GPIO (general-purpose input/output) pin on the Pi. In this instance, the GPIO pin will act as an input. The matching HV1 pin must go to the output pin of the 5V device. Finally, you will connect the 5V module’s 5V pin with the free 5V pin on your Pi.
With this information, you’re ready to tackle some more complex wiring projects. Apply this knowledge and find the supplies you need for your makers’ electronics endeavors by visiting Chicago Electronic Distributors online. We are a premier DIY electronics store that stocks all the Raspberry Pi components that you need.
Comments will be approved before showing up.
Wakati wa kufanya kazi na mzunguko, unapaswa kuwa na ufahamu wa ngazi ya msukumo wa mantiki wa vipengele unavyotumia. Wao wanapaswa bora kuanguka ndani ya ngazi moja ili waweze kutuma na kupokea ishara kati ya kila mmoja kwa ufanisi. Kwa baadhi ya miradi, ingawa, unaweza haja ya kuunganisha modules kwamba si wote kazi na sawa binary voltage mipaka. Unapokabiliwa na hali hii, huenda ukahitaji kutumia kiunganishi cha kiwango. Sisi kwenda katika maelezo kuhusu kutumia ngazi shifter na Raspberry Pi hapa kukusaidia. Kiwango shifter ni mzunguko kwamba inaonekana kama mstatili ndogo na pointi kadhaa ndogo ya uhusiano, aitwaye pini, aligned juu ya uso wake wa juu. Pini hizo zimeandikwa LV na HV, na kila moja ina nambari iliyounganishwa kwenye mwisho. LV inamaanisha thamani ya chini, HV inamaanisha thamani ya juu, na nambari zinaonyesha ni kituo gani cha pini ni. Kwa mfano, LV1 na HV1 inalingana na Channel 1. Thamani ya juu na ya chini ni ishara mbili tofauti za binary ambazo vifaa vya mzunguko hutumia kuwasiliana. Thamani za juu ni moja, na thamani za chini ni sifuri. Pini mbili za GND ( ardhi) zinatumika kama alama ya kumbukumbu wakati wa kupima voltage katika mzunguko, kwani zimewekwa kwa volts sifuri. Raspberry Pi ina uwezo wa kuunganisha vipengele vya 5V na vipengele vya 3.3V. Kwa mfano, unaweza kugeuza pembejeo ya 5V kuwa 3.3V na kugeuza pembejeo ya 3.3V kuwa moja inayoweza kutambuliwa na moduli za 5V. Pamoja na kiwango shifter, huwezi hatari irreparably kuharibu Pi yako kupitia kubadilishana hizi. Kutumia kiwango shifter na Raspberry Pi inahitaji kwamba unajua hasa ambapo kuunganisha nyaya nyingi. Unaweza kuangalia juu ya chati ambayo ina lebo nini kila moja ya pini namba juu ya upande wa Pi ni kwa. Kuunganisha pini ya GND kwenye kipimo cha kiwango na GND yoyote kwenye Pi ili kukamilisha mzunguko na kufanya uhusiano wa GND kati ya kipengele cha 5V na Pi. Pini ya LV ya kiunganishi cha kiwango cha kiwango cha kiwango cha kiwango cha kiwango cha kiwango cha kiwango cha kiwango cha kiwango cha kiwango cha kiwango cha kiwango cha kiwango cha kiwango cha kiwango cha kiwango cha kiwango cha kiwango cha kiwango cha kiwango cha kiwango cha kiwango cha kiwango cha kiwango cha kiwango cha kiwango cha kiwango cha kiwango cha kiwango cha kiwango cha kiwango cha kiwango cha kiwango cha kiwango cha kiwango cha kiwango cha kiwango cha kiwango cha kiwango cha kiwango cha kiwango cha kiwango cha kiwango cha kiwango cha kiwango cha kiwango. Wakati huo huo, pini ya kiwango cha kiwango cha kiwango cha kiwango cha kiwango cha kiwango cha kiwango cha kiwango cha kiwango cha kiwango cha kiwango cha kiwango cha kiwango cha kiwango cha kiwango cha kiwango cha kiwango cha kiwango cha kiwango cha kiwango cha kiwango cha kiwango cha kiwango cha kiwango cha kiwango cha kiwango cha kiwango cha kiwango cha kiwango cha kiwango cha kiwango cha kiwango cha kiwango cha kiwango cha kiwango cha kiwango cha kiwango cha kiwango cha kiwango cha kiwango cha kiwango cha kiwango cha kiwango cha kiwango cha kiwango cha kiwango cha kiwango cha kiwango cha kiwango. Kwa kawaida kuna pini mbili za 3.3V na mbili za 5V za kuchagua kwenye Pi. Kwa kudhani wewe ni kutumia njia moja tu, unapaswa kisha waya ngazi shifter ya LV1 pin kwa GPIO yoyote (maombi ya jumla ya matumizi ya pembejeo) pin juu ya Pi. Katika kesi hii, GPIO pin itakuwa kutenda kama pembejeo. Pini ya HV1 ya kulinganisha lazima iende kwenye pini ya pato ya kifaa cha 5V. Mwishowe, unapaswa kuunganisha pini ya 5V ya moduli ya 5V na pini ya 5V ya bure kwenye Pi yako. Pamoja na habari hii, wewe ni tayari kukabiliana na baadhi ya miradi ya waya tata zaidi. Tumia maarifa haya na kupata vifaa unahitaji kwa ajili ya watengenezaji wako 'ajira za elektroniki kwa kutembelea Chicago Electronic Distributors online. Sisi ni duka la kwanza la vifaa vya elektroniki vya DIY ambavyo vina vifaa vyote vya Raspberry Pi unavyohitaji. Maoni yatakubaliwa kabla ya kuonekana.