Тёмный

Logic Level Converters - Learn & Example Project - TXS0108E 

DIY Machines
Подписаться 114 тыс.
Просмотров 59 тыс.
50% 1

I'll explain the TXS0108E logic level converter. They're great for connecting between 3.3v logic devices (such as Raspberry Pi's & some sensors) & 5v logic devices such as an Arduino Uno. 👇 More info below 👇
A logic level translator / converter / shifter is a great tool, and they're cheap enough to keep several to hand for when you need it next.
To follow along with the example project in the video you will need a few items, the links automatically redirect you to right item on your local Amazon site:
■ TXS0108E Logic Level Shifter: geni.us/TXS010...
■ Raspberry Pi: geni.us/Raspbe...
■ Arduino Uno: geni.us/Arduin...
■ Jumper wires: geni.us/Jumper...
These are some of my favorite tools I use and can recommend:
■ Battery-powered glue gun: geni.us/BoschBa...
■ Bosch Bit Driver: geni.us/Bosch-...
==========
The code, wiring diagram and software instructions can be downloaded from here: www.diymachine...
==========
SAY THANKS:
Provide continual and dependable support through Patreon:
Support us on Patreon: / diymachines
Buy me a coffee to say thanks: ko-fi.com/diym...
SUBSCRIBE:
■ / @diymachines
INSTAGRAM: www.instagram....
FACEBOOK: / diymachines
==========
List of camera and lighting equipment I use:
Sony A7 III: geni.us/Sony-A...
Tamron 28-75mm F2.8 RXD A036SF Lens for Sony-FE : geni.us/Tamron...
Aputure Amaran HR672C: geni.us/Aputur...
Aputure MC: geni.us/FAPGL
RØDE VideoMic Pro+: geni.us/RodeVi...
Blue Snowball iCE: geni.us/BlueSn...
Philips Hue Lightstrip Plus: geni.us/Philip...
Disclaimer:
This video is shared for demonstration purposes only.

Опубликовано:

 

15 окт 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 106   
@julienclerdy2812
@julienclerdy2812 2 года назад
Thank you very much for this clear video. This component is not complex to use and yet, thanks to this video, I have just found the answer to a problem that occupied me for many hours: if I had read correctly that setting OE to GND cut the connection between A and B, I thought that leaving OE floating was sufficient for the LLC to work. Thanks to the video, I connected OE to VA and surprise, it finally works, so I thank you warmly!
@ethanmaxwell4424
@ethanmaxwell4424 2 года назад
My first ever diy computer video after randomly researching higher level logic, I’m surprised I can follow along with this, this is fascinating!
@coc1841
@coc1841 8 месяцев назад
Amazing, Louis de Funès knows how to do voltage level shifting properly.
@hjw5774
@hjw5774 4 месяца назад
Firstly and fore mostly: thank you. Been trying to get a GC9A01 round LCD to work with a logic level shifter and couldn't get it to work. Pulling OE high as per your video worked first time. Thank you :)
@DIYMachines
@DIYMachines 3 месяца назад
Great to hear and you're welcome.
@devinmarx5032
@devinmarx5032 3 года назад
This guy is highly underrated!!!
@DIYMachines
@DIYMachines 3 года назад
Thanks Devin. :)
@rolandberendonck3900
@rolandberendonck3900 3 года назад
Perfect video; very clear explained. Just got these ones in the mail today so you are right on time with this information. Thanks!
@DIYMachines
@DIYMachines 3 года назад
Glad it was helpful!
@AdrianConley
@AdrianConley 2 года назад
This guy has one of the most soothing voices I've heard. Video content is good. Thank you.
@DIYMachines
@DIYMachines 2 года назад
Wow, thank you for the compliment. 😊 You're very welcome.
@Amine-gz7gq
@Amine-gz7gq 9 месяцев назад
I broke the chip when I connected VA to 5V and VB to 3.3V :( : there's a weak voltage on the B side even if I don't connect stuff to the A side. I bought another chip but it doesn't work at all, in the datasheet I saw that OE must be connected to a resistor unlike what you did, do you think that omitting to put a resistor broke the chip?
@GabrielMedina23
@GabrielMedina23 7 месяцев назад
The resistor is included on the breakout board he showed, what isnt clear is that you have to also apply va to that pin. You found out the hard way that A side is the lowest voltage between the two sides
@oreovios306
@oreovios306 Год назад
The best video I've seen today. Thank you.
@RT-fi7rb
@RT-fi7rb Год назад
Great video. It is explained very well. Thank you
@DavidStaMaria-tf6my
@DavidStaMaria-tf6my 3 года назад
I saw that you connected the common ground pin of the logic level converter only to the arduino. Should I also connect it to the ground pin of the Raspi or not? Thanks for this video!
@PrinceP1025
@PrinceP1025 2 года назад
Yes you can, ground is the 0v or the lowest potential and it’s shared along all devices!
@astro8807
@astro8807 8 месяцев назад
All your videos are great thanks. I made a laser engraver and pen plotter inspired by your designs
@DIYMachines
@DIYMachines 6 месяцев назад
That is awesome!
@mackhinastation
@mackhinastation 3 года назад
Really clear explanation! Keep up the awesome work!
@DIYMachines
@DIYMachines 3 года назад
Thanks, will do!
@JoeX92
@JoeX92 6 месяцев назад
question, can I use this LLC for the data pin of an addressable led strip? my data pin output is 3.3v and I need it to be 5v, I get flickering when the cable is too long...
@robertaitken1514
@robertaitken1514 3 года назад
Fantastic video. Saved me hours. Thanks
@DIYMachines
@DIYMachines 3 года назад
Glad it helped and you're welcome.
@AnilArya51
@AnilArya51 3 года назад
Sir, I was waiting for you to upload a video, are you ready with 3d printer project or there are other projects on the list?
@DIYMachines
@DIYMachines 3 года назад
Hello, the next project to be shared (which uses one of these logic level converters - hence the video) is a smart chess board which allows you to play against other people online or against a computer opponent without needing an internet connection. It'll be shared in the next two weeks I hope.
@AnilArya51
@AnilArya51 3 года назад
@@DIYMachines automatic chess board.....😲 Now I get it...
@MA-id9dj
@MA-id9dj 2 года назад
Informative and lovely video. Thanks
@DIYMachines
@DIYMachines Год назад
My pleasure
@gibmirschnell
@gibmirschnell 3 года назад
Excellent explanation. Thanks!
@DIYMachines
@DIYMachines 3 года назад
Glad it was helpful! Thank you.
@adamwalter2573
@adamwalter2573 Год назад
Anything ready-made for driving 5v relay from 3.3v ?
@promods1457
@promods1457 3 года назад
This video was really helpful, thank you so much!
@DIYMachines
@DIYMachines 3 года назад
You're so welcome!
@erikbartmann
@erikbartmann 2 года назад
Great video! But one question. Can I use it bidirectional? I want to use it in a project with the 6502-CPU, which has 5V and a Raspberry Pi Pico with 3,3V for Data-Bus-Communication. So it must work in both directions without repatching cables. Best, Erik
@nkronert
@nkronert 2 года назад
Playing with one of these right now. wondering about maximum bit rates. Will find out soon enough.
@Skyrime007
@Skyrime007 8 месяцев назад
This shifters doesn't keep the current constant with some little amount of load the 5 v drops to 3v
@MphoMashile-p6x
@MphoMashile-p6x 7 месяцев назад
Bro, you said I should connect the OE pin to the common ground but then the diagram has it connected to VccA... I'm lost please enlighten me
@cesarpadilla8358
@cesarpadilla8358 4 месяца назад
connect it to vcc
@jolugama
@jolugama Год назад
ask. a level shifter, it can be connected directly from a 5v 3a mobile charger, and transform it to 3.3v? How many amps does it hold? can I use it for something other than i2c, like a light bulb, what do I know, a sensor without i2c... etc?
@RobertLipe
@RobertLipe Год назад
"Yes" and "not very much at all". If you consult the data sheet on that part you'll see it's like 50mA max for the entire 8-channel part. It's very much for high-speed digital signalling and not a power supply. This is not a low-voltage drop-out regulator like a HT7333 or HT7833. So if your device was something like a 3.3V LCD display and you were tryign to attach it to something ancient that used 5V (oh, a PC printer port) you'd use this to drop the data lines, but to actually power the LCD and light up the 3.3v backlight, you'd still want that HT7333 or similar. Some LCDs have all this built onto the board. I'm just using it as an example with a clear definition between the wiggling signal part vs. the higher current part. For WS2812 (NeoPixels) we often use LLCs for the data pins to get a strong clean signal some distance away from our dainty 3.3V SOCs (like ESP32) but definitely feed the LED power (for brightness that can be seen from the moon from a separate 5v power source.
@jolugama
@jolugama Год назад
@@RobertLipe ooh. Thanks.
@saurabhdhiman718
@saurabhdhiman718 Год назад
Upto what ferequency this level shifter works?
@RobertLipe
@RobertLipe Год назад
"How to fish" answer: Consult the data sheet. Search [ TXS0108E data sheet]. Since it's a digital device with some delays, the specs aren't so much in frequency as in bits per second (BPS) Open-drain performance is, of course, highly dependent upon the timing of your risign and falling edges since there's not a force to drive the signal quickly to either state.
@ll_ubermensch_ll
@ll_ubermensch_ll Год назад
Can I apply a square wave to one of the pins for example o wave 0v-5v and obtain on the other side a square wave of 0v-3.3v?
@aspirin4709
@aspirin4709 Год назад
Same doubt here.I want to detect high frequency square wave having amplitude 5v.. Don't know whether it affects accuracy or not...
@tillytony
@tillytony Год назад
Im migrating a project from an uno to a due as i need a faster cpu and more pwm pins. Im pretty new to all this so will i need a logic level shifter for pwm signals too? Many thanks.
@LucaMenny
@LucaMenny 3 года назад
great video! Could one of this lever shifter be used as voltage converter to trigger 5V relay on 3,3V GIPIO pins?
@petermuller608
@petermuller608 3 года назад
Most relays need a certain current to engage the driver. Therefore I suggest using a MOSFET instead of a logic level converter. Logic level converters are best used for voltage driven communication, not for current driven applications
@demiurgiac
@demiurgiac 2 года назад
Well... that just answered MY question!
@mmshilleh
@mmshilleh Год назад
Really nice explanation of this thank you. Would be nice if you did it with a sensor
@sjorsangevare
@sjorsangevare 2 года назад
Very useful video dude! Thanks!
@DIYMachines
@DIYMachines 2 года назад
No problem!
@sjorsangevare
@sjorsangevare 2 года назад
@@DIYMachines only it doesn't work for me :( it seems like the Arduino isn't sending anything, or the pi isn't receiving anything
@NileshAkhade
@NileshAkhade 2 года назад
Can we use a logic level converter to interface 3.3V MCU with 5V relay? If yes, (a) To both of the pins D5 and Vcc(3.3V) pins? (b) NodeMCU does not have 5V out, can we use an external power supply? If not, what are alternative ways to trigger 5V relay from 3V3 MCU?
@quintanschank7013
@quintanschank7013 3 года назад
Im using this same exach chip with my arduino due(3.3v) to run a speed controller that needs a 5v pwm signal. Is it possible to do it with this chip because i am not getting a voltage out and am connecting all the voltages and wires accordingly.
@petermuller608
@petermuller608 3 года назад
Have you enabled the output?
@mattxiao4308
@mattxiao4308 3 года назад
It's a nice video . I'm newbee into this topic,and face some problem. I'm trying to get output of 3.3V from input of 5V. Problem is, whenever i apply VB to 5V then i get the same voltage on all pins of this side. Same problem occure at other side also. Can anyone explain me, why is it so? Thanks.
@oliverbroad4433
@oliverbroad4433 2 года назад
The pins of the TXS0108E will "float" to the positive supply unless driven low. On the similar part TXB0108E the pins will hold their current state (high or low) unless driven.
@fabianmenekshi1733
@fabianmenekshi1733 3 года назад
Hi Lewis! I am doing the cnc plotter project. I accidentally bought the a4988 motor driver instead of the tmc2208. Would that cause a problem? If so what should I do to get it working with these ones because I have to present this as my school project in 2 days?
@DIYMachines
@DIYMachines 3 года назад
Hi, you should be OK but the TMC2209 is worth it. I've replied to your Discord message on Discord. :)
@dibyojyotibhattacherjee897
@dibyojyotibhattacherjee897 2 года назад
@@DIYMachines Hey man, it would be an honor if I could get the link to your discord server 🙏👍👍
@geoffkelland5606
@geoffkelland5606 2 года назад
Hi Lewis, I need a device that will convert a 3.3v PWM signal to a 5v PWM signal. For example, a 75% of 3.3v duty cycle to a 75% of 5v duty cycle. Is there a product that can do this?
@gerardjuravich280
@gerardjuravich280 2 года назад
Can you help point me in the right direction. I am getting 0 level output using a TXS0108E between an Arduino and ESP32. The connection seems so obvious. The VA and VB are connected to 3.3 and 5.0. When I try to drive a high signal either direction through one of the channels, I read 0V on the channel output. The OE is tied to 3.3V. Is there something obvious I am missing?
@jelenobobak1662
@jelenobobak1662 Год назад
Hi, I found Power Supply Recommendations in the datasheet for this chip -> During operation, ensure that VCCA ≤ VCCB at all times. If I tied VA to 5V, VB to 3.3V and OE to 3.3V, the chip didn’t work and I had 0V on the outputs. Once I tied VA to 3.3V , OE to 3.3V and VB to 5V the chip worked as it should. Hope it helps.
@user-jz4ge4fk6s
@user-jz4ge4fk6s 2 месяца назад
VA I gave to 3.3v Vb 5v, OE 3.3v IC TXS0108E is still not working, 2 ics i tried any help?
@aspirin4709
@aspirin4709 Год назад
Hai sir, Can i use this module to detect high frequency square wave having amplitude 5v?Will it affect accuracy?
@mustahsanalikhan2221
@mustahsanalikhan2221 Месяц назад
Is there any chip that can go from 1.8 to 5v?
@eclecticlife
@eclecticlife 2 года назад
Hi Lewis, thank you for your videos. I am still waiting for you to come up with an autonomous robotic mower. I know you can do it!
@DIYMachines
@DIYMachines 2 года назад
Hi John, I'm slowly getting around to it. In a video soon I'll be tearing down a robot vac to see how that works so I can build my own version of a robot vacuum cleaner. The next obvious choice after that would be the lawn mower. : ) Hang in there, it will happen!
@PegasusCZ
@PegasusCZ 2 года назад
Well explained! Thank you very much!
@oromis995
@oromis995 3 года назад
would this specific chip work between an esp8266 and an arduino mega?
@DIYMachines
@DIYMachines 3 года назад
Yes, connect the ESP8266 on the 3.3v side (where the Pi is in the example project) and the Arduino mega on the 5v side.
@TheTubejunky
@TheTubejunky 3 года назад
@@DIYMachines Could I use this chip to power 5v devices (attached to the 5v rail/side) and control them using Esp8266's 3.3v logic as input on the Aside? OR should I just use transistors, mosfets, or optocouplers instead. I take it the chips current ratings aren't enough for some devices though.
@petermuller608
@petermuller608 3 года назад
@@TheTubejunky logic level translators are used for translating between different logic levels, not for powering devices. What you are looking for is a boost converter for stepping up the voltage
@elektron2kim666
@elektron2kim666 6 месяцев назад
I got stuck with my PS/2 keyboard module made from scratch and went back to this video where I missed the OE function. It's always back and forth until all wires are up and running.
@panagiotissavvidis8271
@panagiotissavvidis8271 8 месяцев назад
For a Jetson nano Tx pin of 1.8v translated to 3.3v my MCU asks for, what voltage VA should require?
@GabrielMedina23
@GabrielMedina23 7 месяцев назад
Keep the lowest voltage on the A side, and the oa uses that voltage as well
@panagiotissavvidis8271
@panagiotissavvidis8271 7 месяцев назад
@@GabrielMedina23Thank you
@techplanethk
@techplanethk 2 года назад
Thanks for the video
@DIYMachines
@DIYMachines 2 года назад
No problem!
@jugnu361
@jugnu361 5 месяцев назад
Thanks
@rsbehrends
@rsbehrends 3 года назад
Hi there! Sorry if this is not the place. I'm newbe into this topic :). I'm setting up TXS0108E along with a I2C for a LCD 2004 over a Raspy PI 4. The problem is that when i use TXS there is noise and looks unstable. Actually i was not able to send data to the LCD. However, if i do connect I2C directly, with no TXS it works like a charm. I tried several options like connecting OE to 3.3V directly, using a 10k resistance, using GND. But almost all combinations lead into noise. I can confirm i connected 3.3V into the VA and 5V into VB. SDA1 and SCL1 connected to the A side. And the I2C is connected on the B side. Any help will be appreciated. I'm on this because i read that not using this logical conversion may cause damage to the PI. Please let me know if this is wrong. Thanks again!
@claudioquintanilla1471
@claudioquintanilla1471 3 года назад
I had the same problem interfacing a Rpi Zero with a TTL serial comunication (IEC interface) TXS chip it's so sensible that cause problems, due to crosstalk over serial communication, I solved it using a twisted pair cable (like UTP network lan) so I connected one cable (of the pair twisted) to GND and the other one to data signal comunication. In that way, I solved the interference issues.
@asdavid1415
@asdavid1415 3 года назад
@@claudioquintanilla1471 Thank you for reminding me. I seem to have solved the problem
@sanskritisawant6161
@sanskritisawant6161 3 года назад
thank you this one's usefull!
@DIYMachines
@DIYMachines 3 года назад
You're welcome!
@pokpikchan
@pokpikchan Год назад
Nice video thanx
@DIYMachines
@DIYMachines Год назад
Most welcome
@andrewm1967
@andrewm1967 10 месяцев назад
is this the same as a I2C level shifter?
@Amine-gz7gq
@Amine-gz7gq 9 месяцев назад
yes
@luizazeredo5197
@luizazeredo5197 2 года назад
Adc analog signal?
@parsaansari
@parsaansari 3 года назад
Hey Lewis, I tried reaching out to you through the RU-vid comments of the CNC video, Instructables comments, and through email but I haven't heard back. I would really appreciate it if you could take a look because I was really excited about making the CNC machine. Thank you.
@DIYMachines
@DIYMachines 3 года назад
Hi Parsa, sorry I get a lot of messages. But I have responded to you over on Instructables. :)
@gedtoon6451
@gedtoon6451 Год назад
For the TXS0108E to provide level shifting, the OE pin needs to be connected to 3.3v. This was not made clear in your video.
@user-jz4ge4fk6s
@user-jz4ge4fk6s 2 месяца назад
Va I connected to 3.3 v and Vb to 5v, OE I gave to 3.3v. Still its not working 2 ICs i tried can you help?
@makewithmegma
@makewithmegma 3 года назад
🔥❤👍
@DIYMachines
@DIYMachines 3 года назад
Thank you.
@makewithmegma
@makewithmegma 3 года назад
@@DIYMachines 👍
@Ouchie
@Ouchie 3 года назад
I used to think that logic level converters and buck converter are the same think.
@DIYMachines
@DIYMachines 3 года назад
There are so many different converters! :) I always need to check which is which when thinking about buck converters, boost converters, buck boost converter, DC to DC converters, Rectifiers, Regulators, etc (some of these are the same thing with different names)....
@ooseven4696
@ooseven4696 3 года назад
Man, you are a hero, this video saved my day
@DIYMachines
@DIYMachines 3 года назад
I'm really glad it helped you out. :)
Далее
Translating 3.3 V to 5 V
29:05
Просмотров 76 тыс.
Cole Palmer Revenge vs Man City 🥶
00:20
Просмотров 1,1 млн
Are I2C Level Shifters Really Too Slow?
15:56
Просмотров 13 тыс.
Hacking a weird TV censoring device
20:59
Просмотров 3,1 млн
Flawless PCB design: RF rules of thumb - Part 1
15:45
Logic Level Shifter and WS2812b LEDs
9:55
Просмотров 56 тыс.
Cole Palmer Revenge vs Man City 🥶
00:20
Просмотров 1,1 млн