Skip to content

ESP12E i2c communication with MPU6050 #3629

@adi44ram

Description

@adi44ram

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions