ESP32 Half-Duplex SPI Slave

BrettG
Posts: 29
Joined: Wed Feb 15, 2017 7:32 pm

ESP32 Half-Duplex SPI Slave

Postby BrettG » Tue Apr 04, 2017 9:51 pm

I am currently using a camera that is controlled with I2C and sends its data through SPI. As the title suggests, the camera is set up to be a SPI master, and only communicates one way, i.e. it only has a spi clock and output data pins. Does anyone have some sample code to set up the ESP32 in a slave configuration? I had made some quick and dirty code to read the pin levels, but the signals were at too high frequency and timing became an issue. If I could set a buffer to read a data pin whenever it sees the rising edge of a clock, that would be sufficient.

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

Re: ESP32 Half-Duplex SPI Slave

Postby ESP_Sprite » Wed Apr 05, 2017 2:00 am

Fyi: We've got a (full-duplex) slave driver on the way. Will probably make its debut in master in one or two weeks, I estimate.

moloned
Posts: 1
Joined: Wed Apr 05, 2017 10:58 am

Re: ESP32 Half-Duplex SPI Slave

Postby moloned » Wed Apr 05, 2017 11:02 am

I'm also trying to write a driver for a similar camera with I2C control and a data interface that can we used with a SPI input on the ESP32

I have built my own board using the ESP32S to interface to a 6050 IMU and the camera

Which camera are you using?

Who is online

Users browsing this forum: Majestic-12 [Bot] and 134 guests