Skip to main content
Visitor II
September 1, 2021
Solved

LSM6DS33 -> Bulk read FIFO

  • September 1, 2021
  • 1 reply
  • 812 views

Hello,

I am using the FIFO to read the gyroscope and accelerometer data from the LSM6DS33 using a Raspberry Pi. It is connected over I2C at a frequency of 400kHz. Currently it takes between 4-7 seconds of constant reading to empty out the FIFO and by then it's almost full again. Is there a way to do a bulk read of the FIFO rather than read each sensor reading separately?

Thanks,

Mahmoud

    This topic has been closed for replies.
    Best answer by TSand.1

    Hi, if you configure the LSM6DS33 in FIFO mode (i.e. the filling of the FIFO stops when the limit is reached), and you choose the ODR, it will take 1/ODR * FIFO size (8 kbyte) to fill the FIFO. You have to configure the FIFO_CTRL5 (0Ah) register, in FIFO mode, and you can program a custom FIFO threshold in FIFO_CTRL1 (06h) and FIFO_CTRL2 (07h).

    1 reply

    TSand.1Answer
    Visitor II
    September 3, 2021

    Hi, if you configure the LSM6DS33 in FIFO mode (i.e. the filling of the FIFO stops when the limit is reached), and you choose the ODR, it will take 1/ODR * FIFO size (8 kbyte) to fill the FIFO. You have to configure the FIFO_CTRL5 (0Ah) register, in FIFO mode, and you can program a custom FIFO threshold in FIFO_CTRL1 (06h) and FIFO_CTRL2 (07h).