I've started recently working with the ADXL345 accelerometer with the goal of finding the velocity.
And so far, I'm getting "okay" results after applying a second-order Butterworth filter to the acceleration values.
If you see in the picture below taken from the ADXL345 datasheet p14, we can see that for example, to get 50Hz of useful signal frequency, 100Hz of sampling frequency needs to be used, which I guess follows the Nyquist-Shannon theorem.
I've configured my code to take measurements from the accelerometer every 100Hz which means the period should be 10 ms, but when I plot the signal and apply a Butterworth signal with a cutoff frequency of 50Hz I get the same signal, which is good because I wanted that 50Hz signal, but I don't know how it works, how come I took measurements every 100Hz and still got a signal of 50Hz? Any help at this point would be greatly apperciated.

