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!
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 :)
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?
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
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!
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
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?
"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.
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...
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 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.
@@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
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.
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!
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
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.
"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.
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.
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?
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.
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.
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.
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?
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?
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.
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!
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.
Hey Lewis, I tried reaching out to you through the UA-cam 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.
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)....
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!
My first ever diy computer video after randomly researching higher level logic, I’m surprised I can follow along with this, this is fascinating!
Amazing, Louis de Funès knows how to do voltage level shifting properly.
This guy has one of the most soothing voices I've heard. Video content is good. Thank you.
Wow, thank you for the compliment. 😊 You're very welcome.
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 :)
Great to hear and you're welcome.
This guy is highly underrated!!!
Thanks Devin. :)
The best video I've seen today. Thank you.
Perfect video; very clear explained. Just got these ones in the mail today so you are right on time with this information. Thanks!
Glad it was helpful!
Great video. It is explained very well. Thank you
All your videos are great thanks. I made a laser engraver and pen plotter inspired by your designs
That is awesome!
Fantastic video. Saved me hours. Thanks
Glad it helped and you're welcome.
Really clear explanation! Keep up the awesome work!
Thanks, will do!
Excellent explanation. Thanks!
Glad it was helpful! Thank you.
Informative and lovely video. Thanks
My pleasure
Very useful video dude! Thanks!
No problem!
@@DIYMachines only it doesn't work for me :( it seems like the Arduino isn't sending anything, or the pi isn't receiving anything
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?
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
Anything ready-made for driving 5v relay from 3.3v ?
This video was really helpful, thank you so much!
You're so welcome!
Well explained! Thank you very much!
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!
Yes you can, ground is the 0v or the lowest potential and it’s shared along all devices!
great video! Could one of this lever shifter be used as voltage converter to trigger 5V relay on 3,3V GIPIO pins?
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
Well... that just answered MY question!
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?
"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.
@@RobertLipe ooh. Thanks.
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...
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?
Hi, you should be OK but the TMC2209 is worth it. I've replied to your Discord message on Discord. :)
@@DIYMachines Hey man, it would be an honor if I could get the link to your discord server 🙏👍👍
would this specific chip work between an esp8266 and an arduino mega?
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.
@@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.
@@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
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?
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.
@@DIYMachines automatic chess board.....😲
Now I get it...
Playing with one of these right now. wondering about maximum bit rates. Will find out soon enough.
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?
Same doubt here.I want to detect high frequency square wave having amplitude 5v.. Don't know whether it affects accuracy or not...
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
connect it to vcc
Nice video thanx
Most welcome
Thanks for the video
No problem!
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!
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!
Really nice explanation of this thank you. Would be nice if you did it with a sensor
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
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.
Upto what ferequency this level shifter works?
"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.
This shifters doesn't keep the current constant with some little amount of load the 5 v drops to 3v
beautiful!
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.
Have you enabled the output?
thank you this one's usefull!
You're welcome!
Is there any chip that can go from 1.8 to 5v?
Hai sir, Can i use this module to detect high frequency square wave having amplitude 5v?Will it affect accuracy?
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?
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.
VA I gave to 3.3v Vb 5v, OE 3.3v
IC TXS0108E is still not working, 2 ics i tried any help?
For a Jetson nano Tx pin of 1.8v translated to 3.3v my MCU asks for, what voltage VA should require?
Keep the lowest voltage on the A side, and the oa uses that voltage as well
@@GabrielMedina23Thank you
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.
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.
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?
Thanks
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?
Hi, I have the same question as you, do you have the answer yet?
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.
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!
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.
@@claudioquintanilla1471 Thank you for reminding me. I seem to have solved the problem
is this the same as a I2C level shifter?
yes
Adc analog signal?
🔥❤👍
Thank you.
@@DIYMachines 👍
Hey Lewis, I tried reaching out to you through the UA-cam 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.
Hi Parsa, sorry I get a lot of messages. But I have responded to you over on Instructables. :)
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.
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?
I used to think that logic level converters and buck converter are the same think.
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)....
Man, you are a hero,
this video saved my day
I'm really glad it helped you out. :)