Accelerometer - Sampling Rate

Learn MoreFAQsTutorials

2 posts / 0 new
Last post
pureform
Offline
Last seen:5 months 1 week ago
加入:2017-12-28 08:37
Accelerometer - Sampling Rate

Hi,

I got an issue regarding to changing sampling rate for accelerometer.

I plugin my phone to computer and then run your iOS source code on the computer while running the app on the phone.

On the phone, I go to the settings and change the accelerometer rate to 100HZ. (see attached pic)

On Xcode, I added one more line to print out & see what got recorded in NSLog every time there's new readings from the device. (see attached pic)

Then I found that even after changing the rate earlier on, for every second only 10 data point got recorded, meaning the rate doesn't really got changed.

How shall I change the rate properly?

附件:
Device:
MT_dialog
Offline
Last seen:8 hours 4 min ago
工作人员
加入:2015-06-0811:34
Hi pureform,

Hi pureform,

You dont mention which project you are using (RAW or SFL) but i assume from the pictures that you have attached that you are using the SFL project. If that is the case, then as i ve stated in this previous post herehttps://support.dialog-semiconductor.com/forums/post/dialog-smartbond-bl...and also mentioned in the documentation of the reference design UM-B-063 IoT Sensor Development Kit on page 33 that on the SFL "a part of the raw data is sent over BLE" and also in the document is stated on paragraph 11.7 page 81 that when the Sensor fusion raw enabled is activated, the maximum raw data transfer rate to the central device is the Sensor fusion data rate, and from the UI picture i see that this rate is 10Hz so that is why you get 10 samples per second on your setup.

Thanks MT_dialog