Smartbond IOT sensor - Accelerometer range

23 posts / 0 new
Last post
Jyro_gr
Offline
Last seen:3 years 7 months ago
Joined:2016-04-22 23:10
Smartbond IOT sensor - Accelerometer range

Hello,

Is it possible that i can have acceleration RATE above 100 Hz?
Same question for gyroscope.

Thanx!

Aris

Device:
MT_dialog
Offline
Last seen:1 month 2 weeks ago
Staff
Joined:2015-06-08 11:34
Hi Jyro_gr,

Hi Jyro_gr,

The available maximum data rate for the application is 100Hz, the sensor can support up to 1600Hz, but the sensor fusion implementation can't handle that fast update rate so there isn't any implementation for higher data rate. Same for the gyro as well the sensor can support up to 3200Hz data rate but not the application.

由于MT_dialog

Jyro_gr
Offline
Last seen:3 years 7 months ago
Joined:2016-04-22 23:10
So if i don't really care

So if i don't really care about the 'fusion' and i need just raw data, i can increase the data rate?
This has to be changed in the app or in the IOT code (via keil5 etc)?

THanx

MT_dialog
Offline
Last seen:1 month 2 weeks ago
Staff
Joined:2015-06-08 11:34
Hi Jyro_gr,

Hi Jyro_gr,

Its not only the sensor fusion, the limitation is valid for the raw project as well, since in higher rates of data generation the BLE is not going to be capable of transfering the data over the link one interrupt at a time. The higher data rates require connection intervals that are out of the minimum connection interval allowed by BLE. The minimum allowed is 7.5 and for 100Hz data rate we use about 10ms connection interval. You can update the IoT raw firmware through keil in order to get more data during one report (more data packed in a single connection interval) but the application isn't going to be able to follow, there should be a lag on what is displayed in the application and also the device isn't tested in operation that exceed the default data rates.

You can test this by undefining the USE_SPI_FLASH_CONFIG in order to load data from the default array and in the user_app_wrbl_config.h change the SENSOR_SAMPLE_RATE_IMU to a user sample case, for example SENSOR_SAMPLE_RATE_USER_CASE2 and choose for that sample case BMI160_ACCEL_OUTPUT_DATA_RATE_200HZ and BMI160_ACCEL_OUTPUT_DATA_RATE_200HZ.

由于MT_dialog

Jyro_gr
Offline
Last seen:3 years 7 months ago
Joined:2016-04-22 23:10
嗨了。

嗨了。
After taking several measures, i can see that the measurements rate (in the .log file) is the same as fusion rate! this means that even if accel rate is 100 Hz, the final rate is fusion rate=25Hz (i get 25 measurements / sec)

When i deactivate the fusion etc, i get no data at all, and the app's images are static.

How can i get proper data , even at 100Hz??
此外,我在哪里可以找到融合算法?

Thanx

Jyro

MT_dialog
Offline
Last seen:1 month 2 weeks ago
Staff
Joined:2015-06-08 11:34
Hi Jyro_gr,

Hi Jyro_gr,

As i mentioned in my previous post the application and the fw isn't ment to support this kind of data rate, regarding the FUSION algorithm, the source code is not available, only the object files.

由于MT_dialog

Jyro_gr
Offline
Last seen:3 years 7 months ago
Joined:2016-04-22 23:10
I understand this for rates

I understand this for rates>100Hz.
What i'm not able to understand, is why can't the app support 100Hz since it's a choice in the app?
The sensor can measure at those (100 Hz) rates but the BT isn't that capable of even those rates?
我问这个我真的需要彻底的原因understand whether it is or isn't possible to have a log of max 100 measurements / sec in the log file...

Thank you for your answers.

MT_dialog
Offline
Last seen:1 month 2 weeks ago
Staff
Joined:2015-06-08 11:34
Hi Jyro_gr,

Hi Jyro_gr,

关于传感器融合固件,数据生成取决于FIFO的WM从传感器中收集数据,该WM取决于传感器融合所选速率和传感器的实际速率。当该WM达到某个级别时,生成中断并且应用程序从FIFO读取数据。之后,处理包括加速度计,陀螺仪和磁力计数据的原始传感器数据,然后传递到传感器融合更新功能。在处理FIFO阵列并更新传感器融合算法后,only a part of the raw data is sent over BLE。在原始项目中,所有原始数据都会通过BLE发送到中央设备。

All the above can be found on the IoT User Manual UM-B-063 in section 7.3 general operation.

由于MT_dialog

Jyro_gr
Offline
Last seen:3 years 7 months ago
Joined:2016-04-22 23:10
Thanx a lot, i read the

Thanx a lot, i read the manual and was very enlightening!

I understand that " In the raw project all the raw data are send over BLE to the central device",
but my problem is how can i trigger all this? Which keil5 target_app example do i choose or modify in keil5, so i can load it via SmartSnippets onto my tag?

在your mobile app, when i choose fusion disabled, only environmental data are shown, so i guess there's no RAW project option in this one, right?
Thank you!

Jyro

MT_dialog
Offline
Last seen:1 month 2 weeks ago
Staff
Joined:2015-06-08 11:34
Hi Jyro_gr,

Hi Jyro_gr,

I dont quite get the question, how to trigger what ? If you mean how the device is forced to start sending data, this depends on the central side, the proper characteristics are written with the proper configurations in order for the device to starts send data. Both projects can be downloaded via smarts snippets to the 583, the raw project does not use the sensor Fusion Library and the SFL use this library. If you are interested only for raw data the raw project is what you should choose.

由于MT_dialog

Jyro_gr
Offline
Last seen:3 years 7 months ago
Joined:2016-04-22 23:10
谢谢您的回答,

谢谢您的回答,please let me be more specific.

1) I received the tags already programmed with the default program. The one that cooperates with your mobile app. This is an only SFL project or it can be used as a RAW project as well, depending on the mobile app i make?

2) I've downloaded on the tag various examples (with snippets) that come with the sdk. I need to download the original default program. Where can i find this?

3) "Both projects can be downloaded via smarts snippets to the 583", where can i find those projects? In which folder of the sdk i downloaded?

Thanx a lot!

Jyro

MT_dialog
Offline
Last seen:1 month 2 weeks ago
Staff
Joined:2015-06-08 11:34
Hi Jyro_gr,

Hi Jyro_gr,

1) There are two projects regarding the IoT sensor kit (RAW and SFL), both of them provide raw data measurements but with different implementations for each project. Only the SFL project returns sensor fusion results the RAW project returns only raw valus. So depending on which characteritsic you read you get a specific value.

2) The examples are not included in the SDK, you will be able to find the projects in the reference design section of the 583 product (DA14583 IoT Sensor Development Kit).

3)一样Q2。

Also please, for further questions please try to create a new thread instead of posting on the same post, since the current one has allready more than one replies and different questions and its difficult for someone to follow.

由于MT_dialog

Jyro_gr
Offline
Last seen:3 years 7 months ago
Joined:2016-04-22 23:10
就那么简单!

就那么简单!
Big thanx!
Works like a charm!

~Jyro

Jyro_gr
Offline
Last seen:3 years 7 months ago
Joined:2016-04-22 23:10
Thanx a lot, i'll try it soon

Thanx a lot, i'll try it soon and come up to you with the results!

Mahesh
Offline
Last seen:2年11个月前
Joined:2016-01-04 14:03
Hi,

Hi,
I am using "SmartBond IoT Sensor Development Kit" for Fusion data. By using "IoT Sensors mobile app", I am able to see the 3D motion on the mobile while rotating the sensor development kit. Presently, I am using other android app (Application specific android app) to rotate the image on the mobile. But I am not able to get the rotation on the android app. I think, I am not following proper procedure and factors to calculate the Yaw,. Pitch and Roll values.

I am able to receive the data of Fusion from the IoT sensor Development kit to my android app. Please guide me in doing the calculation to get the parameter to make the image to rotate on the android app.

问候,
Mahesh Chandana.

MT_dialog
Offline
Last seen:1 month 2 weeks ago
Staff
Joined:2015-06-08 11:34
Hi Mahesh,

Hi Mahesh,

The IoT sends the appropriate data from the senor fusion algorithm to the mobile phone through custom reports that are indicated in the documentation (please check Table 12 in the UM-B-063 document). If your application follows the same conventions as the IoT application you should be able to get some 3D movement. Is your application able to parse the data from the reports of the IoT ? What i can do in order to help is to send you the IoT android/iOS code if you like to use it as a reference.

由于MT_dialog

Mahesh
Offline
Last seen:2年11个月前
Joined:2016-01-04 14:03
Hi,

Hi,
Our application able to parse the data from the IoT. Please android code. it may helpful to understand the Fusion data processing.

Thank you very much for quick response.

问候,
Mahesh Chandana.

MT_dialog
Offline
Last seen:1 month 2 weeks ago
Staff
Joined:2015-06-08 11:34
Hi Mahesh,

Hi Mahesh,

A mail has been sent to the registered email address.

由于MT_dialog

Mahesh
Offline
Last seen:2年11个月前
Joined:2016-01-04 14:03
Hi,

Hi,
Thank you for your response. I will update to you.

Regrads,
Mahesh Chandana.

Mahesh
Offline
Last seen:2年11个月前
Joined:2016-01-04 14:03
Hi,

Hi,
I am using IoT code for DA14583 (version: v5.160.1.19). As per the "UM-B-063_DA14583_IoT_sensor_development_kit_1v1.pdf", It is supporting 4 Modes of operation.

1. Gyroscope, Accelerometer and Magnetometer (GAM) mode
2. Gyroscope and Accelerometer (GA) mode
3. Gyroscope Only (G) mode
4. Accelerometer and Magnetometer (AM) mode

Please guide me to understand the procedure to configure the mode. Where I can change the mode of operation in the code.

问候,
Mahesh Chandana.

MT_dialog
Offline
Last seen:1 month 2 weeks ago
Staff
Joined:2015-06-08 11:34
Hi Mahesh,

Hi Mahesh,

What sensors are enabled in your device depends in the sensor_config variable, which is populated either from the default values of the sensor_config_default variable in the user_sensor_config.c file or directly from the non-volatile memory, the sensor_combination member of the struct is the one that controls what sensors are going to be enabled. The default value is ENABLE_ALL_SENSOR_FLAGS. The code will check which flags are set in the user_init_sensor_combination and will enable the corresponding sensors.

由于MT_dialog

Mahesh
Offline
Last seen:2年11个月前
Joined:2016-01-04 14:03
Hi,

Hi,
What you have told is for enabling the sensors.

Could you please explain the procedure, so that while calculating the sensor fusion the IoT hardware only uses Gyroscope and Accelerometer data.

Please guide me to how to proceed.

问候,
Mahesh Chandana

MT_dialog
Offline
Last seen:1 month 2 weeks ago
Staff
Joined:2015-06-08 11:34
Hi Mahesh,

Hi Mahesh,

Your question was how to configure the mode of operation in the code between the available options (GAM, GA, G, AM). By enabling the sensors the device will feed the sensor fusion engine with the appropriate data available from the enabled sensors. For more information on the functionality of the IoT you can check the UM-B-063 in section 7.3 where the general operation is described in detail in every different state of the system.

由于MT_dialog