ESP32-PICO-KIT Where and what are pin out numbers for SPI devices?

knightridar
Posts: 32
Joined: Sun Nov 25, 2018 10:05 pm
Contact:

ESP32-PICO-KIT Where and what are pin out numbers for SPI devices?

Postby knightridar » Tue Jan 19, 2021 6:35 am

Hi, I'm using this:
ESP32-PICO-KIT
https://www.digikey.com/en/products/det ... IT/9381703

I'm trying to figure out where the SPI pins are located on the board but the terminology on the ESP32 site is confusing.
I know there are 4 sets of SPI pins based on the site below.
HSPI and VSPI pins and another set (SPI 0 and SPI 1).
http://iot-bits.com/esp32/esp32-spi-tutorial-part-1/

I tried to find the pin outs here but the terminology is a bit confusing and images with pinouts listed are easier to follow:
https://docs.espressif.com/projects/esp ... oard-front

The best visual picture I can find so far is here. I really wish Espressif can provided some updated images for PICO KIT, rather than a table.
https://www.dfrobot.com/product-1941.html

I found potential pins for SPI based on a post I found online of another ESP32 module.
https://electronics.stackexchange.com/q ... p32-module

I'm trying to connect this:
https://randomnerdtutorials.com/micropy ... 2-esp8266/

Is the chip select pin correct?

For:
MISO/SDO I'm using GPIO pin 12
MOSI/SDI/SDA pin 13
SCL/SCK pin 14
CS pin ?? 15
Free CAD files for hobby and engineering projects:
https://grabcad.com/has-2

OllieK
Posts: 58
Joined: Mon Jan 18, 2016 8:08 am
Location: USA, PA
Contact:

Re: ESP32-PICO-KIT Where and what are pin out numbers for SPI devices?

Postby OllieK » Tue Jan 19, 2021 6:58 am

I do agree that it is not a good practice to introduce vendor specific terminology, when there are already common practices. Here the key is that

SPID = MOSI
SPIQ = MISO

I do recommend that you use VSPI in PICO pins 18, 19, and 23 because the HSPI pins 11, 12, 13, and 14 do collide with the JTAG pins. If you are not using a hardware debugger then this is not relevant to you.

The dedicated CS pin is relevant only if you will use SPI in slave mode. In master mode, you could need multiple CS pins.

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

Re: ESP32-PICO-KIT Where and what are pin out numbers for SPI devices?

Postby ESP_Sprite » Tue Jan 19, 2021 7:42 am

Note that (unless you need to drive the SPI at high speeds >26MHz) you can use the GPIO matrix to route the signals to most any pin.

knightridar
Posts: 32
Joined: Sun Nov 25, 2018 10:05 pm
Contact:

Re: ESP32-PICO-KIT Where and what are pin out numbers for SPI devices and pin out numbers for I2C devices?

Postby knightridar » Mon Jan 25, 2021 5:05 am

Thanks the pins worked.

I'm new to using the SPI interface but was focused on the speed benefits.
However, I've read that there is no error checking like with i2C or UART.
When is this beneficial and can this be avoided?

Right now I have 0 experience with using JTAG debuggers and not sure why they are useful.
Can someone explain why JTAG is useful?
Online google search gave some insight but still unclear.

I only use the Arduino IDE to program and troubleshoot the ESP32-PICO-KIT v4.1.
Espressif IDE is still a mystery to me on how to operate and setup.

So the other HSPI pins versus VSPI are still free.
From what I've read online though and based on my understanding
it seems my ESP32 device can be the master SPI and the connected devices can be the slaves.
If I added more SPI devices than I can still use my VSPI pins for it correct?
The only thing that will be different will be the CS pin?

i.e. right now I'm using pins 19,23,18,5 (CS).
So for another device using SPI I would connect 19,23,18 and another pin?

I read somewhere about IOmuxing of pins but I read that if you don't use the defaults ones the SPI speed gets reduced from 80 mhz to 40mhz.

Here is a a screenshot of the pins for SPI.
Are the default pins for I2C pins 21 and 22 like the other dev kits?
The link below doesn't really call them out.
https://demo-dijiudu.readthedocs.io/en/ ... scriptions
Attachments
esp32 pico kit more pinout views.PNG
esp32 pico kit more pinout views.PNG (208.82 KiB) Viewed 7138 times
Free CAD files for hobby and engineering projects:
https://grabcad.com/has-2

Srivatchan
Posts: 2
Joined: Tue Aug 30, 2022 8:10 am

Re: ESP32-PICO-KIT Where and what are pin out numbers for SPI devices?

Postby Srivatchan » Tue Aug 30, 2022 8:18 am

I am trying to connect ESP32 Pico V4.1 and VS1053 Audio Codec board and I am using following pin connections

VS1053 - ESP32 Pico V4.1
XDCS - 15
SDCS - 11
CS - 5
SCLK - 18
MOSI - 23
MISO - 19
DREQ - 35

is my connections correct?? can anyone help me in this concern

Who is online

Users browsing this forum: shatirah_ and 49 guests