Hello friends,
I am trying to read the data from MPU6050 using ESPwifi12E module (80Mhz). I have established a i2c communication between MPU6050 and ESP12E by seeing the schematics of esp12E module. I have pinned D4 to SDA and D5 to scl. When I upload the code I am not getting proper values. When I turn the MPU in all the directions I am getting only positive values. I am not getting negative values at all. I uploaded the same code in my ARDUINO mega board and I get exact values. I don't think there is a problem with the code. What can be the issue. Is there an issue with the communication? Kindly help me out guys.
I didn't change the data type of the variable where the MPU values gets stored. I used the same code in both the boards but getting different results.
I have attached my code.
Thanks
MPU.txt
Hello friends,
I am trying to read the data from MPU6050 using ESPwifi12E module (80Mhz). I have established a i2c communication between MPU6050 and ESP12E by seeing the schematics of esp12E module. I have pinned D4 to SDA and D5 to scl. When I upload the code I am not getting proper values. When I turn the MPU in all the directions I am getting only positive values. I am not getting negative values at all. I uploaded the same code in my ARDUINO mega board and I get exact values. I don't think there is a problem with the code. What can be the issue. Is there an issue with the communication? Kindly help me out guys.
I didn't change the data type of the variable where the MPU values gets stored. I used the same code in both the boards but getting different results.
I have attached my code.
Thanks
MPU.txt