Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

accZ is always -2.00 on ESP32 #35

Open
TheAnosmic opened this issue Jul 31, 2019 · 4 comments
Open

accZ is always -2.00 on ESP32 #35

TheAnosmic opened this issue Jul 31, 2019 · 4 comments

Comments

@TheAnosmic
Copy link

TheAnosmic commented Jul 31, 2019

I'm using mpu6050.calcGyroOffsets(); on setup while it's resting on my table.
The acceleration I get (with the example code only) are:
accX : -1.50 accY : -1.19 accZ : -2.00
X and Y are weird because it's sitting still on my table, but they at least change.
the Z stays at -2.00 no matter how I wiggle it.
it's a gy521 connected with I2C to ESP32 dev board.
any ideas on how to debug it?

Calculating offsets gave me:
X : -370.80
Y : 1.26
Z : -5.39
if that somehow helps.

@Titibo26
Copy link

Titibo26 commented Aug 1, 2019

Did you check your input voltage ?
Did you check if the mpu is well seen with I2C scanner ?

If yes, did you try to reset the esp ? Each time im using the mpu, the first time im turning on the mpu it's giving me wrong datas but when i reset it, it's working correctly. I didn't find why it's doing that (probably some registers inside the esp or the mpu wich are not going on the same state when turning up and reseting...)

@TheAnosmic
Copy link
Author

Just checked with a different 5V supply just for the MPU, it's the same.
the I2C communication works, I see all of the other information flow as it supposed to, it's just the accZ.
I'm resetting everything all the time, that's part of the project I'm working on.

I will try to get another gy521 to test it.

@pjphel
Copy link

pjphel commented Jan 29, 2020

I think its supposed to be 3.3V not 5V

@Titibo26
Copy link

Even in 3.3V it is doing the same :(

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants