BMM150 Bosch geomagnetic sensor Z axis problem

Any bugs you encounter with Flowcode should be discussed here.
Post Reply
stefan.erni
Valued Contributor
Posts: 758
http://meble-kuchenne.info.pl
Joined: Wed Dec 02, 2020 10:53 am
Has thanked: 149 times
Been thanked: 171 times

BMM150 Bosch geomagnetic sensor Z axis problem

Post by stefan.erni »

Hi Ben

Can you have a look if at the component BMM150 if is a problem reading Z axis?
It could be that at the Z axis MSB and LSB are swapped or not correct.
Somehow for this component, the register for z axis are not built same way as for x axis and y axis
If I read the registers directly I get reasonable values.


regards

Stefan

read register
Snag_42be6d.png
Snag_42be6d.png (149.46 KiB) Viewed 619 times
register are not the same:
Snag_49ac0b.png
Snag_49ac0b.png (134.2 KiB) Viewed 619 times
for z
Snag_431557.png
Snag_431557.png (360.29 KiB) Viewed 619 times

stefan.erni
Valued Contributor
Posts: 758
Joined: Wed Dec 02, 2020 10:53 am
Has thanked: 149 times
Been thanked: 171 times

Re: BMM150 Bosch geomagnetic sensor Z axis problem

Post by stefan.erni »

Hi Ben

I am not sure, the X and Y axis are also not in correct.
When I read the registers directly I get different values. I have tested these new values
I used a magnet to test the XYZ axes and the readings seem to be ok.

regards

Stefan

small magnet
Snag_45c4830.png
Snag_45c4830.png (255.8 KiB) Viewed 604 times
Magnet has two pol in this direction
Snag_45ca5c1.png
Snag_45ca5c1.png (12.03 KiB) Viewed 604 times
I put the magnet on all the six side in the same way and read the values
Snag_45e104d.png
Snag_45e104d.png (171.03 KiB) Viewed 604 times

Post Reply