AnsweredAssumed Answered

LSM9DS1 magnetic Z axis unstable time acquisition

Question asked by ismael teodoro on Feb 16, 2018

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

Attachments

Outcomes