2018-06-07 11:55 AM
I am running LIS2DS12 with SPI using Arduino libraries and streaming data to microSD using the accelerometer FIFO buffer.
Running with all 3 axes streaming to microSD works properly at 1600 Hz.
When I switch to using the module to save the magnitude of the 3 axes, the resulting data are sampled at 800 Hz not 1600 Hz (testing by recording 300 Hz continuous waveform, which appears as 600 Hz).
Running the module at 3200 Hz results in a triangle wav in the FIFO buffer.
Full code here:https://github.com/loggerhead-instruments/TTFT/tree/master/Arduino/TTFTwav
Are there limitations on the magnitude module sample rate?