Android Question Maximum Frequency of accelerometers

diegogubellini

Member
Licensed User
Longtime User
Hello all

I used the code showed in this tutorial to get the signal of two accelerometers: http://www.b4x.com/android/forum/threads/orientation-and-accelerometer.6647/

I need a quite high sampling rate in the accelerometers and after apply a IIR filter. The updating of value of accelerometers is made by the sub _onchanged.

The problem I have is the frequency of the app update the value of each sensors. Moving the phone the value changes (more less) 3-4 times per second. I would like to obtain a frequency of (at least) 20-30 Hz. There is some parameters that I can change to have more.

I tested the app in two differents phone: huawei ascend y300 and samsung galaxy S4 and the result is the same... Let say it does not matter of the power of phone.

Thanks for help
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…