No video

Logic Level Converters - Learn & Example Project - TXS0108E

  Рет қаралды 55,959

DIY Machines

DIY Machines

Күн бұрын

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.

Пікірлер: 105
@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!
@coc1841
@coc1841 6 ай бұрын
Amazing, Louis de Funès knows how to do voltage level shifting properly.
@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!
@hjw5774
@hjw5774 2 ай бұрын
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 Ай бұрын
Great to hear and you're welcome.
@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.
@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!
@oreovios306
@oreovios306 Жыл бұрын
The best video I've seen today. Thank you.
@astro8807
@astro8807 7 ай бұрын
All your videos are great thanks. I made a laser engraver and pen plotter inspired by your designs
@DIYMachines
@DIYMachines 5 ай бұрын
That is awesome!
@RT-fi7rb
@RT-fi7rb Жыл бұрын
Great video. It is explained very well. Thank you
@robertaitken1514
@robertaitken1514 3 жыл бұрын
Fantastic video. Saved me hours. Thanks
@DIYMachines
@DIYMachines 3 жыл бұрын
Glad it helped and you're welcome.
@gibmirschnell
@gibmirschnell 3 жыл бұрын
Excellent explanation. Thanks!
@DIYMachines
@DIYMachines 3 жыл бұрын
Glad it was helpful! Thank you.
@MA-id9dj
@MA-id9dj Жыл бұрын
Informative and lovely video. Thanks
@DIYMachines
@DIYMachines Жыл бұрын
My pleasure
@Skyrime007
@Skyrime007 7 ай бұрын
This shifters doesn't keep the current constant with some little amount of load the 5 v drops to 3v
@adamwalter2573
@adamwalter2573 Жыл бұрын
Anything ready-made for driving 5v relay from 3.3v ?
@mackhinastation
@mackhinastation 3 жыл бұрын
Really clear explanation! Keep up the awesome work!
@DIYMachines
@DIYMachines 3 жыл бұрын
Thanks, will do!
@promods1457
@promods1457 3 жыл бұрын
This video was really helpful, thank you so much!
@DIYMachines
@DIYMachines 3 жыл бұрын
You're so welcome!
@jugnu361
@jugnu361 3 ай бұрын
Thanks
@PegasusCZ
@PegasusCZ 2 жыл бұрын
Well explained! Thank you very much!
@gedtoon6451
@gedtoon6451 11 ай бұрын
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 Ай бұрын
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?
@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
@Amine-gz7gq
@Amine-gz7gq 7 ай бұрын
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 5 ай бұрын
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
@pokpikchan
@pokpikchan 11 ай бұрын
Nice video thanx
@DIYMachines
@DIYMachines 10 ай бұрын
Most welcome
@JoeX92
@JoeX92 4 ай бұрын
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...
@mmshilleh
@mmshilleh 10 ай бұрын
Really nice explanation of this thank you. Would be nice if you did it with a sensor
@elektron2kim666
@elektron2kim666 5 ай бұрын
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.
@user-hk1wj8hg6k
@user-hk1wj8hg6k 5 ай бұрын
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 3 ай бұрын
connect it to vcc
@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!
@nkronert
@nkronert 2 жыл бұрын
Playing with one of these right now. wondering about maximum bit rates. Will find out soon enough.
@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 10 ай бұрын
"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 10 ай бұрын
@@RobertLipe ooh. Thanks.
@techplanethk
@techplanethk 2 жыл бұрын
Thanks for the video
@DIYMachines
@DIYMachines 2 жыл бұрын
No problem!
@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...
@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!
@saurabhdhiman718
@saurabhdhiman718 Жыл бұрын
Upto what ferequency this level shifter works?
@RobertLipe
@RobertLipe 10 ай бұрын
"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.
@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 2 жыл бұрын
Have you enabled the output?
@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 2 жыл бұрын
@@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
@sanskritisawant6161
@sanskritisawant6161 3 жыл бұрын
thank you this one's usefull!
@DIYMachines
@DIYMachines 3 жыл бұрын
You're welcome!
@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.
@panagiotissavvidis8271
@panagiotissavvidis8271 6 ай бұрын
For a Jetson nano Tx pin of 1.8v translated to 3.3v my MCU asks for, what voltage VA should require?
@GabrielMedina23
@GabrielMedina23 5 ай бұрын
Keep the lowest voltage on the A side, and the oa uses that voltage as well
@panagiotissavvidis8271
@panagiotissavvidis8271 5 ай бұрын
@@GabrielMedina23Thank you
@LucaMenny
@LucaMenny 2 жыл бұрын
great video! Could one of this lever shifter be used as voltage converter to trigger 5V relay on 3,3V GIPIO pins?
@petermuller608
@petermuller608 2 жыл бұрын
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!
@erikbartmann
@erikbartmann Жыл бұрын
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
@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 🙏👍👍
@aspirin4709
@aspirin4709 Жыл бұрын
Hai sir, Can i use this module to detect high frequency square wave having amplitude 5v?Will it affect accuracy?
@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.
@NileshAkhade
@NileshAkhade Жыл бұрын
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?
@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 Жыл бұрын
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 Ай бұрын
VA I gave to 3.3v Vb 5v, OE 3.3v IC TXS0108E is still not working, 2 ics i tried any help?
@andrewm1967
@andrewm1967 8 ай бұрын
is this the same as a I2C level shifter?
@Amine-gz7gq
@Amine-gz7gq 8 ай бұрын
yes
@luizazeredo5197
@luizazeredo5197 2 жыл бұрын
Adc analog signal?
@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
@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)....
@parsaansari
@parsaansari 3 жыл бұрын
Hey Lewis, I tried reaching out to you through the KZfaq 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. :)
@makewithmegma
@makewithmegma 3 жыл бұрын
🔥❤👍
@DIYMachines
@DIYMachines 3 жыл бұрын
Thank you.
@makewithmegma
@makewithmegma 3 жыл бұрын
@@DIYMachines 👍
@ooseven4696
@ooseven4696 3 жыл бұрын
Man, you are a hero, this video saved my day
@DIYMachines
@DIYMachines 3 жыл бұрын
I'm really glad it helped you out. :)
Are I2C Level Shifters Really Too Slow?
15:56
ResinChem Tech
Рет қаралды 12 М.
Build a Sisyphus MAGIC SAND Coffee Table - Arduino | Pi | 3D Printed
30:24
ROLLING DOWN
00:20
Natan por Aí
Рет қаралды 11 МЛН
Can This Bubble Save My Life? 😱
00:55
Topper Guild
Рет қаралды 84 МЛН
Translating 3.3 V to 5 V
29:05
MrCircuitMatt
Рет қаралды 75 М.
Logic Level Shifter and WS2812b LEDs
9:55
ResinChem Tech
Рет қаралды 54 М.
Build a DIGITAL MAGIC MIRROR - Full Tutorial
24:26
DIY Machines
Рет қаралды 199 М.
Build an AMAZING kinetic sand art table - Part 2
30:08
DIY Machines
Рет қаралды 97 М.
MOSFETs Drivers and Bootstrap - Types, Logic Level and More
12:46
Electronoobs
Рет қаралды 69 М.
Top Fifteen Mistakes People Make When Designing Prototype PCBs
12:26
Cosplay Light and Sound
Рет қаралды 147 М.
ROLLING DOWN
00:20
Natan por Aí
Рет қаралды 11 МЛН