Hi All!
I am a beginner to electronics and looking through this forum has been great help but I am currently stuck on a problem.
I am attempting to test two low cost, 6 axis accelerometer/gyroscope combinations in order to implement the best one on my project. I have started with MPU6050 accelerometer/gyroscope, have downloaded some example code which outputs the readings, and I can use the serial plotter in arduino to see how they change with time. But I am stuck on which one to do next and how I would go about comparing them. My question is: Does anyone know of another cheap 6 axis combination that has lots of example code already online? In what way would I go about comparing them, is there code I can use to show one is more accurate/less noisy than the other? And finally, does anyone know where I can look/code to use to filter my data, I am not well versed in DSP but I am interested in how I can improve my outputs?
Any advice would be greatly appreciated
Thanks!
The accuracy should be in the datasheet. Noise can be from lots of stuff all of which we can’t see from here. If you are getting readings then you can test their accuracy yourself with known orientations
have a look at the lsm9ds1
And then have a look at: https://github.com/jremington/LSM9DS1-AHRS
Thanks Koepel!
But which code extension should I use? Which one is just for calculating the acclereometer/gyroscope values? Is there one specific for improving noise?
Thanks pmagowan!
But is there a specific way I can improve the MPU6050 performance without adding any extra hardware?
Sensor fusion, such as the AHRS filter, are used to smooth the data.
When using Accelerometer + Gyro + Magnetometer in a AHRS filter, then the shortcomings of one is compensated by the others.
The noise of the Accelerometer is compensated by the Gyro and the Magnetometer.
The drift of the Gyro is compensated by the Magnetometer and the Accelerometer.
The MPU-6050 has no Magnetometer, but a MPU-6050 with a filter gets the best out of the sensor: https://github.com/jremington/MPU-6050-Fusion
Ok thanks! We are actually learning about this so this helps
Maybe look at iNav for r/c .....
The MPU-6050 has long been obsolete and any you buy today are clones that may not work as well as the original.
This improved 6DOF sensor significantly outperforms the MPU-6050, especially in terms of noise: Adafruit LSM6DSOX 6 DoF Accelerometer and Gyroscope [STEMMA QT / Qwiic] : ID 4438 : $11.95 : Adafruit Industries, Unique & fun DIY electronics and kits
The ISM330DHCX is even better, and of course more expensive Adafruit ISM330DHCX - 6 DoF IMU - Accelerometer and Gyroscope [STEMMA QT / Qwiic] : ID 4502 : $19.95 : Adafruit Industries, Unique & fun DIY electronics and kits
Thanks for this!
Ok thanks, but isn't is only used for flight control?
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.