MPU 6050 X Y Z degree outputs

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 7.

Moderator: Benj

Post Reply
User avatar
STibor
Posts: 263
Joined: Fri Dec 16, 2011 3:20 pm
Has thanked: 116 times
Been thanked: 113 times
Contact:

MPU 6050 X Y Z degree outputs

Post by STibor »

Hello,

I looked at the topic and the blog.
I did not know how to get a degree output.
Can you help me get XYZ degree outputs?
Topic: http://www.matrixtsl.com/mmforums/viewt ... 050#p73643
Blog: http://www.matrixtsl.com/blog/quadrocop ... -and-gyro/

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Re: MPU 6050 X Y Z degree outputs

Post by Benj »

Hello,

You cannot do a Z axis with a MPU6050 because there is no magnetometer available. Most magnetometers I have used have been extremely disappointing but to be fair I don't often get a lot of time to play with them and it could simply be a calibration issue.

As for X and Y rotations these should be covered in the blog via the Roll and Pitch angles?

User avatar
STibor
Posts: 263
Joined: Fri Dec 16, 2011 3:20 pm
Has thanked: 116 times
Been thanked: 113 times
Contact:

Re: MPU 6050 X Y Z degree outputs

Post by STibor »

Does the example program return pitch and roll angle?
The linked Arduino program would be perfect for migrating in Flowcode.
Project: https://www.instructables.com/id/How-to ... 050GY-521/
Ino download: https://cdn.instructables.com/ORIG/FDJ/ ... JTLNU0.ino

Thanks for the help!

User avatar
STibor
Posts: 263
Joined: Fri Dec 16, 2011 3:20 pm
Has thanked: 116 times
Been thanked: 113 times
Contact:

Re: MPU 6050 X Y Z degree outputs

Post by STibor »

Hello!

I set the two example programs into 1 program.
I made a mistake because the filter sim pitch and the filter's sim roll variable value are incremented / changed per measurement.
Why is the value of "filter pitch" increasing?
Attachments
mpu6050_serial_output.txt
(388.31 KiB) Downloaded 243 times
MPU-6050_SimFilter_Ardu2.fcfx
(21.44 KiB) Downloaded 251 times

Post Reply