cancel
Showing results for 
Search instead for 
Did you mean: 

LSM9DS1 magnetic Z axis unstable time acquisition

ismael teodoro
Associate II
Posted on February 16, 2018 at 17:41

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 interrupt

the frequency should be 10Hz to Z axis magnetic

this 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
0 REPLIES 0