Comments on: Guide for TCA9548A I2C Multiplexer: ESP32, ESP8266, Arduino https://randomnerdtutorials.com/tca9548a-i2c-multiplexer-esp32-esp8266-arduino/ Learn ESP8266, ESP32, Arduino, and Raspberry Pi Tue, 07 May 2024 20:55:27 +0000 hourly 1 https://wordpress.org/?v=6.8.2 By: Babak https://randomnerdtutorials.com/tca9548a-i2c-multiplexer-esp32-esp8266-arduino/#comment-913518 Tue, 07 May 2024 20:55:27 +0000 https://randomnerdtutorials.com/?p=105159#comment-913518 thank you. Your website helped me a lot.

]]>
By: Jefferso Leles https://randomnerdtutorials.com/tca9548a-i2c-multiplexer-esp32-esp8266-arduino/#comment-892006 Fri, 16 Feb 2024 20:35:28 +0000 https://randomnerdtutorials.com/?p=105159#comment-892006 Hello, excellent tutorial, rich material of information!

I would like to know if I can read the data from 3 ADXL345 accelerometer sensors with the TCA9548A on the ESP32, and what would it look like?

Grateful!

]]>
By: Jacques https://randomnerdtutorials.com/tca9548a-i2c-multiplexer-esp32-esp8266-arduino/#comment-888233 Mon, 05 Feb 2024 11:05:50 +0000 https://randomnerdtutorials.com/?p=105159#comment-888233 Hello Sara,

I used the exact same code as you posted, with 4 bme280 and a PCA9546, which should work the same (isnt it ?).
It works for the first loop, but give nonsense and reboots at the second.
I posted a question on the forum.

below is the main loop

Thanks for any help

Jacques

void loop() {
//Print values for sensors
printValues(bme0, 0);
printValues(bme1, 1);
printValues(bme2, 2);
printValues(bme3, 3);
delay(5000);
Serial.println(” end of loop”);
}

Here is the output :

Sensor number on bus0
Temperature = 22.21 *C
Pressure = 1022.59 hPa
Humidity = 52.52 %

Sensor number on bus1
Temperature = 21.92 *C
Pressure = 1021.75 hPa
Humidity = 50.33 %

Sensor number on bus2
Temperature = 21.68 *C
Pressure = 1020.94 hPa
Humidity = 53.21 %

Sensor number on bus3
Temperature = 22.04 *C
Pressure = 1021.31 hPa
Humidity = 51.59 %

end of loop
Sensor number on bus0
Temperature = 183.15 *C
Pressure = -133.56 hPa
Humidity = 100.00 %

————— CUT HERE FOR EXCEPTION DECODER —————

Exception (3):
epc1=0x4010084d epc2=0x00000000 epc3=0x00000000 excvaddr=0x4003bff9 depc=0x00000000

stack>>>

ctx: cont
sp: 3ffffdb0 end: 3fffffd0 offset: 0150
3fffff00: 00000568 000000ad 3ffe85e4 40100906
3fffff10: 40202cd4 3ffe889b 3ffee860 3ffee8e0
3fffff20: 3fffdad0 00000020 3ffef7c4 40100c54
3fffff30: 40202cd4 00000000 3fffff50 402015c2
3fffff40: 3fffdad0 00000000 00000054 402012a4
3fffff50: 3ffef7c4 00000000 00000000 00000000
3fffff60: 00000000 00000000 00000060 000e4ef1
3fffff70: 00000000 67546ce2 92440032 0bd0d678
3fffff80: ffdb1ad6 300cfff9 1388d120 0149004b
3fffff90: 01970000 001e0032 00000000 000000ed
3fffffa0: 000000a0 00000000 3ffee8b4 3ffee8e0
3fffffb0: 00000000 00000000 3ffee8b4 40203670
3fffffc0: feefeffe feefeffe 3fffdab0 40101001
<<<stack<<<

————— CUT HERE FOR EXCEPTION DECODER —————

]]>
By: Sara Santos https://randomnerdtutorials.com/tca9548a-i2c-multiplexer-esp32-esp8266-arduino/#comment-872819 Sun, 19 Nov 2023 01:59:50 +0000 https://randomnerdtutorials.com/?p=105159#comment-872819 In reply to Bertus de Vries.

That’s great! 馃榾

]]>
By: Bertus de Vries https://randomnerdtutorials.com/tca9548a-i2c-multiplexer-esp32-esp8266-arduino/#comment-872757 Sat, 18 Nov 2023 15:32:17 +0000 https://randomnerdtutorials.com/?p=105159#comment-872757 Hi there Sara,

Thanks for this tutorial. I have been able to hook up 16 OLED screens at once for my Jingle cart machine, using 2 multiplexers and a Arduino Mega!

]]>
By: Helder Quinzico https://randomnerdtutorials.com/tca9548a-i2c-multiplexer-esp32-esp8266-arduino/#comment-832518 Sat, 29 Apr 2023 06:55:50 +0000 https://randomnerdtutorials.com/?p=105159#comment-832518 Great tutorial 馃檪 Quick question, could you add an example on how to connect 2 multiplexers at the same time? Thanks.

]]>
By: Reiner https://randomnerdtutorials.com/tca9548a-i2c-multiplexer-esp32-esp8266-arduino/#comment-817832 Sat, 11 Feb 2023 21:54:20 +0000 https://randomnerdtutorials.com/?p=105159#comment-817832 Kann der Plexer auch mit ESPeasy verwendet werden?

]]>
By: Manny https://randomnerdtutorials.com/tca9548a-i2c-multiplexer-esp32-esp8266-arduino/#comment-814150 Tue, 31 Jan 2023 08:59:12 +0000 https://randomnerdtutorials.com/?p=105159#comment-814150 hi there, i am trying to connect 5 MPU6050 sensors using ESP32 and MULTIPLEXER. can you help with the coding in arduino ide. if possible can we connect to discuss. thanks.

]]>
By: Maria Serna https://randomnerdtutorials.com/tca9548a-i2c-multiplexer-esp32-esp8266-arduino/#comment-795754 Thu, 03 Nov 2022 20:17:13 +0000 https://randomnerdtutorials.com/?p=105159#comment-795754 Hola, buenas tardes Sara Santos. Agradecerte por compartir la informaci贸n.
Ayuda por favor, 驴C贸mo implementar铆a el c贸digo en caso de usar 3 sensores MPU6050?

]]>
By: Dom https://randomnerdtutorials.com/tca9548a-i2c-multiplexer-esp32-esp8266-arduino/#comment-793113 Wed, 19 Oct 2022 16:48:47 +0000 https://randomnerdtutorials.com/?p=105159#comment-793113 Hi again,

one question though:

If you combine both projects (OLED and BME) you can display a sensor reading on the OLED.

BUT I was able to do so only if I hoocked up one OLED to the TCA9548A() as another device.

When I tried to put it parallel to the TCA9548A() it messed up!?

So is it working this way at all? Or does all I2C devices run trough the TCA9548A()?

Thanks Dom

]]>