01-24-2021 08:05 PM
Hi every one,
I am working BMX160 Sensor by connecting it to QN9080 MCU via SPI Lines.
Till now am getting Raw data of ACC,GYRO and MAG.
As per datasheet i am getting ACC and GYRO data as 0,0,+/-1 and 0,0,0 in rest position(Page no:106 in bmi160 data sheet).
But how do i know whethet i am getting correct MAG data or not? Is there any tool or App is there for validating mag data from bmx160 sensor?
Thank you,
amarr
Solved! Go to Solution.
01-25-2021 03:02 AM
Hi Sir:
In earth field conditions, the normal sensor data may be tens of uT values.
But the magnetometer is easy to be interfered by soft iron and hard iron, so the values sensor output is hard to be confirmed. It means the raw data don't be checked valid or invalid directly.
First recommend you to finish magnetometer calibration to remove soft iron and hard iron influence and then verify it via algorithm, like compass or orientation.
01-28-2021 06:57 PM
Hi Jet,
Thank you for reply,
I did soft iron and offset compensation to mag raw values. Now i have 9 raw readings of ACC, GYRO, MAG and i am using madwick filter for converting raw data into pitch,roll and yaw. For doing this can i use Sensortime value from BMX160? Because some of using it and some of are not using it when they implementing madwick filter. I m confusing so please clarify me.
What is the use of sensortime from bmx160?
Thank you,
amarr
01-29-2021 02:47 AM
Hi Sir:
The sensortime is a free running counter, it is an interior counter of sensor and can be shared to external system.
After sensor power on, it will run, and the counter loop constantly from 0 to maximum and then to 0.
If there is host system time in your platform, it is not necessary for you to use it.
If you want to confirm the sensor data time or there is no system time, you can use it.
You can read the datasheet to know how to use it.
01-31-2021 06:48 PM
Hi Jet,
Thank you so much for your reply,
From bmx160, Raw MAG data will come in uTesla or can use any thing to convert it into it?