06-05-2020 07:41 PM - edited 06-05-2020 11:35 PM
Hi,
I would like to know how to ajust the Mag Data out of a BMX160 device. After ajusting the accel. and gyro data with the appropriate conversions from LSB units, I don't find any conversions for the mag data. I linked pictures of what I get, which turns around 100 for z and around -30 for x and y.
Am I right to be expecting something around 50 in an axis (earth's magnetic field) and close to 0 for the 2 remaining axis ?
Thanks for your help!
Jerome
Solved! Go to Solution.
06-06-2020 12:41 AM
BMX160 has built in BMM150 inside sensor.
So you can refer to the BMM150 API on Github with function: "bmm150_aux_mag_data".
Within this funciton, you can find how to convert the register output to uT.
06-08-2020 05:27 PM
This solution is accurate.
I would add that we should follow the advice at the end of this topic to get the correct z values.
Thank you !