Page 1 of 1

Getting issue to use ESP32 SPI both way communication.

Posted: Tue Jun 21, 2022 12:51 pm
by sudeep1310
Hi,
I want to use ESP32 SPI as slave. Want to interface with another MCU which is SPI Master. I want to transfer and receive both way communication in ESP32 SPI slave device. Is it possible with Arduino IDE? Is any particular library to use ? Please suggest and guide. I have tried ESP32 SPI (VSPI ) slave polling method in which I can receive any string or data as expected also tries ESP32 SPI master to send data but failed to merge both logic in one code. So please suggest me How can I achieve both way communication with another MCU. waiting for your positive response. Thanks in advance.

BR,
Sudeep

Re: Getting issue to use ESP32 SPI both way communication.

Posted: Wed Jun 22, 2022 9:37 am
by rpiloverbd
I didn't come across any 2-way SPI communication tutorial. It is possible to establish 2-way communication between two ESP-32 modules using ESP-NOW protocol.

https://forum.allaboutcircuits.com/thre ... 32.184799/

Re: Getting issue to use ESP32 SPI both way communication.

Posted: Thu Jun 23, 2022 10:39 am
by sudeep1310
Hi,
Thanks for your response, It is great help from you. Again I have one question. If I don't want SPI two way communication at a time. I just want to transfer data from esp32 and after some time whenever required I need to receive some data from other MCU to esp32 via SPI. Is it possible? I mean Half duplex mode ?