简体   繁体   中英

What is the different between using accelerometer&gyroscope and accelerometer&Magnetometer to find the orientation?

Using accelerometer&gyroscope to find orientation need to integrate gyroscope and need to use filter. The program will become very complicated. I try to use this method but I can't control the time interval of getting sensor data. Therefore, I can't really figure out how to do it.

Using accelerometer&Magnetometer seems easier to do it.

Then, what is the different between these two method?

Thank you

Accelerometer and gyroscope measures acceleration and orientation along linear and rotational axis while magnetometer and accelerometer measures orientation along linear axis and magnetic fields produced by surface of earth. I went through a module that has an inbuilt filter on the sensor shield and the code also worked well. This is 3D Accelerometer 3D Gyroscope 3D Magnetometer.

https://www.controleverything.com/content/Accelorometer?sku=LSM9DS0_I2CS

You can use the code according to the language you desire

https://github.com/ControlEverythingCommunity/LSM9DS0

Thanks..

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM