3 ms·
Not all microcontrollers[1]} have FIFOs for stuff like this, but perhaps you meant implementing it in software as a regular queue or something. Anyway, even ea
by unwind 1y ago
Not all microcontrollers[1]} have FIFOs for stuff like this, but perhaps you meant implementing it in software as a regular queue or something.
Anyway, even easier since the OP seems to be dealing a lot with the time between samples, would be to just make sure that at least 2.5 ms have passed before reading the sensor again. Right?
[1] Not sure if older blog posts detail the hardware, I do remember reading about this product on here before.
- simgt 1y agoTheir chip seems to be [0] an LIS3DH from ST, it has a fifo [1]. I actually haven't come across a modern IMU that doesn't have one. > would be to just make sure that at least 2.5 ms have passed before reading the sensor again You're resampling at the same rate by doing this, which won't be accurate due to very slight variations in timings. [0] https://cdn.shopify.com/s/files/1/0914/0181/4398/files/24-10-04_14-35-13_6253.jpg https://cdn.shopify.com/s/files/1/0914/0181/4398/files/24-10... [1] page 19, https://www.st.com/resource/en/datasheet/lis3dh.pdf https://www.st.com/resource/en/datasheet/lis3dh.pdf
- mrheosuper 1y ago>Not all microcontrollers[1]} have FIFOs No, i mean the FIFO inside the sensor. The sensor will populate FIFO itself, and trigger interrupt to MCU when the FIFO is full(or half full, configurable)