05-11-2022 07:24 AM - edited 05-11-2022 02:05 PM
i have implemented my code for BMM but i can not determine if my result is correct or not as if the the x-axis is in the north it gives me result different from if the y-axis in the north so please can you provide us with the correct result to check if i am correct or not
second thing where can i find the description for the reserved registers for data trim?
last thing is there any type of offset or calibration that needed for the sensor to work fine?
thanks in advance
05-11-2022 08:18 AM
Hi hmohamed,
You could refer BMM160 sensor API from github. The code was developped by our software team, included magnetometer data compensation.
https://github.com/BoschSensortec/BMM150-Sensor-API
05-11-2022 08:49 AM
I already followed the steps in your repo it is very helpful repo as well so thank you for the repo. but i didn't get the result yet if it is right or not.
The attached photo is my result and the orientation as follow -> y-axis towards the north and x-axis towards the west. i am in forced mode with repetition of nXY = nZ = 3 and the ODR is to default value
05-11-2022 08:54 AM
also please can you tell me if there is calibration needed for the sensor before reading the data ?
05-12-2022 09:42 AM
Hi hmohamed,
BMM150 only output RAW data. The calibration is usually completed by the algorithm on the host side.