As the title says... Chat on...

User avatar
By Reaper
#65296 Hi there,

i am currently trying to get a MPU6050 working on my NodeMCU.

I used the following LUA script to get the sensor data: https://github.com/TheOS1/ESP8266/blob/master/Drivers/Lua%20Drivers/MPU6050/Code/MPU6050_driver_test_v2.lua

I have connected the MPU6050 to my NodeMCU SDA -> GPIO4, SCL -> GPIO5 but it is not working at all.
The test script outputs that it found an device at the 0x68 adress but then tells me to check the MPU becaue it is not working properly!

Any ideas or suggestions on this?

Thanks an best regards
User avatar
By trackerj
#65297 Might worth to take also a look at this related video:


Before you will be able to read some data you need to be sure that you properly pass:
Code: Select allinit_I2C()
check_MPU(0x68)
init_MPU(0x6B,0)


For the init_MPU() stage there is 0x6B (107 decimal) not 0x68 as it is for check_MPU() ! It's registry value not I2C Address !