GithubHelp home page GithubHelp logo

seco / node-webduino Goto Github PK

View Code? Open in Web Editor NEW

This project forked from coopermaa/node-webduino

0.0 0.0 0.0 448 KB

A web FrontEnd for Arduino

CoffeeScript 18.27% JavaScript 48.11% CSS 4.97% HTML 28.66%

node-webduino's Introduction

node-webduino

A web FrontEnd for Arduino. Real-time I/O monitoring and controlling in your browser.

arduino

Installation

See http://nodejs.org on how to setup Node, NPM and CoffeeScript, then clone this repository and prepare it for use with:

$ git clone https://github.com/coopermaa/node-webduino
$ cd node-webduino
$ npm install

Upgrade socket.io of the socketstream dependency package. There is a bug "can't set headers after they are sent" in socket.io < 0.9.15, so we have to upgrade socket.io.

cd node_modules/socketstream
npm install [email protected] --save

Note the lastest socket.io seems not compatible with socketstream.

Usage

Upload Standard Firmata to your Arduino. Better to change samplingInterval from 19ms to larger, for example 50ms. For Arduino Mega, 100ms is sugggested.

int samplingInterval = 50;

You'll need to adjust the name of the serial port to match your setup in the file app.coffee, then start the server using either of these:

$ coffee app.coffee
$ nodemon app.coffee

Then point your browser at http://localhost:3000/.

Here is a screencut of node-webduino for Arduino UNO:

screencut

Dockerized node-webduino

Suppose your Arduino is on /dev/ttyS1, then save the alias setting below to ~/.profile or ~/.bashrc:

$ alias node-webduino="sudo docker run -d --privileged \
   -v /dev/ttyS1:/dev/ttyACM0 \
   -p 3000:3000 coopermaa/node-webduino"

Then run following to start node-webduino:

$ node-webdunio

License

The MIT License

Credits: Developers of node.js, Arduino, SocketStream, AngularJS, firmata and people who involved in improving Web technologies.

node-webduino's People

Contributors

coopermaa avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.