TCA9548A I2C Multiplexer Module - With Arduino and NodeMCU

Sdílet
Vložit
  • čas přidán 8. 07. 2024
  • Did you ever get into a situation where you had to wire up two, three or more I2C Sensors to your Arduino just to realize that the sensors have a fixed or same I2C address? Moreover, you cannot have two devices with the same address on the same SDA/SCL pins!
    So, what are your options?
    Put them all on the TCA9548A 1-to-8 I2C multiplexer to get them all talking to each other on the same bus!
    The TCA9548A Breakout enables communication with multiple I2C devices that have the same address making it simple to interface with them.
    Code: diyfactory007.blogspot.com/20...
    #TCA9548A #I2C #Arduino #NodeMCU
  • Jak na to + styl

Komentáře • 95

  • @nbabasketball6735
    @nbabasketball6735 Před 5 lety +5

    Ummm... THAT's how videos should be. Very informative, volume is correct, no stupid music, great visualisations like transitions and illustrations... it's a very well done video. Other than his accent which is a bit hard to understand (captions solve that) it's a near perfect example of what I think tutorials should be striving for. He even has a little timeline so you can skip to parts of the video. It's a little more techie and in depth than most folks would need, but the time line is right there to skip if you don't need that level of detail.

    • @CrazyCoupleDIY
      @CrazyCoupleDIY  Před 5 lety +1

      Thanks, I just saw the same comment in Reddit aswell
      Thanks again

  • @razorr1920
    @razorr1920 Před 3 lety +2

    dude, your video was the best on I2C till now. keep up the good work...cheers mate.

  • @maartenvd84
    @maartenvd84 Před 3 lety +3

    Thank you! Very well explained to enough level of detail without going too deep into things.

  • @belteksllc
    @belteksllc Před 3 lety +3

    Great one. I learned everything I needed about TCA9548A.

  • @emimix
    @emimix Před 5 lety +1

    Very useful and easy to follow video...thanks

  • @robertlongoria765
    @robertlongoria765 Před 3 lety +1

    Thank you, opened my eyes to may i2c properties.

  • @MountainRidgeMalamutes
    @MountainRidgeMalamutes Před 5 lety +2

    Awesome Tutorial!!!

  • @yussufyassin1104
    @yussufyassin1104 Před 5 lety +1

    superb good job!!!

  • @nqobilesibisi3544
    @nqobilesibisi3544 Před rokem +1

    thank you , wonderfull explanation 👏

  • @korishan
    @korishan Před 5 lety +1

    Rapid fire explanation! Love it 👍😎

  • @devilvortex1
    @devilvortex1 Před 4 lety

    Pin 3 indicated as Z is the output from each selectable channel? E.g if I use 4 or more potentiometers.

  • @sai30492
    @sai30492 Před 5 lety

    Amazing. I am working with multiple LRA drivers (DRV2605L) and ESP32. How can i control all the LRAs independently?

  • @CrnaBabaa
    @CrnaBabaa Před 6 dny +1

    instant follow. Great video

  • @aleXelaMec
    @aleXelaMec Před 4 lety +1

    Great video. Thanks
    Question (i saw this in video, but just want to clarify)
    I have found in TI datasheet that the chip "allows voltage-level translation between 1.8-V,
    2.5-V, 3.3-V, and 5-V buses"
    will it work with different Vcc's or only that it supports all types of Vcc's 1.8-5? i have both options of I2C devices 5V Vcc and3.3V Vcc. can i use this device without logic level converter?
    Thanks

  • @marvinsernande9790
    @marvinsernande9790 Před 4 lety +1

    This is awesome! May I ask if I2C communication and TCA9548A is okay with long wires? Thank you

  • @ennaiarindhal3141
    @ennaiarindhal3141 Před 3 lety

    Bro can connect two flow sensor on nodemcuesp8266??? If possible tell how to make it

  • @trishyajameen336
    @trishyajameen336 Před 3 lety

    amazing tutorial

  • @KanchanDas
    @KanchanDas Před 5 lety +1

    very good work....

  • @shiftyjesusfish
    @shiftyjesusfish Před rokem

    trojan miner baked right into that link.....reeeaaaalllll nice.

  • @tengchang8083
    @tengchang8083 Před 5 lety +1

    Good tutorial!

  • @donnysdp
    @donnysdp Před 2 lety +1

    Nice explanatation sir! Truely understandable! But i have 1 question.
    Does the I2C Multiplexer Module has a library to install? or i doesn't require to install any library?

    • @CrazyCoupleDIY
      @CrazyCoupleDIY  Před 2 lety

      Yes it does
      Please check it out here: www.arduino.cc/reference/en/libraries/ti-tca9548a/

  • @PavanMuppala
    @PavanMuppala Před 3 lety +1

    very nice explanation bro, can I use this module to measure my battery pack connected in series where each cell ranges (1.6v - 3.3v) because I can not use audrino directly cus it is having a single ground pin.

    • @CrazyCoupleDIY
      @CrazyCoupleDIY  Před 3 lety

      First of all thanks for the appreciation. New, I have never done that so don’t have a concrete answer for you.

  • @ManuelCastillo-kq3xy
    @ManuelCastillo-kq3xy Před 5 lety +1

    Hi, you use a mini screen oled 0,96 i2c? You have a tutorial?

    • @CrazyCoupleDIY
      @CrazyCoupleDIY  Před 5 lety +2

      Please check this out: czcams.com/video/_e_0HJY0uIo/video.html

  • @ToTheMac711
    @ToTheMac711 Před 5 lety

    Hey fam. Im using the TCA9548A as the master and multiple MPU-9250 (gyroscope/accelerometer) as slaves (connected to SD0,SC0 and SD1,SC1). After tcaselect(0); (which mean i choose my first MPU-9250). I have to access the register 6B and set the value to 0 on that register of the MPU. How do I do that?
    The original code for each MPU if I dont use the multiplexer is
    Wire.beginTransmission(0b1101000); //This is the I2C address of the MPU
    Wire.write(0x6B); //Accessing the register 6B
    Wire.write(0b00000000); //Setting SLEEP register to 0.
    Wire.endTransmission();
    So how can I access the register 6B then write to it after i write tcaselect(); ? or is there another way.

  • @joaovitortoledo7736
    @joaovitortoledo7736 Před 5 lety +1

    Muito bom! Adorei a forma como você fez o vídeo! Me inscrevi!

    • @CrazyCoupleDIY
      @CrazyCoupleDIY  Před 5 lety

      Thanks a lot :)

    • @velociraptorbaja
      @velociraptorbaja Před 4 lety +1

      Boa tarde. Por acaso você conseguiu comprar esse CI aqui no Brasil? Não acho em lugar nenhum.

    • @joaovitortoledo7736
      @joaovitortoledo7736 Před 4 lety +1

      Na verdade nem tenho ainda. Coloquei no carrinho de compras no Aliexpress! Infelizmente as pessoas q revendem no Brasil, em 99% dos casos cobram cerca de 300% do valor do produto, então nem saio procurando esses tipos de componentes por aqui.

  • @TheRainHarvester
    @TheRainHarvester Před 5 lety +1

    Great topic! Does it cost less than another nano? I find myself just adding another nano or Stm32f103c8t6 sometimes for more gpio. I wish they had a cheaper solution.

    • @CrazyCoupleDIY
      @CrazyCoupleDIY  Před 5 lety

      STM32 is definitely a good option and I personally recommend that aswell, however sometimes you do need the power of just one NANO and yet you need multiple I2C devices to be hooked up to your project.
      I had a project where I had to attach 16 OLEDs and using the same clock
      So, adding another NANO was not an option for me

    • @TheRainHarvester
      @TheRainHarvester Před 5 lety

      Crazy Couple , yes you are right. If you need 3 devices that are hardwired to the same address, then you'd need 3 Arduino, or, instead, need only 1 tca9548s. Plus you could even add more i2c devices with the tca9548a.

    • @TheRainHarvester
      @TheRainHarvester Před 5 lety

      16 oleds? Ok...where's that video...searching. :-)

    • @CrazyCoupleDIY
      @CrazyCoupleDIY  Před 5 lety

      I don’t have a video for that as it was part of my semester project. My next tutorial is on IO expanders. So please stay tuned.

  • @doughankins3996
    @doughankins3996 Před 5 měsíci

    Is the demo example running 1 image or pattern spread across 8 displays?

  • @SilverArse
    @SilverArse Před 5 lety

    I take it the 2 10k pull-up resistors are between the microcontroller and the chip. Thus I would benefit from a suite of pull-up resistors between the slave and the chip lines even if they are all the same type of device eg screens?

    • @SilverArse
      @SilverArse Před 5 lety

      Also as of 24/01/19 there is a couple of bugs in the example code on instructibles. The loops in setup and loop functions say

  • @Standard_Logic
    @Standard_Logic Před 2 lety

    So you didn't use pull up resistors in your demo, are they required or are the pull ups on the TCA9548A board shared through all its ports?

    • @CrazyCoupleDIY
      @CrazyCoupleDIY  Před 2 lety

      @ 01:50 I did talk about the pull up resistors.
      But I did miss that in the schema shown later.

    • @Standard_Logic
      @Standard_Logic Před 2 lety

      @@CrazyCoupleDIY generally one would need pull ups when using i2c. However, the board in question has pull up resistors integrated on the board. Are those resistors shared between all the ports?

  • @pawankumarsingh3996
    @pawankumarsingh3996 Před 4 lety +1

    Awesome, can we receive multiple sensor data & check that data on blynk or MIT. I m working on a project, we would be helpful to me.

    • @CrazyCoupleDIY
      @CrazyCoupleDIY  Před 4 lety

      Yes u May
      But you can only get it one after another not paralleled as Arduino can’t do multi threading

  • @karthikeyans7468
    @karthikeyans7468 Před 4 lety

    But when I use oled with max30100 there is no problems and when I use oled with mlx90614 there is no problem but when I use both sensors max30100 and mlx90614 in the same nodeMCU it's not producing result

  • @shyamsundarsekar8696
    @shyamsundarsekar8696 Před 4 lety

    Is it possible to log data to cloud and SD card through Nodemcu using this TCA9548A multiplexer

    • @CrazyCoupleDIY
      @CrazyCoupleDIY  Před 4 lety

      It hardly matters if u have or dont have the MUX in your circuit.
      To log data you only need to concentrate on your NodeMCU bit.

  • @tamgaming9861
    @tamgaming9861 Před 5 lety

    do you have a tutorial for the RBG 1,5" Oleds? I bought 2 of them and now i try to connect them to my Arduino 2560^^

    • @CrazyCoupleDIY
      @CrazyCoupleDIY  Před 5 lety

      Unfortunately I don’t have one on my channel but you should be able to find heaps on CZcams

    • @CrazyCoupleDIY
      @CrazyCoupleDIY  Před 5 lety

      Tutorial on I2C OLED Display with Arduino/NodeMCU czcams.com/video/_e_0HJY0uIo/video.html
      This is the only one I have on my channel related to any OLED displays

    • @tamgaming9861
      @tamgaming9861 Před 5 lety

      @@CrazyCoupleDIY thanks buddy, yes i found some :-)

  • @kevinhoublon8630
    @kevinhoublon8630 Před rokem +1

    Hello, great video 😁,
    I'm a beginner and I have a question :
    Can the TCA9548A multiplexer work with The MCP23017 GPIO Expander?
    Thank you in advance for your precious support 😄
    Cordially.

    • @CrazyCoupleDIY
      @CrazyCoupleDIY  Před rokem +1

      Yes you may
      But I2C is serial, adding more expanders will make it slow
      Thanks for your support

    • @kevinhoublon8630
      @kevinhoublon8630 Před rokem +1

      @@CrazyCoupleDIY Hello, thank you very much for your feedback 😁.
      Have a nice weekend 😄

  • @hamadrd4573
    @hamadrd4573 Před 4 lety +1

    Very good Tutorial, I Love it, your English is GREAT and You made it easy for us to understand
    However, total I/Os current is 200ma for arduino, So do you know how much current drawn out of arduino pin to this I2C chip? And do the expanded pins current in total affect the Arduino pin if it is more than 40ma?

  • @karthikeyans7468
    @karthikeyans7468 Před 4 lety

    I am doing a project using nodeMCU AND MAX30100 heart rate sensor and Mlx90614 it temperature sensor and oled displaya

  • @SaumavaDas
    @SaumavaDas Před 4 lety

    Hi. Can i operate 16 relayes with that mux?

  • @cookone
    @cookone Před 5 lety +2

    I'm impressed
    So i am going to subscribe

  • @SilverArse
    @SilverArse Před 5 lety +1

    Segment at 4:32 Is interesting. I am bookmarking this with this comment.

  • @karthikeyans7468
    @karthikeyans7468 Před 4 lety

    Please help to come out of this

  • @satishm4635
    @satishm4635 Před 5 lety

    Very nice video explanation. But I got confused in the last section. @ 01:30 you said you will be explaining advantages and disadvantages of TCA9548A but @ 08:35 you actually explained advantages and disadvantages of I2C communication. Please correct me if I am wrong

    • @CrazyCoupleDIY
      @CrazyCoupleDIY  Před 5 lety

      Thanks for the appreciation
      I just had another look at the video and realised that you are absolutely right.

  • @SEOGOLDENWin
    @SEOGOLDENWin Před 5 lety +1

    Good bos👍

  • @karthikeyans7468
    @karthikeyans7468 Před 4 lety

    I need a help

  • @karthikeyans7468
    @karthikeyans7468 Před 4 lety

    Can you help me

  • @prajuthagowda4178
    @prajuthagowda4178 Před 5 lety

    hello there...nice video it was very informative ....can u please share the link to download utility/twi.h library ...im not able to download that ...thank you for sharing ur knowledge..

    • @CrazyCoupleDIY
      @CrazyCoupleDIY  Před 5 lety

      Please find all the links here: diyfactory007.blogspot.com/2018/11/tca9548a-i2c-multiplexer-module-with.html

  • @ShailSonsTech
    @ShailSonsTech Před 5 lety +1

    Coolest solution for the most uncool problem

  • @sksuman4400
    @sksuman4400 Před 5 lety

    sir if you upload another video on the basis of it then it will be more clear to me especially software part.

    • @CrazyCoupleDIY
      @CrazyCoupleDIY  Před 5 lety

      Do u want to know more about the integration with arduino or just in general how it works

    • @sksuman4400
      @sksuman4400 Před 5 lety

      Actually, sir, I was trying to connect bme280 and rtc module together using tca9548a but nothing was happening. If you explain the software part then it will be very clear to me

  • @makerspec9566
    @makerspec9566 Před 5 lety +2

    You should try and slow down a bit to eliminate the obvious errors like "one two eight" instead of I²C(I squared C), SLC instead of SCL, etc.

  • @emonahmed7258
    @emonahmed7258 Před 4 lety +1

    it help me to complete ....fiverr order