cancel
Showing results for 
Search instead for 
Did you mean: 

LSM303DLM

nguyenvanhiep_hd1985
Associate II
Posted on September 08, 2011 at 11:23

Hi all,

I'm working with LSM303DLM. I have read successfully accelerometer and magnetometer value. Now, i want to use LSM303DLM module as a wakeup device. When my motorbike don't move, the MCU goes to Standby mode and the motorbike run, LSM303DLM will wakeup the MCU. I use INT1 or DRDY pin of LSM303DLM. How can anybody help me ?

Thanks,

#gyro
4 REPLIES 4
dsouzahansen
Associate II
Posted on September 08, 2011 at 16:52

Hi,

   You have to use the INT1 interrupt.You will have to set the threshold duration of activity detection in the accelerometer before you sleep.When you get an interrupt you have to wake up and see if activity is detected in the interrupt source register.

Hope this helps to get you started

nguyenvanhiep_hd1985
Associate II
Posted on September 09, 2011 at 09:53

Thanks for your help,

I have configured the LSM303DLM in the sleep-to-wakeup, and set threshold, duration value in the CTRL_REG1_A register (in my file). But when i move my board, have no interrupt in INT1 pin.

Thanks,

________________

Attachments :

LSM303DLM.c : https://st--c.eu10.content.force.com/sfc/dist/version/download/?oid=00Db0000000YtG6&ids=0680X000006HzY4&d=%2Fa%2F0X0000000bNT%2F.6Knbk897G89lN5PYfGSVeHYt7JYeNPZj1fwKpw_cq8&asPdf=false
Fabio
Associate II
Posted on September 28, 2011 at 15:00

For specific items strictly related to LSM303DLM you can ask for ''Online Support''

in the product folder page:

http://www.st.com/internet/analog/product/251902.jsp

Best Regards

iNEMO Team

mengsophia
Associate II
Posted on June 18, 2012 at 16:58

hi, well, I'm dealing with lsm330dl, for the gyro part, it seems that i can't get the correct xyz output ,even my board is stastic, the output degree can be thousands of degrees. i'm so confused that don't know how to solve this problem,Since u alr got the right value, can u give me a help?

________________

Attachments :

gyrotest.txt : https://st--c.eu10.content.force.com/sfc/dist/version/download/?oid=00Db0000000YtG6&ids=0680X000006HzXz&d=%2Fa%2F0X0000000bNR%2F8CTs56144uXD7ASaOHrWySBOnCzAi5YRkcjagbAuNmc&asPdf=false