Quantcast
Channel: SparkFun Electronics Comments
Viewing all articles
Browse latest Browse all 44542

Customer #418615 on SEN-10530 - Triple Axis Magnetometer Breakout - HMC5883L

$
0
0

Using this chip breakout board on the Arduino Uno with the example provided I was getting an error at 180 degrees when raw X is less than zero and raw Y is equal to zero. Adding the following “if” statement to the //convert to heading section fixes things.

if (x < 0 && y==0) {
Z = 180;
}

Viewing all articles
Browse latest Browse all 44542

Trending Articles