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

User avatar
By anurag2508
#79158 Dear Sir /Mam,

I have interfaced WeMos D1 ESP Wroom 02 Board ESP8266 Mini-WiFi Nodemcu Module 18650 Battery with ADXL345 using SPI and Arduino IDE. I have tested the code with and without WiFi communication.

Actually my project is to upload the Accelerometer (ADXL_345) data on the server using MQTT protocol which I am able to achieve properly. Now I need to achieve atleast 1k sampling of the data over the WiFi communication.
Here comes the problem, If i test the code and the SPI signals without WiFi communication I can see the
SPI clock around 40 MHz properly on the Oscilloscope and also sampling rate of ADXL_345 data more than the expectation but if i test the same thing with WiFi communication code I see that both the SPI clock and Data rate is coming in hertz around 100 to 160 Hertz and also its not stable if I check it on the oscilloscope.

Below is the link for ESP8266 Board which I am using

https://robu.in/?search_category=&s=wem ... arch_sku=1

and link for ADXL345 board which I am using for this project.

https://www.dhgate.com/store/product/ne ... 47313.html

Actually I am able to figure out Whats the actual problem here. It would be great if someone can guide me or help me out here.

Thanks
Anurag Mahajan
Embedded Engineer
Senpronics.