Skip to content

spiaz/scratch-werium-extension

Repository files navigation

Werium - Scratch interface

Scratch model for the scratch-werium extension

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.

Use

  1. 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)

  2. Run the server binary from server folder

  3. In Scratch open the model scratch_model.sb2

  4. In Scratch, shift-click on load extension to load werium_extension.js

Debug, development and building the executable

  • 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

Requirements

  • A PC with Windows, OSX or Linux, and bluetooth to connect to Werium
  • A modern web-browser (tested with Google Chrome 70.0)

Repo mantainer

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.

About

An extension to connect a Werium device to Scratch

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published