I'm using the HMC5883L. Whilst it's generally giving correct data. It is also demonstrating a very extreme jitter with the values. For example, if the value is at 84 - It will continuously print between a few values e.g 83/84/85.
Whilst it didn't need your comment I'll explain further - by extreme, I mean the speed in which these values are changing. Either way, thanks for the response.
Averaging would be a great option, the only problem seems that most of the time, the value is only changing between two values and its inconsistent. So the result of the average is inconsistent too.
dean_ixd:
I'm using the HMC5883L. Whilst it's generally giving correct data. It is also demonstrating a very extreme jitter with the values. For example, if the value is at 84 - It will continuously print between a few values e.g 83/84/85.
That's as good as you'll get with a MEMS magnetometer. They are not precision devices, they are small and
they are cheap, those are the strong points. If you want precision you need a different technology.
[ You might find some are rather better than others of course, but they are not SQUIDs! ]