https://github.com/spiaz/scratch-werium-extension
An extension to connect a Werium device to Scratch
https://github.com/spiaz/scratch-werium-extension
binaries javascript nodejs scratch serial-communication websocket-application
Last synced: about 2 months ago
JSON representation
An extension to connect a Werium device to Scratch
- Host: GitHub
- URL: https://github.com/spiaz/scratch-werium-extension
- Owner: spiaz
- Created: 2018-11-30T11:26:13.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-11-30T13:26:41.000Z (over 7 years ago)
- Last Synced: 2025-06-23T07:41:22.918Z (about 1 year ago)
- Topics: binaries, javascript, nodejs, scratch, serial-communication, websocket-application
- Language: JavaScript
- Size: 56.8 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Werium - Scratch interface

This repository contains a set of tools to connect a [Werium IMU sensor](http://www.weriumsolutions.com/) with [ScratchX](http://scratchx.org/#scratch).
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](arduino_werium_emulation) folder)
2. Run the server binary from [server](server) folder
3. In [Scratch](http://scratchx.org/#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](https://nodejs.org) in your computer
- To build the server executables for go to the [server](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.