Receive BLE data from reHub Glove and retransmit to OSC
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
node_modules
README.md
ble2oscLeft.js
ble2oscRight.js
package.json

README.md

ReHub bleGlove2osc

N|Solid

ReHub bleGlove2osc receive the data from glove through BLE ( Bluetooth Low Energy ) and sends them to OSC server. The ip of the osc server is 127.0.0.1 and ports are 12000 or 12001.

The data format is an array: data[0] = "r" o "l" for right o left ( view on gloveFirmware32u4-repos )

6DOF data

data[1] = pitch data[2] = roll data[3] = yow

Finger flex sensors data

data[4] = thumb data[5] = thumbrot data[6] = index data[7] = middle data[8] = ring data[9] = little

Pressure sensor data

data[10] = thumbpad data[11] = indexpad data[12] = middlepad data[13] = ringpad data[14] = littlepad

The data are sent in format: /leftGlove [pitch,roll,yow,thumb,thumbrot,index,middle,ring,little,thumbpad,indexpad,middlepad,ringpad,littlepad]

OR /rightGlove [pitch,roll,yow,thumb,thumbrot,index,middle,ring,little,thumbpad,indexpad,middlepad,ringpad,littlepad]

only if the data received from glove is in correct format.

Installation

bleGlove2osc requires Node.js to run.

Install the dependencies:

$ cd bleGlove2osc
$ npm install
$ node ble2oscLeft.js ( or node ble2oscRight.js )

Dependencies

Blendmicro nodeJs on gitHub blendmicro-repos

Todos

License

work in progress