Skip to main content
Visitor II
February 16, 2018
Question

LSM9DS1 magnetic Z axis unstable time acquisition

  • February 16, 2018
  • 0 replies
  • 568 views
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
    This topic has been closed for replies.