I²C Triple Axis Magnetometer HMC5843
The HMC5843 is a three axis magnetometer which delivers direction in degrees.
Because the HMC5843 only supplies raw measures, number of counts, which require calculations to be converted into measures in Gauss. Defining the direction requires complex calculations. A pre-processor or a text-based algorithm are highly recommended, as a graphical interface may not be the most suitable tool. Combining the triple axis magnetometer with a triple axis gyroscope and a triple axis accelerometer, results in an inertial measurement unit, which provides the yaw-pitch-roll angles used in planes. |
• Caution |
Device
|
Functions HMC5843_begin Initialise the sensor
Input: None Output: None HMC5843_get Read the values Input: None Output: X, Y, Z real: number of counts, to be converted into Gauss |
Download
Download the driver with an example for RoboPro.
This file is under the Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License. The driver is included in the RoboPro distribution, under the Element groups > Library > I²C tree. |