Hello everyone,
I am facing an issue in my project where I am trying to connect the BMI270 (accelerometer and gyroscope sensor) to an ESP32 board using the SPI interface. My goal is to set the sampling frequency to 1600 Hz (i.e., an interval of 0.625 ms) in order to collect 96 000 samples per minute.
Currently, I am able to read data from the sensor, but I am unable to achieve the desired number of samples, and I believe this may be related to sampling management or transmission speed.
Here are the details of my setup:
Microcontroller: ESP32
Sensor: BMI270
Communication Interface: SPI
Desired Sampling Frequency: 1600 Hz
Desired Data: 96 000 samples per minute
Can anyone help me solve this issue? Do you have any suggestions regarding:
Configuring the sensor (code, libraries, etc.)
A better-suited microcontroller for this type of project
Ways to improve SPI sampling rate and achieve a consistent number of samples?
I am also open to solutions or code examples that could help me reach my goal.
Thanks in advance for your help!