gForce 100 Embedded Suite User Guide

July 4th, 2017

Overview

This user guide is intended to help developers to understand how to adopt gForce 100 Embedded Suite to add gesture and forearm orientation control to their embedded design.

gForce 100 Embedded Suite includes one and one gForceJoint module.

Developers can wire the gForceJoint to the UART inteface of the target control system (e.g an Arduino board, or an Raspberry Pi) so that the target control system can be controled by the gForce 100 Armband.

gForce 100 Embedded Suite Block Diagram

Connecting gForce with gForceJoint

To make things easier, gForceJoint is designed to automatically find, pair and connect with the first gForce Armband with a strong Bluetooth signal (RSSI) level above a preset threshold. In general, it would be the closest gForce Armband that has the highest RSSI. Therefore, after powering on gForce 100 armband and gForceJoint, put the gForce 100 Armband as close to the gForceJoint as within 5 cm. Successful connection turns the green LED on the gForce Armband to flash at a relatively high frequency.

To disconnect, simply turn off the gForce 100 Armand.

Connecting gForceJoint with Target Control System

gForceJoint provides GPIO and UART to interface with target control system. However, UART is recommended.

The following figure shows the IOs of gForceJoint.

gForce Joint IO's

VCC is the power supply to the gForceJoint board. gForceJoint is designed to support 3.3V or 5V power supply.

The UART interface has the VCC/GND/TX/RX pins. The TX/RX is named from the perspective of gForceJoint board.

Relationship between LED Indicators And Gestures

gForceJoint has six LED lights to indicate recognized gestures.

gForceJoint Simple Diagram

Note: The Power LED will be on when the gForceJoint is powered on, otherwise off.

The following table shows the relationship between LED1…6 and gestures:

~ Fist Spread Fingers Wave-In Wave-Out Pinch Shoot Relax Unknown gesture
LED1 On Off Off Off Off Off Off Off
LED2 Off On Off Off Off Off Off Off
LED3 Off Off On Off Off Off Off Off
LED4 Off Off Off On Off Off Off Off
LED5 Off Off Off Off On Off Off Off
LED6 Off Off Off Off Off On Off Off

gForceJoint UART Data Protocol

gForceJoint UART adopts a data protocol similar to TLV (type-length-value).

gForceJoint UART consists of two types of data transfers:

  1. Command: data from the Target Control System to gForceJoint.
  2. Event: data from gForceJoint to Target Control System.

Right now, only Event is supported. (one-way)

Serial Port Setting

The following tables shows the serial port parameters used by gForceJoint:

Baudrate Data Bits Parity Stop Bits Flow Type
115200bps 8bit None 1bit None

Event Format

Byte[0:1] Byte[2]Bit[0:6] Byte[2]Bit[7] Byte[3] Byte[4:]
Magic Number Event type PackageID Flag Length Event Payload

Examples

Understanding The Event Format

The following examples help developers to understand Event format.

When the PackageID Flag equals 0 or 1, the Event Data to send is 0x01 (Gesture Fist, value = 0x01), the data packet is explained in the following figure:

  Magic Number Event Length Data
  Byte[0:1] Byte[2] Byte[3] Byte[4:N]
PackageFlag Id == 1 0xFF 0xAA 0x8F 0x02 Byte[4]=Package ID(0x00~0xFF),Byte[5]=gForce Data = 0x01
PackageFlag Id == 0 0xFF 0xAA 0x0F 0x01 Byte[4]=gForce Data=0x01

Arduino Example

gForce SDK for Arduino is a tiny library with sample code for developers to use gForce 100 Embedded Suite.