hideakitai / MPU9250

Arduino library for MPU9250 Nine-Axis (Gyro + Accelerometer + Compass) MEMS MotionTracking™ Device
MIT License
277 stars 91 forks source link

I have no yaw reading at all #31

Closed bavareze closed 3 years ago

bavareze commented 3 years ago

Hi. I am running the simple.ino

As I am moving my board around each axis I can see changes in pitch and roll. However, the yaw value shows no change at all.

So I wanted to check raw data and I noticed that again, gyrox and gyroy show values consistent with my movements, but gyroz is pretty much motionless.

Are you getting similar results? Could my sensor board (HiLetgo) be bad?

thanks

hideakitai commented 3 years ago

Hi, I haven't experienced such situation... Your MPU may be broken. If connection_check.ino example works correctly (and you choose correct device (MPU9250 or MPU9255)), you can get roll pitch yaw without such problem. Could you try another sensor board?

bavareze commented 3 years ago

Yes. I already ordered another one. Will keep you posted. Thanks

On Tue, Jan 19, 2021, 6:26 AM Hideaki Tai notifications@github.com wrote:

Hi, I haven't experienced such situation... Your MPU may be broken. If connection_check.ino example works correctly (and you choose correct device (MPU9250 or MPU9255)), you can get roll pitch yaw without such problem. Could you try another sensor board?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/hideakitai/MPU9250/issues/31#issuecomment-762781331, or unsubscribe https://github.com/notifications/unsubscribe-auth/ARVZGGV625BGZPJ7JSNJAQLS2VT67ANCNFSM4WIJ4ARA .

bavareze commented 3 years ago

Hello,

very bizarre, my yaw gyro was indeed bad. I thought this would never happen again since is electronic component.

but anyway.

I need your help:

my sensor is inside a box with many electronics and magnetic fields. when I yaw the box the gyro shows motion but then the madgwick filter "corrects" back the yaw position because the magnetic field has moved too.

So that means I need to change the madgwick filter to use everything except for magnetometer (with the risk of yaw drift over time, that's ok)

Any idea how to do that

Thanks!

http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail Virus-free. www.avg.com http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail <#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>

On Tue, Jan 19, 2021 at 2:42 PM Radu Georgescu 660radu@gmail.com wrote:

Yes. I already ordered another one. Will keep you posted. Thanks

On Tue, Jan 19, 2021, 6:26 AM Hideaki Tai notifications@github.com wrote:

Hi, I haven't experienced such situation... Your MPU may be broken. If connection_check.ino example works correctly (and you choose correct device (MPU9250 or MPU9255)), you can get roll pitch yaw without such problem. Could you try another sensor board?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/hideakitai/MPU9250/issues/31#issuecomment-762781331, or unsubscribe https://github.com/notifications/unsubscribe-auth/ARVZGGV625BGZPJ7JSNJAQLS2VT67ANCNFSM4WIJ4ARA .

hideakitai commented 3 years ago

Hi, you can just read the raw accel/gyro/mag data, and you can apply madgwick filter by yourself. The update() function shows how to do that.

hideakitai commented 3 years ago

I'll close this issue but please feel free to reopen it.

bavareze commented 3 years ago

gotcha thanks

http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail Virus-free. www.avg.com http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail <#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>

On Wed, Feb 24, 2021 at 11:10 AM Hideaki Tai notifications@github.com wrote:

Closed #31 https://github.com/hideakitai/MPU9250/issues/31.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/hideakitai/MPU9250/issues/31#event-4371839247, or unsubscribe https://github.com/notifications/unsubscribe-auth/ARVZGGXZGJCOJC4UUJUTLTLTAUQGLANCNFSM4WIJ4ARA .