2018-02-16 08:41 AM
hi everyone!
i did this configure LSM9DS1:
//Magnetometer
Write1AddressMag(CTRL_REG1_M,0x70); Write1AddressMag(CTRL_REG2_M,0x00); Write1AddressMag(CTRL_REG3_M,0x00); Write1AddressMag(CTRL_REG4_M,0x0c); Write1AddressMag(CTRL_REG5_M,0x00); Write1AddressMag(INT_CFG_M,0x00);//no interruptthe frequency should be 10Hz to Z axis magneticthis is not occur.
my code:
while(1){
if(STATUS_REG_M & 0x04){
PIN_OUT ^= 1;//Toggle pin
read3axisMagnetic();
}
}
Does anyone have any ideas?
Thanks
#z-axis #lsm9ds1 #3-axis