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?
Z axis raw data from HMC5883L is 0 or -1
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
- mylogic
- Posts: 2
- Joined: Fri Jan 29, 2016 1:02 am
Z axis raw data from HMC5883L is 0 or -1
- Attachments
-
- Compass Problem.jpg (244.63 KiB) Viewed 290 times
- adafruit_support_mike
- Posts: 67446
- Joined: Thu Feb 11, 2010 2:51 pm
Re: Z axis raw data from HMC5883L is 0 or -1
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)?
- mylogic
- Posts: 2
- Joined: Fri Jan 29, 2016 1:02 am
Re: Z axis raw data from HMC5883L is 0 or -1
Yes, it is. Z value always 0 or -1 for any different rotation angles.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)?
- adafruit_support_mike
- Posts: 67446
- Joined: Thu Feb 11, 2010 2:51 pm
Re: Z axis raw data from HMC5883L is 0 or -1
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)
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)
Please be positive and constructive with your questions and comments.