Logic Level Converters - Learn & Example Project - TXS0108E

Поделиться
HTML-код
  • Опубликовано: 6 мар 2021
  • 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/TXS0108E-Shifter
    ■ Raspberry Pi: geni.us/RaspberryPiV4
    ■ Arduino Uno: geni.us/ArduinoUno
    ■ Jumper wires: geni.us/JumperWires
    These are some of my favorite tools I use and can recommend:
    ■ Battery-powered glue gun: geni.us/BoschBatteryGlueGun
    ■ Bosch Bit Driver: geni.us/Bosch-Screwdriver
    ==========
    The code, wiring diagram and software instructions can be downloaded from here: www.diymachines.co.uk/tsx0108...
    ==========
    SAY THANKS:
    Provide continual and dependable support through Patreon:
    Support us on Patreon: / diymachines
    Buy me a coffee to say thanks: ko-fi.com/diymachines
    SUBSCRIBE:
    ■ / @diymachines
    INSTAGRAM: diy_machine...
    FACEBOOK: / diymachines
    ==========
    List of camera and lighting equipment I use:
    Sony A7 III: geni.us/Sony-Alpha7-III
    Tamron 28-75mm F2.8 RXD A036SF Lens for Sony-FE : geni.us/TamronRXD-28-75mm
    Aputure Amaran HR672C: geni.us/AputureAmaranHR672C
    Aputure MC: geni.us/FAPGL
    RØDE VideoMic Pro+: geni.us/RodeVideoMic-ProPlus
    Blue Snowball iCE: geni.us/BlueSnowball-iCE
    Philips Hue Lightstrip Plus: geni.us/PhilipsHue-LightStrip
    Disclaimer:
    This video is shared for demonstration purposes only.
  • ХоббиХобби

Комментарии • 103

  • @ethanmaxwell4424
    @ethanmaxwell4424 2 года назад +1

    My first ever diy computer video after randomly researching higher level logic, I’m surprised I can follow along with this, this is fascinating!

  • @julienclerdy2812
    @julienclerdy2812 2 года назад +3

    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!

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

  • @oreovios306
    @oreovios306 Год назад

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

  • @RT-fi7rb
    @RT-fi7rb Год назад +1

    Great video. It is explained very well. Thank you

  • @coc1841
    @coc1841 5 месяцев назад +1

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

  • @mackhinastation
    @mackhinastation 3 года назад +1

    Really clear explanation! Keep up the awesome work!

  • @PegasusCZ
    @PegasusCZ 2 года назад

    Well explained! Thank you very much!

  • @promods1457
    @promods1457 3 года назад +1

    This video was really helpful, thank you so much!

  • @gibmirschnell
    @gibmirschnell 3 года назад +2

    Excellent explanation. Thanks!

    • @DIYMachines
      @DIYMachines  3 года назад

      Glad it was helpful! Thank you.

  • @robertaitken1514
    @robertaitken1514 2 года назад +1

    Fantastic video. Saved me hours. Thanks

    • @DIYMachines
      @DIYMachines  2 года назад

      Glad it helped and you're welcome.

  • @MA-id9dj
    @MA-id9dj Год назад +1

    Informative and lovely video. Thanks

  • @hjw5774
    @hjw5774 Месяц назад +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  14 дней назад

      Great to hear and you're welcome.

  • @astro8807
    @astro8807 5 месяцев назад +1

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

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

  • @mmshilleh
    @mmshilleh 9 месяцев назад

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

  • @devinmarx5032
    @devinmarx5032 3 года назад +1

    This guy is highly underrated!!!

  • @techplanethk
    @techplanethk 2 года назад +1

    Thanks for the video

  • @sanskritisawant6161
    @sanskritisawant6161 3 года назад +1

    thank you this one's usefull!

  • @pokpikchan
    @pokpikchan 9 месяцев назад +1

    Nice video thanx

  • @nkronert
    @nkronert Год назад

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

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

  • @jugnu361
    @jugnu361 2 месяца назад +1

    Thanks

  • @AdrianConley
    @AdrianConley 2 года назад +1

    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.

  • @JoeX92
    @JoeX92 3 месяца назад

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

  • @aspirin4709
    @aspirin4709 Год назад

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

  • @adamwalter2573
    @adamwalter2573 Год назад +1

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

  • @tillytony
    @tillytony 11 месяцев назад

    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?

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

  • @sagardebnath1102
    @sagardebnath1102 5 месяцев назад +1

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

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

  • @LucaMenny
    @LucaMenny 2 года назад +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 2 года назад +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!

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

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

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

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

  • @elektron2kim666
    @elektron2kim666 3 месяца назад

    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.

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

  • @mattxiao4308
    @mattxiao4308 2 года назад +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.

  • @luizazeredo5197
    @luizazeredo5197 2 года назад

    Adc analog signal?

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

  • @Amine-gz7gq
    @Amine-gz7gq 6 месяцев назад +1

    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 4 месяца назад

      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

  • @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 9 месяцев назад +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 9 месяцев назад

      @@RobertLipe ooh. Thanks.

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

  • @panagiotissavvidis8271
    @panagiotissavvidis8271 5 месяцев назад

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

    • @GabrielMedina23
      @GabrielMedina23 4 месяца назад

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

    • @panagiotissavvidis8271
      @panagiotissavvidis8271 4 месяца назад

      @@GabrielMedina23Thank you

  • @saurabhdhiman718
    @saurabhdhiman718 Год назад +1

    Upto what ferequency this level shifter works?

    • @RobertLipe
      @RobertLipe 9 месяцев назад

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

  • @user-hk1wj8hg6k
    @user-hk1wj8hg6k 3 месяца назад +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

  • @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 7 месяцев назад

    is this the same as a I2C level shifter?

  • @parsaansari
    @parsaansari 3 года назад

    Hey Lewis, I tried reaching out to you through the RUclips 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 года назад +1

    🔥❤👍

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

  • @gedtoon6451
    @gedtoon6451 10 месяцев назад +2

    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.

  • @ooseven4696
    @ooseven4696 2 года назад +3

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

    • @DIYMachines
      @DIYMachines  2 года назад

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