2022-05-16 05:08 AM
Hello,
I like to read data from the LSM6DSL continuously. But I am not able to choose the correct settings for the FIFO register.
If I set it to
"Continuous mode. If the FIFO is full, the new sample overwrites the older one"
It will stop after a few seconds and the available data is 0.
Do I always need to reset the mode of FIFO? Doesn't that mean that some data will be lost?
Thanks for your help :)
2022-05-16 05:08 AM
https://www.st.com/resource/en/datasheet/lsm6dsl.pdf This is the data sheet
2022-05-17 05:57 AM
Alright, I have it almost running. (only reading data)
I check the register how many data are available and use that value to pull new data.
But after a few minutes the FIFO is full, even if I pull all available data.
Another question to it: If I pull data, will it always be a full set of x,y and z data? or could it be only x and y at the end of the data I pulled? In other words. Will the FIFO always be filled with x,y and z data at once?
thx