Multiple SPI Bus Interfaces in One ESP32

If I were to have two SPI bus interfaces (such as the microSD Card Module) in one ESP32 board, what would be the procedure for coding in Arduino IDE?

Hint:
The CS pin must connect to the ESP32’s GPIO 5 pin. The MISO pin must connect to the ESP32’s GPIO 19 pin. The MOSI pin must connect to the ESP32’s GPIO 23 pin. The CLK pin must connect to the ESP32’s GPIO 18 pin. The 3V3 pin must connect to the ESP32’s 3.3V pin or the VCC pin must connect to the ESP32’s 5V pin. The GND pin must connect to the ESP32’s GND pin.

Why?
Do you know that SPI is a bus and you can connect a several SPI slave devices to a single SPI master?

To do this each SPI device should use its own CS pin, and MISO, MOSI and CLK pins are common for all SPI slaves.

Where can I buy SPI Masters?

Hmm :slight_smile:
"SPI Masters" is not the device, it is an interface, a part of microcontroller, such as Arduino or ESP32.

@b707, I think that the question is slightly different: having HSPI and VSPI both talk to the SD module.

I have no idea why somebody might want to do that?

I don't think so... since the question about the "SPI_Masters" is too basic for someone who knows about the existance HSPI and VSPI .

Is there an easy procedure to connect two ESP32 boards together?

Use serial RX/TX

if they are in WiFi range of each other try ESP-NOW

Could you explain a little more detail - what is your final goal ?

My final goal is to connect an NRF24L01 module and a microSD Card Module to one Arduino Uno Rev3 board.

What happened to the two ESP32 where are they connected?

I actually changed my mind. I would actually like to find out if I can connect an NRF24L01 module and a microSD Card Module to the same Arduino Uno Rev3 board instead.

Yes you can, no problem.

Excellent! What's the procedure?

https://learn.sparkfun.com/tutorials/serial-peripheral-interface-spi/all

Well you can have someone do it for you, or maybe a forum member will do it for you or you can try to learn how to do it yourself.
Would you like to learn?

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.