Git Product home page Git Product logo

propeller-node's Introduction

This is a in progress experiment in connecting a Parallax Propeller MCU via a serial link through a node.js server to web pages.

The aim is to demonstrate creating an interactive GUI for a Propeller application.

Install

Checkout the code and install some required node modules:

$ git clone https://github.com/ZiCog/propeller-node
$ cd propeller-node
$ npm install express
$ npm install socket.io
$ npm install serialport

Run

Edit the code and adjust server port (default is 8080) and serial port device (default is /dev/ttyS0)

Just run it (May need root privs or fix the permissions on your serial port first)

$ sudo node propeller-node.js

You should see the following on the console:

info  - socket.io started
Server running at undefined:8080/
Serial open.

If that is correct you should now be able to access it's web page on http:/localhost:8080 (Or from a another machine use the appropriate IP address).

The front page (index.html) does nothing much yet. If you look at the HTML you will see there is some websocket stuff comming.

Hit the link "View the raw serial input buffer" at the bottom of that page and you should see the latest data update comming into the serial port. Refresh that page to see more updates.

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.