Giter VIP home page Giter VIP logo

nodegpio's Introduction

Prototype of WebGPIO polyfill for node backend

This is a prototype of WebGPIO polyfill for node backend. Please see also this issue and WebGPIO polyfill.

HOW TO USE (for Raspberry pi 3)

  • Prepare a SD card of Rasbian OS (see here)
  • Install firefox browser
$ sudo apt-get install firefox-esr
  • Install node.js
$ git clone git://github.com/creationix/nvm.git ~/.nvm
$ source ~/.nvm/nvm.sh
$ nvm install v6.11.2
$ nvm alias default v6.11.2
  • Install polyfill
$ git clone https://github.com/naokisekiguchi/nodegpio.git
$ cd nodegpio
$ npm install
  • Launch app
$ npm start blink

Then, node backend will start and launch LED blink application ( turn on/off gpio6 on Rpi3 every secound ) by firefox browser.

And also,

  • npm start button command will launch button app.
  • npm start test command will launch gpio test app which is to set gpio6 to HIGH and soon set it to LOW. It's to test response speed of setting gpio value.
  • npm start command just launch only node backend.

Pin assgin CHIRIMEN to other device

Please edit a config.json to set pin assign.

{
  "DEVICE":"Raspberry pi",
  "PORTS": {
    // CHIRIMEN pin : other device pin
    "283": 4,
    "284": 17,
     :
  }
}

ISSUES

  • Currently, there is a delay of 1.5 to 2 times compared with CHIRIMEN board.
  • How define the pin assign to other devices.
    • CHIRIMEN has 6 pullup gpio pins but Rpi3 has only 5 pullup gpio pins.

LICENSE

Copyright (c) 2017 CHIRIMEN Open Hardware

Licensed under the MIT License

nodegpio's People

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

gurezo

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.