HMC5883L compass module - Y/Z movement affects each other

Thread Starter

impeham

Joined Dec 8, 2017
16
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 module:
https://www.ebay.com/itm/GY-273-HMC...896943&hash=item5d37766e10:g:7PwAAOSwYvFZL5aC
 

Sensacell

Joined Jun 19, 2012
3,448
First question to ask yourself is "is my expectation of performance matching the capabilities of the device?"

It seems perfectly reasonable that there will be 'some' mixing of X,Y outputs, what are you expecting?
 

Thread Starter

impeham

Joined Dec 8, 2017
16
First question to ask yourself is "is my expectation of performance matching the capabilities of the device?"

It seems perfectly reasonable that there will be 'some' mixing of X,Y outputs, what are you expecting?
i actually need only the Z output (compass), but it is heavily affected by the y tilt and that's not good for me
 
Top