Go Down

Topic: MPU-9150 Sensor results (Read 138 times) previous topic - next topic

Limprevisible

Hello Guys,


I am using the library MPU-9150 which is a 9-axis accelerometer/gyroscope/magnetometer. It's working but results are un-readable for me. So I am sure it's about maths problem but can't get any clue about where to start of...

I just would like to get a temperature in °C. Angles in degree. Acceleration in g, and compas in degree.


Link to the library: https://github.com/sparkfun/MPU-9150_Breakout


Here the results:
Code: [Select]
a/g/m: - temp -2328 -1112 15752 179 25 -33 -511 0 0 -2.00 ||
a/g/m: - temp -2292 -1048 15864 150 -6 -32 4609 0 0 18.00 ||
a/g/m: - temp -2420 -1232 15908 204 3 -47 2049 0 0 8.00 ||
a/g/m: - temp -2308 -1136 15740 198 -16 -26 6657 0 0 26.00 ||
a/g/m: - temp -2384 -1136 15800 157 16 -26 3073 0 0 12.00 ||
a/g/m: - temp -2380 -964 15824 167 21 -22 4097 0 0 16.00 ||
a/g/m: - temp -2380 -1084 15880 195 -3 -34 2049 0 0 8.00 ||
a/g/m: - temp -2336 -1200 15840 148 9 -25 513 0 0 2.00 ||
a/g/m: - temp -2196 -1176 15864 166 25 -17 2561 0 0 10.00 ||
a/g/m: - temp -2272 -1080 15880 188 14 -4 1025 0 0 4.00 ||
a/g/m: - temp -2336 -1048 15756 220 35 -21 1025 0 0 4.00 ||
a/g/m: - temp -2440 -1116 15720 150 -1 -29 2561 0 0 10.00 ||
a/g/m: - temp -2344 -1060 15856 171 18 -56 513 0 0 2.00 ||



Thanks for your answer.

zhomeslice

Try this
The MPU9150 is just a MPU6050 with a manometer attached  the same way you would with a separate chip. 

https://github.com/jrowberg/i2cdevlib/tree/master/Arduino/MPU6050

Lets see if this will get you going.

Also try the attached code to get calibration Numbers for the DMP
HC

Limprevisible

Hello,


Thanks for your answer. I tested quickly the sketch but I have to adapt it somehow. I will have some time free this week end so I'll let you know :)

thanks

Go Up