8 years, 6 months ago.

How about yaw?

That's a really good work!

I am quite new to this game, could someone assist on how to change the sampling frequency? It is set at 200Hz here but for the needs of a small project I'm doing I need about 400-500Hz. (all these data are written in an sd card using the SDFileSystem library)

Also I wonder if it is possible to calculate yaw as well without the aid of a magnetomer?

Question relating to:

Program takes accelerometer and gyroscope data from the MPU6050 registers and calibrates them for better results. Then uses this data is to obtain pitch and roll angles and writes these … ANGLE, complementary, filter, gyro, gyroscope, I2C, LPC1768, mbed, MPU6050, Nucleo F411RE, pitch, roll

1 Answer

8 years, 6 months ago.

Hi, thank you.

To change the sampling frequency you should edit some functions in .cpp file according to the information from MPU6050 datasheet and register map. Some of the other functions may depend on sampling frequency, so carefully read the code and comments, then by looking at the datasheet you can make necessary actions.

I have heard that just by using MPU6050 it is possible to obtain yaw angle. Some of them uses DMP in the sensor to get yaw angle. But I recommend to use a magnetometer module to get yaw angle. If the change of angle is important for you, it is also possible to use gyro data too.

Accepted Answer