Getting issue to use ESP32 SPI both way communication.

sudeep1310
Posts: 2
Joined: Tue Jun 21, 2022 12:36 pm

Getting issue to use ESP32 SPI both way communication.

Postby sudeep1310 » Tue Jun 21, 2022 12:51 pm

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

rpiloverbd
Posts: 101
Joined: Tue Mar 22, 2022 5:23 am

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

Postby rpiloverbd » Wed Jun 22, 2022 9:37 am

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/

sudeep1310
Posts: 2
Joined: Tue Jun 21, 2022 12:36 pm

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

Postby sudeep1310 » Thu Jun 23, 2022 10:39 am

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 ?

Who is online

Users browsing this forum: Google [Bot] and 38 guests