espressif / esp-who

Face detection and recognition framework
Other
1.67k stars 465 forks source link

SPI port #119

Open Skyseb opened 4 years ago

Skyseb commented 4 years ago

Hi,

In:

https://github.com/espressif/esp-who/blob/master/docs/en/get-started/ESP-EYE_Getting_Started_Guide.md

says.. A reserved port for data transmission.

CS I/O 19 PART OF VSPI D0 I/O 12 HSD2 ... (for sd in mmc mode) DI I/O 2 PART OF HSPI CLK I/O 0 CLK

what does it mean?

i cant use it ?

otherwise:

can i use it to put an Micro SD card in SPI mode? I NEED IT

can i use it for I/O? I settle for that

XiaochaoGONG commented 4 years ago

Hi, the pads in the board are for SPI usage. I think you need to connect the IOs with your own jump wire.

feklee commented 4 years ago

I tried it. As soon as I connect CLK from another ESP32, which acts as host, the ESP-EYE does not boot anymore. When I monitor the hello_world example, it hangs at: waiting for download

Can someone clarify: Can this SPI port really be used for communication with other devices?

feklee commented 4 years ago

Looking at the schematic, I see as connections:

feklee commented 4 years ago

Got it to work (Arduino Pro Mini as master, ESP-EYE as slave):

Photo of successful setup

Note that the ESP-EYE will not boot if there is clock signal on the CLK pin. According to my tests, the CLK pin needs to be unconnected during boot or pulled high. For communication, I use SPI in mode 1.

BRichter99 commented 3 years ago

I tried it. As soon as I connect CLK from another ESP32, which acts as host, the ESP-EYE does not boot anymore. When I monitor the hello_world example, it hangs at: waiting for download

Where can I find the code of that example?

Got it to work (Arduino Pro Mini as master, ESP-EYE as slave):

Which code did you use on the ESP-EYE? Was it that hello_world example?

feklee commented 3 years ago

code.zip

This and the image from my earlier post go together with my notes below. I used this method in my project SAN.

Warning: Note that the voltage divider circuit is not wired correctly. There is 5 V on the ESP32 pins.

Relationship:

The master sends to the slave (no exclamation mark):

Hello, world

Components:

Process to set up the ESP-EYE (ESP-WHO v3.3):

With DMA enabled, the length of the transmitted message needs to be multiple of 32 bits. SPI mode is set to 1 per recommendation of the ESP32 SPI/DMA documentation.