ESP32 Thing Master with 3 ADC Slave (SPI)

e2738729
Posts: 35
Joined: Mon Nov 05, 2018 6:22 pm

ESP32 Thing Master with 3 ADC Slave (SPI)

Postby e2738729 » Sat Dec 01, 2018 4:31 pm

Hi everyone,

I am trying to connect the ESP32 Thing from Sparkfun to 3 SPI slaves (ADCs) but I am not able to finalize my pin assignment regarding the Slave Select (SS or CS) pins

Could I do the following:
GPIO 23 -> MOSI
GPIO 19 -> MISO
GPIO 18 -> SCK

GPIO 5 -> SS of ADC 1
GPIO 15 -> SS of ADC 2
What is the third pin for SS of ADC 3?

How would I be able to connect 3 slaves to the same SPI bus? Is there a way that I could avoid JTAG pins (GPIOs 12 13 14 15)?

ESP_Sprite
Posts: 9025
Joined: Thu Nov 26, 2015 4:08 am

Re: ESP32 Thing Master with 3 ADC Slave (SPI)

Postby ESP_Sprite » Sun Dec 02, 2018 2:50 am

The SPI port can be routed through the GPIO matrix. If you don't need >26MHz clock speeds, you can happily select any pin (that is capable, note that some pins are input-only) for any SPI function in software.

Who is online

Users browsing this forum: Majestic-12 [Bot], ramier and 22 guests