Many sensors connection to ESP32S3 board with limited ports
Posted: Tue Oct 03, 2023 11:05 am
Hello!
I create a multifunctional device and for all purpose I need to connect to my very nice and very functional all-in-one ESP32S3 board (photo attached) next devices:
+ 1xUSB device;
+ 1xSPI module (as fast as possible!);
+ 4xI2C modules;
+ 2-3 OneWire sensors like temperature DS18B20;
Also I want to use integrated SD-card and Bluetooth or WiFi.
But because ports-connections at this board are limited, I asking for some help with it:
1) How it's better to connect 4xI2C modules (not very fast, each have it's own different address) to board IO17-18 - by serial wire (just solder several cables to each after another like old IDE cables) or use something like multiplexer TCA9548?
2) Ho to achieve max SPI speed on P2-SPI IO19,11,12,13 if SD-card is also connected to the IO10,11,12,13? Just don't use SD-card while using another fast SPI device on P2? Any other recommendations?
3) To which port connect many OneWire sensors like 2-3 temperature DS18B20? Take 1 IO line from UART1 port? Or use some additional adapter to I2C?
I create a multifunctional device and for all purpose I need to connect to my very nice and very functional all-in-one ESP32S3 board (photo attached) next devices:
+ 1xUSB device;
+ 1xSPI module (as fast as possible!);
+ 4xI2C modules;
+ 2-3 OneWire sensors like temperature DS18B20;
Also I want to use integrated SD-card and Bluetooth or WiFi.
But because ports-connections at this board are limited, I asking for some help with it:
1) How it's better to connect 4xI2C modules (not very fast, each have it's own different address) to board IO17-18 - by serial wire (just solder several cables to each after another like old IDE cables) or use something like multiplexer TCA9548?
2) Ho to achieve max SPI speed on P2-SPI IO19,11,12,13 if SD-card is also connected to the IO10,11,12,13? Just don't use SD-card while using another fast SPI device on P2? Any other recommendations?
3) To which port connect many OneWire sensors like 2-3 temperature DS18B20? Take 1 IO line from UART1 port? Or use some additional adapter to I2C?