Virus scan in progress. Please wait to download attachments.
Simple demo application that uses the Arduino UNO board and an I2C 3-axis magnetometer. A 3D cone, which represents an arrowhead, rotates according to the motion of the sensors w.r.t. the magnetic field. When the z-axis of the sensor points the north, the arrowhead points out of the screen. A moving average filter can be applied to smooth the signals.
HW requirements: Arduino UNO board; HMC5883L 3-Axis magnetometer compatible (see datasheet for specifications). SW requirements: LabVIEW 2011 or later and LabVIEW Interface for Arduino.
Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.