Logic Level Converters - Learn & Example Project - TXS0108E

Поділитися
Вставка
  • Опубліковано 25 гру 2024

КОМЕНТАРІ • 108

  • @julienclerdy2812
    @julienclerdy2812 2 роки тому +6

    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 3 роки тому +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 10 місяців тому +1

    Amazing, Louis de Funès knows how to do voltage level shifting properly.

  • @AdrianConley
    @AdrianConley 3 роки тому +1

    This guy has one of the most soothing voices I've heard. Video content is good. Thank you.

    • @DIYMachines
      @DIYMachines  3 роки тому

      Wow, thank you for the compliment. 😊 You're very welcome.

  • @hjw5774
    @hjw5774 6 місяців тому +1

    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  5 місяців тому

      Great to hear and you're welcome.

  • @devinmarx5032
    @devinmarx5032 3 роки тому +1

    This guy is highly underrated!!!

  • @oreovios306
    @oreovios306 Рік тому

    The best video I've seen today. Thank you.

  • @rolandberendonck3900
    @rolandberendonck3900 3 роки тому +1

    Perfect video; very clear explained. Just got these ones in the mail today so you are right on time with this information. Thanks!

  • @RT-fi7rb
    @RT-fi7rb Рік тому +1

    Great video. It is explained very well. Thank you

  • @astro8807
    @astro8807 11 місяців тому +1

    All your videos are great thanks. I made a laser engraver and pen plotter inspired by your designs

  • @robertaitken1514
    @robertaitken1514 3 роки тому +1

    Fantastic video. Saved me hours. Thanks

    • @DIYMachines
      @DIYMachines  3 роки тому

      Glad it helped and you're welcome.

  • @mackhinastation
    @mackhinastation 3 роки тому +1

    Really clear explanation! Keep up the awesome work!

  • @gibmirschnell
    @gibmirschnell 3 роки тому +2

    Excellent explanation. Thanks!

    • @DIYMachines
      @DIYMachines  3 роки тому

      Glad it was helpful! Thank you.

  • @MA-id9dj
    @MA-id9dj 2 роки тому +1

    Informative and lovely video. Thanks

  • @sjorsangevare
    @sjorsangevare 2 роки тому +1

    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 11 місяців тому +2

    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 10 місяців тому +1

      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

  • @adamwalter2573
    @adamwalter2573 Рік тому +1

    Anything ready-made for driving 5v relay from 3.3v ?

  • @promods1457
    @promods1457 3 роки тому +1

    This video was really helpful, thank you so much!

  • @PegasusCZ
    @PegasusCZ 2 роки тому

    Well explained! Thank you very much!

  • @DavidStaMaria-tf6my
    @DavidStaMaria-tf6my 3 роки тому +2

    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!

  • @LucaMenny
    @LucaMenny 3 роки тому +1

    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 роки тому +1

      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!

  • @jolugama
    @jolugama Рік тому +1

    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 Рік тому +1

      "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.

  • @JoeX92
    @JoeX92 8 місяців тому

    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...

  • @fabianmenekshi1733
    @fabianmenekshi1733 3 роки тому +1

    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 🙏👍👍

  • @oromis995
    @oromis995 3 роки тому +2

    would this specific chip work between an esp8266 and an arduino mega?

    • @DIYMachines
      @DIYMachines  3 роки тому +2

      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

  • @AnilArya51
    @AnilArya51 3 роки тому +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 роки тому +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 роки тому +2

      @@DIYMachines automatic chess board.....😲
      Now I get it...

  • @nkronert
    @nkronert 2 роки тому

    Playing with one of these right now. wondering about maximum bit rates. Will find out soon enough.

  • @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 Рік тому +2

      Same doubt here.I want to detect high frequency square wave having amplitude 5v.. Don't know whether it affects accuracy or not...

  • @MphoMashile-p6x
    @MphoMashile-p6x 9 місяців тому +1

    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

  • @pokpikchan
    @pokpikchan Рік тому +1

    Nice video thanx

  • @techplanethk
    @techplanethk 2 роки тому +1

    Thanks for the video

  • @eclecticlife
    @eclecticlife 2 роки тому +1

    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 роки тому +1

      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!

  • @mmshilleh
    @mmshilleh Рік тому

    Really nice explanation of this thank you. Would be nice if you did it with a sensor

  • @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

  • @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.

  • @saurabhdhiman718
    @saurabhdhiman718 Рік тому +1

    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.

  • @Skyrime007
    @Skyrime007 11 місяців тому +1

    This shifters doesn't keep the current constant with some little amount of load the 5 v drops to 3v

  • @arditosuni
    @arditosuni 6 днів тому

    beautiful!

  • @quintanschank7013
    @quintanschank7013 3 роки тому +1

    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.

  • @sanskritisawant6161
    @sanskritisawant6161 3 роки тому +1

    thank you this one's usefull!

  • @mustahsanalikhan2221
    @mustahsanalikhan2221 3 місяці тому

    Is there any chip that can go from 1.8 to 5v?

  • @aspirin4709
    @aspirin4709 Рік тому

    Hai sir, Can i use this module to detect high frequency square wave having amplitude 5v?Will it affect accuracy?

  • @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 2 роки тому

      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 5 місяців тому

      VA I gave to 3.3v Vb 5v, OE 3.3v
      IC TXS0108E is still not working, 2 ics i tried any help?

  • @panagiotissavvidis8271
    @panagiotissavvidis8271 10 місяців тому

    For a Jetson nano Tx pin of 1.8v translated to 3.3v my MCU asks for, what voltage VA should require?

    • @GabrielMedina23
      @GabrielMedina23 10 місяців тому

      Keep the lowest voltage on the A side, and the oa uses that voltage as well

    • @panagiotissavvidis8271
      @panagiotissavvidis8271 10 місяців тому

      @@GabrielMedina23Thank you

  • @mattxiao4308
    @mattxiao4308 3 роки тому +1

    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.

  • @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?

  • @jugnu361
    @jugnu361 7 місяців тому +1

    Thanks

  • @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?

    • @giangvo0609
      @giangvo0609 Місяць тому

      Hi, I have the same question as you, do you have the answer yet?

  • @elektron2kim666
    @elektron2kim666 9 місяців тому

    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.

  • @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

  • @andrewm1967
    @andrewm1967 Рік тому

    is this the same as a I2C level shifter?

  • @luizazeredo5197
    @luizazeredo5197 2 роки тому

    Adc analog signal?

  • @makewithmegma
    @makewithmegma 3 роки тому +1

    🔥❤👍

  • @parsaansari
    @parsaansari 3 роки тому

    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.

    • @DIYMachines
      @DIYMachines  3 роки тому

      Hi Parsa, sorry I get a lot of messages. But I have responded to you over on Instructables. :)

  • @gedtoon6451
    @gedtoon6451 Рік тому +4

    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 5 місяців тому

      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?

  • @Ouchie
    @Ouchie 3 роки тому +1

    I used to think that logic level converters and buck converter are the same think.

    • @DIYMachines
      @DIYMachines  3 роки тому +1

      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 роки тому +3

    Man, you are a hero,
    this video saved my day

    • @DIYMachines
      @DIYMachines  3 роки тому

      I'm really glad it helped you out. :)