DA14583 Sensor Dongle Gyroscope data conversion using IoT application

Learn MoreFAQsTutorials

6 posts / 0 new
Last post
vishnuatdialog
Offline
Last seen:2 months 3 weeks ago
加入:2017-07-25 07:44
DA14583 Sensor Dongle Gyroscope data conversion using IoT application

Hello Dialog,
Please clarify how you are converting the advertising gyroscope sensor data(0x010202FFFF0400F9FF) into the dps value and plotting the graphical view in IoT Sensors application. I have tried to decode it but I couldn't able to understand. Please help out this we are developing an application using these gyroscope values. If possible please share the coding part using the application.

Thank you
D.Vishnu

Device:
PM_Dialog
Offline
Last seen:39 min 17 sec ago
工作人员
加入:2018-02-08 11:03
Hi vishnuatdialog,

Hi vishnuatdialog,

Please check theUM-B-063 User Manual DA14583 IoT sensor development kitfrom our support portal/ Regarding this document the gyroscope sensitivity specified in degree/s per full-scale value (range is -32768 to +32767). For example, if set to 2000 then a gyro value of 1 corresponds to a rate of rotation of 2000 / 32768 = 0.061 degree/s. Please check section 10.2.2 for getting more information. Regarding your second question about plotting the graphical view in IoT Sensors application, could you please clarify it?

Thanks, PM_Dialog

vishnuatdialog
Offline
Last seen:2 months 3 weeks ago
加入:2017-07-25 07:44
Hello Dialog,

Hello Dialog,
In IoT sensor application for plotting you are using the following code right?

In this reference code

public void processRawValues(int[] values)
{
float gyroX = values[0] / sensitivity;
float gyroY = values[1] / sensitivity;
float gyroZ = values[2] / sensitivity;

float gyroValues[] = new float[]{gyroX, gyroY, gyroZ};
GyroscopeSensor.getInstance().processValue(gyroValues);

this.addXValue(gyroX); //graphical plot in IoT sensor application
this.addYValue(gyroY);
this.addZValue(gyroZ);
}
Value(0), Value(1), Value(2) are already in the format of raw gyro values in dps right? why you are using gyroX, gyroY,gyroZ values for graphical ploting?

By default, any gyroscope will provide offset in all axis, How you are compensating this gyro offset values?

Thank you
D.Vishnu

PM_Dialog
Offline
Last seen:39 min 17 sec ago
工作人员
加入:2018-02-08 11:03
Hi vishnuatdialog,

Hi vishnuatdialog,

Could you please in which application code you are referring to? In the IoT mobile source application code?

Thanks, PM_Dialog

vishnuatdialog
Offline
Last seen:2 months 3 weeks ago
加入:2017-07-25 07:44
Hello Dialog,

Hello Dialog,
Yes, the IoT Mobile source application code.

Thank you
D.Vishnu

PM_Dialog
Offline
Last seen:39 min 17 sec ago
工作人员
加入:2018-02-08 11:03
Hi vishnuatdialog,

Hi vishnuatdialog,

Which version of IoT mobile application code are you working on? I think that is an old version of the mobile application. The values are raw data from the sensor and should be divided with the current sensitivity in order to get the correct value (dps). The graph is just for an example, and the re is not specific reason why these values have been chosen. I possible reason would be because these values giving a good visual feedback.

Thanks, PM_Dialog