cancel
Showing results for 
Search instead for 
Did you mean: 

LSM9DS1 magnetic interrupt don't work (is this a bug?)

ismael teodoro
Associate II
Posted on February 12, 2018 at 22:32

anybody helpe-me

LSM9DS1 magnetic interrupt

in my tests:

register INT_SRC_M no clear interrupt pin -> when read. (no away)

Does anyone have any ideas

?
1 ACCEPTED SOLUTION

Accepted Solutions
ismael teodoro
Associate II
Posted on February 14, 2018 at 21:12

Hi everyone!!!

there is NO BUG no pin.

this pin only work with INT_THS_L(32h), INT_THS_H(33h) register.

I was wrong. I thought this pin had DRDY_M function.

my apologies

.

I'm sorry

:(

View solution in original post

4 REPLIES 4
Posted on February 12, 2018 at 23:17

Perhaps stick to one thread 

 

There's probably 5 or 6 registers that need setting up depending on what source(s) and threshold(s) you're attempting to use.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
ismael teodoro
Associate II
Posted on February 13, 2018 at 14:14

Thanks for attention

this is my config test:

INT_GEN_CFG_XL(0x06) -> 0x00 //no interrupt accelerometer and gyroscope

INT1_CTRL (0x0C) -> 0x00 //no interrupt 1 accelerometer and gyroscope PIN

INT2_CTRL (0x0D) -> 0x00 //no interrupt 2 accelerometer and gyroscope PIN

CTRL_REG1_G (0x10) -> 0x00 //gyroscope POWER DOWN

CTRL_REG6_XL (0x20) -> 0x00//accelerometer POWER DOWN

INT_GEN_CFG_G (0X30) -> 0x00//no interrupt gyroscope

CTRL_REG1_M (0x20) -> 0x38//Magnetic Medium-performance mode 40Hz

CTRL_REG2_M (0x21) -> 0x20//Magnetic 8 gauss

CTRL_REG3_M (0x22) -> 0x00//Magnetic Continuous-conversion mode

CTRL_REG4_M (0x23) -> 0x04//Magnetic Z axis Medium-performance mode

INT_CFG_M (0x30) -> 0x85//Magnetic interrupt X axis, magnetic INT PIN enable, active high

after that the interrupt occur normally,

then i read INT_SRC_M (0x31) and magnetic interrupt pin no clear

Does anyone have any ideas

thanks

 
Posted on February 13, 2018 at 14:15

thanks i put my config below

ismael teodoro
Associate II
Posted on February 14, 2018 at 21:12

Hi everyone!!!

there is NO BUG no pin.

this pin only work with INT_THS_L(32h), INT_THS_H(33h) register.

I was wrong. I thought this pin had DRDY_M function.

my apologies

.

I'm sorry

:(