Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/webduinoio/webduino-js

⚙️ The Webduino Javascript Core, for Browser and Node.js
https://github.com/webduinoio/webduino-js

arduino firmata javascript mqtt nodejs webduino

Last synced: 4 days ago
JSON representation

⚙️ The Webduino Javascript Core, for Browser and Node.js

Awesome Lists containing this project

README

        

# webduino-js
The Webduino Javascript Core, for Browser and Node.js

## Installation
#### Browser
Using [bower](http://bower.io):
```sh
$ bower install webduino-js#dist
```

Insert scripts:
```html

... (modules used)
```

Or all-in-one:
```html

```

#### Node.js
```sh
$ npm install webduino-js
```

## Usage
**webduino-js** provides isomorphic APIs:

```javascript
var webduino = require('webduino-js');

var board, led;

board = new webduino.WebArduino('device_id');

board.on('ready', function() {
led = new webduino.module.Led(board, board.getDigitalPin(10));
led.on();
});
```

## Transports
**webduino-js** talks to Webduino Dev Board via MQTT by default. However, since **webduino-js** speaks [Firmata](https://www.arduino.cc/en/Reference/Firmata), we can also _directly_ talk to standard Arduino or any dev board that understands firmata.

Currently we have transports supporting USB serial port and Bluetooth (HC-06 tested) communications: _(Note: you have to install Firmata library first)_

* [webduino-serial-transport](https://github.com/webduinoio/webduino-serial-transport)
* [webduino-bluetooth-transport](https://github.com/webduinoio/webduino-bluetooth-transport)

## See Also
* [Webduino Dev Board and Webduino Dev Kit](https://webduino.io)
* [The Firmata Protocol](https://github.com/firmata/protocol)
* [Arduino Firmata Installation](http://www.instructables.com/id/Arduino-Installing-Standard-Firmata)

## License
This project is licensed under MIT license, see [LICENSE](LICENSE) for more information.