Users can easily get data from e-skin by using the e-skin SDK.
The e-skin SDK provides information of the strain gauges, accelerometer, gyro sensor, battery, and counter.
All the data are sent by serial communication and updated as a set of data, or “frame”.
Outputs from the strain gauges are the foundation of the e-skin.
When a strain gauge is stretched enough, the corresponding value represented in integer increases.
The range of the strain gauge varies from 0 to 1023.
The maximum value 1023 indicates the disconnection of the strain gauge.
On the other hand, the minimum value 0 represents an ideal wire without any resistor.
The minimum value thus does not appear in the realistic condition here.
The 3-axis accelerometer in the Hub detects the acceleration between -4[G] and +4[G].
It is represented as an integer and varies from -32768 to 32767.
The magnitude of the gravitational acceleration is ideally represented as -8192 in the y-component.
The gyro sensor varies from -32768 to 32767 and they correspond to -2000[dps] and +2000[dps], respectively.
The battery remaining capacity is also sent in a frame and varies from 0 to 100 percent.
It helps that developer displays the battery information to users.
The frames are distinguished by counters varying from 0 to 9999.
When the counter reaches 10000, it automatically starts from 0 again.