This repository contains a set of tools to connect a Werium IMU sensor with ScratchX.
It consists on two components: a local server that connects to the sensor and relays the data on a websocket, and the ScratchX Werium extension which reads the data from the websocket.
The repository also includes an example Scratch model.
-
Pair Werium via Bluetooth (PIN: 1234) and set the serial port bitrate/baud rate to 57600 (You can also emulate the device using an Arduino and the code in arduino_werium_emulation folder)
-
Run the server binary from server folder
-
In Scratch open the model scratch_model.sb2
-
In Scratch, shift-click on load extension to load werium_extension.js
- Install node.js in your computer
- To build the server executables for go to the server folser and run:
cd server
npm install
npm install -g pkg
pkg werium_server.js
- A PC with Windows, OSX or Linux, and bluetooth to connect to Werium
- A modern web-browser (tested with Google Chrome 70.0)
This repository is managed by Stefano (to.stefano.piazza@gmail.com). All the software here contained is released as Open Source using the AGPL License.
