Connect MPU-9150 to NodeMcu Lua ESP8266 ESP-12E
Posted: Sun Aug 19, 2018 9:33 am
Hello,
I am trying to connect a MPU-9150 sensor to the NodeMcu Lua ESP8266 ESP-12E
https://www.banggood.com/Geekcreit-Doit-NodeMcu-Lua-ESP8266-ESP-12E-WIFI-Development-Board-p-985891.html?rmmds=myorder&cur_warehouse=UK
I managed to get the ESP8266 working with Arduino and can upload code to it.
Now I am trying to connect the MPU-9150 sensor to the ESP8266 and test it with the MPU6050_DMP6 code from https://github.com/jrowberg/i2cdevlib/blob/master/Arduino/MPU6050/examples/MPU6050_DMP6/MPU6050_DMP6.ino.
After uploading the code to the ESP the output is as follows:
Initializing I2C devices...
Testing device connections...
MPU6050 connection failed
Send any character to begin DMP programming and demo:
After entering a character it outputs this:
Initializing DMP...
Enabling DMP...
Enabling interrupt detection (Arduino external interrupt 0)...
DMP ready! Waiting for first interrupt...
Soft WDT reset
ctx: cont
sp: 3ffef320 end: 3ffef510 offset: 01b0
>>>stack>>>
3ffef4d0: 3fffdad0 3ffee368 3ffee4b8 40202622
3ffef4e0: feefeffe feefeffe feefeffe 3ffee4dc
3ffef4f0: 3fffdad0 00000000 3ffee4d4 40203f10
3ffef500: feefeffe feefeffe 3ffee4f0 40100718
<<<stack<<<
ets Jan 8 2013,rst cause:2, boot mode:(1,6)
ets Jan 8 2013,rst cause:4, boot mode:(1,6)
wdt reset
It seems as if my wiring is not correct. My wiring is as follows:
MPU <-> ESP
VCC <-> 3V3
GND <-> GND
SCL <-> ~D1
SDA <-> ~D2
AD0 <-> GND
INT not connected because I have no idea where to...
Can anyone please help me to get the wiring right?
Thank you in advance!
Best regards!
I am trying to connect a MPU-9150 sensor to the NodeMcu Lua ESP8266 ESP-12E
https://www.banggood.com/Geekcreit-Doit-NodeMcu-Lua-ESP8266-ESP-12E-WIFI-Development-Board-p-985891.html?rmmds=myorder&cur_warehouse=UK
I managed to get the ESP8266 working with Arduino and can upload code to it.
Now I am trying to connect the MPU-9150 sensor to the ESP8266 and test it with the MPU6050_DMP6 code from https://github.com/jrowberg/i2cdevlib/blob/master/Arduino/MPU6050/examples/MPU6050_DMP6/MPU6050_DMP6.ino.
After uploading the code to the ESP the output is as follows:
Initializing I2C devices...
Testing device connections...
MPU6050 connection failed
Send any character to begin DMP programming and demo:
After entering a character it outputs this:
Initializing DMP...
Enabling DMP...
Enabling interrupt detection (Arduino external interrupt 0)...
DMP ready! Waiting for first interrupt...
Soft WDT reset
ctx: cont
sp: 3ffef320 end: 3ffef510 offset: 01b0
>>>stack>>>
3ffef4d0: 3fffdad0 3ffee368 3ffee4b8 40202622
3ffef4e0: feefeffe feefeffe feefeffe 3ffee4dc
3ffef4f0: 3fffdad0 00000000 3ffee4d4 40203f10
3ffef500: feefeffe feefeffe 3ffee4f0 40100718
<<<stack<<<
ets Jan 8 2013,rst cause:2, boot mode:(1,6)
ets Jan 8 2013,rst cause:4, boot mode:(1,6)
wdt reset
It seems as if my wiring is not correct. My wiring is as follows:
MPU <-> ESP
VCC <-> 3V3
GND <-> GND
SCL <-> ~D1
SDA <-> ~D2
AD0 <-> GND
INT not connected because I have no idea where to...
Can anyone please help me to get the wiring right?
Thank you in advance!
Best regards!