Use this forum to chat about hardware specific topics for the ESP8266 (peripherals, memory, clocks, JTAG, programming)

User avatar
By debojitk
#51122 Hi,
Is there any way to communicate between arduino and esp8266 using SPI protocol?
I know that there is already a way to accomplish with serial communication, but kindly suggest if the spi comm. is possible where arduino can be put in slave mode?

Thanks,
Debojit
User avatar
By debojitk
#51158 Thanks for your reply.
So you mean, the library does not exist yet!
Actually i was looking for SPI option because of its speed, i think spi is fater than serial.
A quick question on serial: while the serial communication is on between esp and arduino, can i still use the usb serial as well for debugging?
Also at some portal I was reading that the voltage divider (between arduino tx and esp rx) approach does not work well for higher speed (i am looking for ~500000 baud), and people are suggesting for logic level converter. Is there any simple way to make such a circuit using a BJT?

Thanks Debojit
User avatar
By martinayotte
#51175
So you mean, the library does not exist yet!

SPI library already exist, but your own communication protocol isn't.
voltage divider approach does not work well for higher speed

Right, at high speed, the square wave of the signal becomes distorded. MOSFET level shifter is better :
Image