Skip to main content
Visitor II
November 20, 2013
Question

LSM330DL - DataRready Interrupt

  • November 20, 2013
  • 6 replies
  • 1428 views
Posted on November 20, 2013 at 10:38

Hi community,

i am working on an application with the accelerometer and gyroscope in LSM330DL.

At the moment I try to use the DataReady-Interrupt for the gyroscope.

My understanding of DRDY-Interrupt is that whenever new data is stored in the register, the sensor pull down the DRDY-Pipe.

I have tryed several configurations, hardware adjustments and so on but nothing works properly.

The DRDY-Pipe is always in high-state.

At the moment i have a very basic test program, where i initialize the sensor and wait for an interrupt.

In the following my configuration of the gyroscope:

REG1: 400Hz - 50Hz cutoff, normal mode, xyz - enable

REG2: everything 0

REG3: I2_DRDY enable

REG4: continuous update, LSB, 2000dps, 4-wire

REG5: FIFO disabled, HPF disabled

I asked the same question more than one week ago to the st-support, but no one answered me.

I hope you can help me!

Best Regards,

Patrick

#lsm330dlc-drdy-interrupt #lsm330dl #gyroscopes #drdy-int.
    This topic has been closed for replies.

    6 replies

    Visitor II
    November 22, 2013
    Posted on November 22, 2013 at 14:20

    Hello Patrick,

    In order to better answer your question, could you please provide the full configuration set of the registers that you are using?

    If possible as well, could you please attach the schematic of your module setup?

    Thank you,

    Thiago Reis

    pzAuthor
    Visitor II
    November 25, 2013
    Posted on November 25, 2013 at 10:34

    The schematic is attached.

    My configuration:

    CTRL_REG1_G: 1010 1111 | 400Hz, 50Hz cutoff. normal mode, axis enabled

    CTRL_REG2_G: 0000 0000

    CTRL_REG3_G: 0000 1000 | DRDY enable

    CTRL_REG4_G: 0011 0000 | 2000dps

    CTRL_REG5_G: 0000 0000

    REFERENCE/DATACAPTURE_G: 0000 0000

    FIFO_CTR_REG_G: 0000 0000

    INT1_CFG_G: 0000 0000

    I hope that's what you asked for.

    Thank you,

    Patrick

    ________________

    Attachments :

    RotationLED.pdf : https://st--c.eu10.content.force.com/sfc/dist/version/download/?oid=00Db0000000YtG6&ids=0680X000006HtzP&d=%2Fa%2F0X0000000ab1%2Fi6Zgxx5tDh6NsOGTaG1iyHAcY8U83RhYOD1JU5D73FQ&asPdf=false
    pzAuthor
    Visitor II
    December 6, 2013
    Posted on December 06, 2013 at 16:14

    Hello?

    Can you help me pls?

    Visitor II
    December 10, 2013
    Posted on December 10, 2013 at 15:10

    I have the same problem with another sensor ( L3GD20). The data ready is configured but the line allways stay high unless i manually read a full set of values ( in my case from register 0x28 to register 0x2D). Another strange thing ( at least strange to me ) is that when the interrupt trigger after reading it get cleared every time after a different number of ms ( from 4 to 12 ). I expected to get a drdy interrupt ever 1/95 sec considering my gyro is now set to output at 95 hz.

    pzAuthor
    Visitor II
    December 16, 2013
    Posted on December 16, 2013 at 10:45

    Hi sires,

    i have exactly the same behavior as you descriped with my sensor.

    If you are able to fix this strange thing, can you please post this here?

    I will keep this post up-to-date.

    Visitor II
    November 3, 2014
    Posted on November 03, 2014 at 10:07

    Hi

    is there any solution available for this problem. I have same behaviour with the LSM330DLC Accelerometer/Gyroscope.

    Regards

    Markus