Quantcast
Channel: Microcontrollers
Viewing all articles
Browse latest Browse all 4923

HMC5883L compass module - Y/Z movement affects each other

$
0
0
I'm using HMC5883L compass module with arduino. There is a strange issue with the readings from this module - for some reason, the Z and Y axis are both affected from only Z axis movement or Y axis movement.

I need the readings to be correct per axis movement.

Y = tilting nose up/down
Z = turning left/right (compass)

I tried several libraries, the last two from these links:
https://github.com/sleemanj/HMC5883L_Simple
https://github.com/jarzebski/Arduino-HMC5883L

the...

HMC5883L compass module - Y/Z movement affects each other

Viewing all articles
Browse latest Browse all 4923

Trending Articles