HMC6352 working intermittently - help!
reubenwilcock
Posts: 2
Hi,
I have hooked up a HMC6352 compass module to a propeller board. I get data from the compass module, and most of the time it sends back the heading very convincingly.
However, sometimes it sends back the heading in a very small range - for example, despite the actual orientation it might range from only 200 - 230 degrees. It seems fairly random whether this happens or not. I would say that 9/10 times it works just fine, but then it will just get stuck in this dodgy mode where the heading is limited.
The calibration isnt an issue - after all, it works fine most of the time. I have tried calibrating it though - no difference.
This sensor is used to control a robot I'm building so its pretty important it works properly! By the way, I have tried another identical sensor - same thing happens.
Any suggestions?
Thanks,
Reuben
I have hooked up a HMC6352 compass module to a propeller board. I get data from the compass module, and most of the time it sends back the heading very convincingly.
However, sometimes it sends back the heading in a very small range - for example, despite the actual orientation it might range from only 200 - 230 degrees. It seems fairly random whether this happens or not. I would say that 9/10 times it works just fine, but then it will just get stuck in this dodgy mode where the heading is limited.
The calibration isnt an issue - after all, it works fine most of the time. I have tried calibrating it though - no difference.
This sensor is used to control a robot I'm building so its pretty important it works properly! By the way, I have tried another identical sensor - same thing happens.
Any suggestions?
Thanks,
Reuben
Comments
I have attached a version of basic_i2c_driver that I added clock stretching support, you can see if this helps.