Using a Logic Level Converter to connect 3.3V modules safely to an Arduino

แชร์
ฝัง
  • เผยแพร่เมื่อ 17 ม.ค. 2018
  • Just a quick video on how to use a Logic Level Converter to connect 3.3V modules safely to an Arduino.
    Follow us on Facebook and Twitter to get notified when I post new stuff!
    Facebook: / brainybits
    Twitter: / brainy_bit
    You can find more information about our tutorials on our website: brainy-bits.com/tutorials
  • วิทยาศาสตร์และเทคโนโลยี

ความคิดเห็น • 28

  • @lawrencelawrence1045
    @lawrencelawrence1045 5 ปีที่แล้ว +2

    It's a clear explanation of how they network together.

  • @lindascoon4652
    @lindascoon4652 3 ปีที่แล้ว

    Thank you for this short straightforward video that got right to the point.

  • @smickandily
    @smickandily 3 ปีที่แล้ว +1

    Awesome explanation my man! Thanks for the content, very helpful, keep it up!

  • @alexeismenendez9354
    @alexeismenendez9354 5 ปีที่แล้ว +6

    I like the way you explain, very simple. Direct to the information needed. I suscribe.

    • @BrainybitsCanada
      @BrainybitsCanada  5 ปีที่แล้ว +1

      Always great to hear the tutorials are helping others. Thanks for the sub and for watching!

    • @smickandily
      @smickandily 3 ปีที่แล้ว

      I too!

  • @anbdesign
    @anbdesign 6 ปีที่แล้ว +1

    fantastic explanation. thank you!

  • @Ziplock9000
    @Ziplock9000 5 ปีที่แล้ว

    Thank you for clarifying the differences between 3.3V/5v power versus logic. Liked and subbed. I would just add that not all modules are 4 channels, which you need for I2C or SPI

    • @BrainybitsCanada
      @BrainybitsCanada  5 ปีที่แล้ว

      Thank you for taking the time to comment about the modules and for watching of course!

  • @woolfy02
    @woolfy02 ปีที่แล้ว

    Thanks! Just what I was looking for. Great explanation

  • @raygun310
    @raygun310 3 ปีที่แล้ว +1

    Hello, I have a question. If the two devices I'm connecting both have their own power supplies, does that means I only have to wire their GND and communication pins? Or do I still have to wire both their power pins to the shifter?

  • @GAment_11
    @GAment_11 4 ปีที่แล้ว

    Can this also be used for level shifting when sent across i2c?

  • @SzDavidHUN
    @SzDavidHUN 6 ปีที่แล้ว +4

    Somehow all my 3.3V stuff needs to work with 5V level stuff. If I use 5V mcu, I'll need 3.3V stuff, if I use 3.3V mcu, I'll need 5V stuff :D
    This guy says can read 3.3V but write 5V. What this mean and wyh? Glad you asked:
    Logic level converters sometimes aren't neccesary.
    For example the i2c bus: if your master have lower logic level, 3.3V, and your other device is 5V. There shouldn't be problem, if you power the bus with the lower level, the devices work by pulling the lines to ground, and both devices _should_ detect the low and high states. You'll be out of specs, because the high level usually should be at least bit higher than 3.3V. In case of atmel328p (arduino uno) at vcc=5.0 volt it is 3.5V. With a bit of luck it'll work just fine. At worst, it won't work, but no damage to your circuits.
    The other example would be a one way SPI. Your SPI master is 3.3V, and slave is 5V. If you don't connect the MISO pin, there are only signals going from your master (lower level) to your slave (higher level). If the slave works with this, there shouldn't be a problem. All 5V devices I tried works fine with 3.3V logic. Wouldn't put into a production item, but for my purposes it is okay.
    The same applies to UART too. A 3.3V TX can be connected to a 5V RX. In reverse it may not be true. If your device is not 5V tolerant, you'll fry your stuff, you need a level converter to prevent it.
    And there are the 5V tolerant devices, which are requires vcc=3.3V (the main power input), but can accept logic levels up to 5V.

  • @RavikumarG
    @RavikumarG 5 ปีที่แล้ว

    Alright cool video, As someone pointed out in comments, for Mega and similar boards, because the logical high is bit higher than the cut off 3V, it works fine but I am using strictly 5V MC STM32L4 board, without level shifter, My board won't even detect signal from GPS module which works at 3.3V. This video was helpful.

  • @Hutzpahh
    @Hutzpahh 5 ปีที่แล้ว

    Wow, A big thanks I finally got it.

  • @twinsdad6813
    @twinsdad6813 4 ปีที่แล้ว

    Hello, what is the advantage of using a logic level module over a simple voltage divider which only requires 2 resistors on the arduino TX to module RX line?

  • @edwinnajera6237
    @edwinnajera6237 5 ปีที่แล้ว

    Great video sir! I have a question for a project I am working on, I am using an ODROID-XU4 and it transmits a 1.8Volts, and I need to connect arduinos to do a certain job, can I still use the same voltage shifter?

    • @BrainybitsCanada
      @BrainybitsCanada  5 ปีที่แล้ว

      The voltage shifter used in this tutorial woul work with 2.8v and 1.8v as well. Not sure if all of them do but you can check the specs of the one you get to make sure. Here's one that does: goo.gl/eADXYy Hope that helps, thanks for watching!

  • @jamesdoeith8332
    @jamesdoeith8332 4 ปีที่แล้ว +1

    Two Questions
    1.This shows (2:10) two orange jumpers that are not directly across from each other on the load leveler. Don't the orange leads need to be straight thru the leveler 3.3 side to 5v side? If not how do they know what signal goes to each device...
    2. Do you need and external power supply for 3.3 & 5 VDC? Looks like you are drawing the 5 from the USB direct with u hook jumpers, but I can't tell where the 3.3 is sourced. If you don't overload them, can't you use both 3.3 & 5 VDC from the Arduino power pins to power the leveler?

    • @Aslan117
      @Aslan117 8 หลายเดือนก่อน +1

      Yeah he had only one thing to do right it was to align the in and out lmao

  • @4SquareHI
    @4SquareHI 3 ปีที่แล้ว

    Does this work with PWM signals also? I'm trying to get a Wemos D1 mini to control an BTS7960 Motor Controller. Tne Nano and Uno work fine with the BTS7960 but they don't have the WIFI and MQTT options I need for the system I'm building. The D1Mini signal is not high enough to power the motor. It turns the motor on, but the rpms are way too slow. I've been pulling my hair out!

  • @deadmusik9969
    @deadmusik9969 2 ปีที่แล้ว

    Thanks for the VIDEO

  • @rendyyt2268
    @rendyyt2268 ปีที่แล้ว

    Better use voltage divider or this one?

  • @LesDempseySoloLesta
    @LesDempseySoloLesta 2 ปีที่แล้ว

    Thank you. I just got a nano 33 IoT and it uses 3.3v logic. I wanna drive addressable LEDs with use 5v power and 5v logic. This looks like the solution I need.

  • @ItaloLima
    @ItaloLima 6 ปีที่แล้ว

    Nice !!

  • @granatapfel6661
    @granatapfel6661 3 ปีที่แล้ว

    This doesn't work with spi I think?

  • @ItaloLima
    @ItaloLima 6 ปีที่แล้ว +1

    First !