- Wed Nov 19, 2008 4:13 pm
#59440
I purchases the HMC6352 probably a week or two ago and its been giving me problems since day one. I had a working I2C on an AVR with the accelerometer so when I tried communicating with the compass, it was giving me register data but would output 00 and FF for the A command.
Once I started using Arduino and the Wire command, i was able to get data but the data now is starting to give me problems.
In heading mode, i would get a range of only 150ish to 250ish anytime i turn the device. If i started at 150, it would increase, then once it gets to about 250 it peaks and as I continue to rotate the device, it drops down back to 150. (150 when I take the data and divide by 10).
I have tried any possible fix I can think of. setting the Set/Reset to high. Calibrating in both the lab and outside the lab where I would hope no disturbance would occur if the lab had any RF in it. I've used sample code from both sparkfun and other sites.
I am thinking the chip is defective but it is able to do everything else fine (Read/Write RAM, etc). Has anyone ever experienced this? Any ideas?
Once I started using Arduino and the Wire command, i was able to get data but the data now is starting to give me problems.
In heading mode, i would get a range of only 150ish to 250ish anytime i turn the device. If i started at 150, it would increase, then once it gets to about 250 it peaks and as I continue to rotate the device, it drops down back to 150. (150 when I take the data and divide by 10).
I have tried any possible fix I can think of. setting the Set/Reset to high. Calibrating in both the lab and outside the lab where I would hope no disturbance would occur if the lab had any RF in it. I've used sample code from both sparkfun and other sites.
I am thinking the chip is defective but it is able to do everything else fine (Read/Write RAM, etc). Has anyone ever experienced this? Any ideas?