ESP8266 SPI Slave source code

General discussions and questions abound development of code with MicroPython that is not hardware specific.
Target audience: MicroPython Users.
Post Reply
prateek027
Posts: 1
Joined: Tue Aug 21, 2018 4:07 pm

ESP8266 SPI Slave source code

Post by prateek027 » Tue Aug 21, 2018 4:22 pm

Hi All,

I am New in this group. i need some information about nodeMcu ESP8266 SPI as Slave.
my Requirements are like::
i have some sensor which is connected through Nrf51 and sensor data like " 01 02 03 04 05 06 07 08 09 A0 B0 C0 D0 E0 F0 10 " in 16 Bytes chunk. Currently I am using spi slave library provided on Github but it receive like " 03 04 05 06 07 08 09 A0 B0 C0 D0 00 FF 00 "
means start two bytes and last 3 bytes are missing.

i need to send 10 strings as mention data in upper on ESP8266 SPI bus. so ESP8266 works as slave and NRF51 works as master.
i am trying to receive all bytes in such manner.
please provide me spi slave library or example so that i can complete my test.

Thanks.

User avatar
pythoncoder
Posts: 5956
Joined: Fri Jul 18, 2014 8:01 am
Location: UK
Contact:

Re: ESP8266 SPI Slave source code

Post by pythoncoder » Wed Aug 22, 2018 10:49 am

Slave mode has timing issues on ESPx because of the underlying vendor code. Try using lower baudrates.
Peter Hinch
Index to my micropython libraries.

Post Reply