10-06-2019 03:19 PM
Hi
I've been able to get the BMX160 setup to update the Acc & Mag at 50Hz.
I followed the setup in the BMX160 datasheet, Table 16. Only difference is the ODR = 0x07 and REPXY and REPZ are set for to the high accuracy preset.
I have enabled Data Ready on INT1 pin.
When I receive an interrupt from INT1, I check the STATUS (0x1B) register and can confirm that both drdy_acc and drdy_mag are set (value=0xB0).
I then do a block ready from DATA_0 to DATA_19 and confirm that the Acc data is still correct.
However the Mag data does not change. I get an initial non-zero measurement, but then nothing changes further.
Why is the Mag data not changing?
Is there some setting I'm missing in the Mag setup?
Thanks
Solved! Go to Solution.
10-28-2019 09:22 AM
01-10-2020 07:59 PM
I had the same issue and after looking at the solution in this thread, I determined that it is necesary to set the register 0x6B to 0x02. Aaccording to the BMI160 manual, thi sets Primary interface: autoconfig / secondary interface: Magnetometer. The BMX160 manual indicates that these bits are reserved.
Table 16 should have as the first instruction: Write, 0x6B, IF_CONF, 0x02, set secondary interface to Magnetometer
01-14-2020 10:18 AM
@lvoc wrote:
I had the same issue and after looking at the solution in this thread, I determined that it is necesary to set the register 0x6B to 0x02. Aaccording to the BMI160 manual, thi sets Primary interface: autoconfig / secondary interface: Magnetometer. The BMX160 manual indicates that these bits are reserved.
Table 16 should have as the first instruction: Write, 0x6B, IF_CONF, 0x02, set secondary interface to Magnetometer
Actually, in BMX160, the secondary interface is set internally to Magnetometer, regardless of the register value. This register write is unnecessary. I do not know what was the issue in your case, but it must have been somewhere else.
o_o