TCA9548A I2C Multiplexer Module - With Arduino and NodeMCU
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
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.
Thanks, I just saw the same comment in Reddit aswell
Thanks again
dude, your video was the best on I2C till now. keep up the good work...cheers mate.
Thanks mate
Thank you! Very well explained to enough level of detail without going too deep into things.
Thanks 🙏
Great one. I learned everything I needed about TCA9548A.
Happy that I was able to help
Very useful and easy to follow video...thanks
Thank you, opened my eyes to may i2c properties.
Cheers
Awesome Tutorial!!!
superb good job!!!
thank you , wonderfull explanation 👏
Thanks
Rapid fire explanation! Love it 👍😎
👍✌️😉
Please help me to
Pin 3 indicated as Z is the output from each selectable channel? E.g if I use 4 or more potentiometers.
Amazing. I am working with multiple LRA drivers (DRV2605L) and ESP32. How can i control all the LRAs independently?
instant follow. Great video
Cheers mate 👍
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
This is awesome! May I ask if I2C communication and TCA9548A is okay with long wires? Thank you
Bro can connect two flow sensor on nodemcuesp8266??? If possible tell how to make it
amazing tutorial
very good work....
Thanks :)
trojan miner baked right into that link.....reeeaaaalllll nice.
Good tutorial!
Thanks a lot mate
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?
Yes it does
Please check it out here: www.arduino.cc/reference/en/libraries/ti-tca9548a/
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.
First of all thanks for the appreciation. New, I have never done that so don’t have a concrete answer for you.
Hi, you use a mini screen oled 0,96 i2c? You have a tutorial?
Please check this out: czcams.com/video/_e_0HJY0uIo/video.html
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.
Muito bom! Adorei a forma como você fez o vídeo! Me inscrevi!
Thanks a lot :)
Boa tarde. Por acaso você conseguiu comprar esse CI aqui no Brasil? Não acho em lugar nenhum.
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.
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.
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
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.
16 oleds? Ok...where's that video...searching. :-)
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.
Is the demo example running 1 image or pattern spread across 8 displays?
Yes
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?
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
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?
@ 01:50 I did talk about the pull up resistors.
But I did miss that in the schema shown later.
@@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?
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.
Yes u May
But you can only get it one after another not paralleled as Arduino can’t do multi threading
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
Can you send me ur schematic
Is it possible to log data to cloud and SD card through Nodemcu using this TCA9548A multiplexer
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.
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^^
Unfortunately I don’t have one on my channel but you should be able to find heaps on CZcams
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
@@CrazyCoupleDIY thanks buddy, yes i found some :-)
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.
Yes you may
But I2C is serial, adding more expanders will make it slow
Thanks for your support
@@CrazyCoupleDIY Hello, thank you very much for your feedback 😁.
Have a nice weekend 😄
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?
Not sure mate
I am doing a project using nodeMCU AND MAX30100 heart rate sensor and Mlx90614 it temperature sensor and oled displaya
Sure, so what is the issue?
Hi. Can i operate 16 relayes with that mux?
Yes why not
I'm impressed
So i am going to subscribe
Segment at 4:32 Is interesting. I am bookmarking this with this comment.
Please help to come out of this
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
Thanks for the appreciation
I just had another look at the video and realised that you are absolutely right.
Good bos👍
I need a help
What sort of issue I are facing mate?
Can you help me
Tarantula3@gmail.com
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..
Please find all the links here: diyfactory007.blogspot.com/2018/11/tca9548a-i2c-multiplexer-module-with.html
Coolest solution for the most uncool problem
Thanks a lot little master
sir if you upload another video on the basis of it then it will be more clear to me especially software part.
Do u want to know more about the integration with arduino or just in general how it works
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
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.
it help me to complete ....fiverr order
Great