Z axis raw data from HMC5883L is 0 or -1

Adafruit Ethernet, Motor, Proto, Wave, Datalogger, GPS Shields - etc!

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
mylogic
 
Posts: 2
Joined: Fri Jan 29, 2016 1:02 am

Z axis raw data from HMC5883L is 0 or -1

Post by mylogic »

Hello.

My system built with Atmega128 for HMC5883L sensor I2C communication (100KHz).

X and Y raw data is ok, but the raw data for Z axis is very strange, always 0 or -1, which means read data from the sensor for Z axis is always 0 or 1.

Please refer the attached figure.

Is it normal?
Attachments
Compass Problem.jpg
Compass Problem.jpg (244.63 KiB) Viewed 290 times

User avatar
adafruit_support_mike
 
Posts: 67446
Joined: Thu Feb 11, 2010 2:51 pm

Re: Z axis raw data from HMC5883L is 0 or -1

Post by adafruit_support_mike »

Do you get the same output if you hold the breakout at different angles (rotating X to Y, Y to Z, Z to X, and so on)?

User avatar
mylogic
 
Posts: 2
Joined: Fri Jan 29, 2016 1:02 am

Re: Z axis raw data from HMC5883L is 0 or -1

Post by mylogic »

adafruit_support_mike wrote:Do you get the same output if you hold the breakout at different angles (rotating X to Y, Y to Z, Z to X, and so on)?
Yes, it is. Z value always 0 or -1 for any different rotation angles.

User avatar
adafruit_support_mike
 
Posts: 67446
Joined: Thu Feb 11, 2010 2:51 pm

Re: Z axis raw data from HMC5883L is 0 or -1

Post by adafruit_support_mike »

That sounds like a dead sensor.

Send a note to [email protected] with a link to this thread and your order number. The folks there will get you a replacement.


(#1746)

Locked
Please be positive and constructive with your questions and comments.

Return to “Arduino Shields from Adafruit”