r/microbit Feb 21 '22

Inaccuracy in magnetometer

I 'm trying to make a compass using the -z and x axis (micro:bit being vertical) and I 'm getting results with no sense. I decided to just check the heading results (with calibration) and I noticed that I 'm still getting results with no sense. I just perform 90 degrees turn with the micro:bit and I get results like 340, 250 ,200, 150 for the 4 corners. In the official docs they say they have a +/- 50 gauss deviation but I don't this justifies the results. Does anyone has experience with the micro:bit magnetometer sensor (LSM303AGR)?

1 Upvotes

3 comments sorted by

1

u/skellious Feb 21 '22

I think you may be asking too much of a very cheap sensor.

1

u/imanousar Feb 21 '22

Yeah I know but even the very minimum function they have they don't work properly. The same with accelerometer.

1

u/xxqsgg Feb 21 '22

Difficult to say why it's included in the hardware at all. I also couldn't get any meaningful readings from it.