Hi. I'm working on a robot project and I need to get gyro, accelerometer data from MPU9250 and magnetometer data from HMC5883L then feed all of this information into a “quaternion” to calculate our pitch, roll and compass-heading. I have never used these sensors before. What are your advices for this project?
The MPU-9250 has a magnetometer, so use that instead of the HMC5883L. There are several AHRS (Attitude and Heading Reference System) codes available for the MPU-9250, but avoid the Kris Winer and Sparkfun examples as they don't work.
This one does, but absolutely requires that you go to the effort to calibrate the sensor.
This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.