Git Product home page Git Product logo

lightscythejs's Introduction

LightScytheJS: Light Paininting with LED Stripes

LightScytheJS is a control software for a LED stripe light painting tool written entirely in javascript/node.js.

The basic idea for this tool was developed by The Mechatronics Guy and brought to life with the LightScythe project which in turn took inspiration from Immaterials: light painting WiFi.

example1: ceshire cat photograph by Martin Voigt

More 30C3 images on flickriver, by Universalist on tumblr an on Martin Voigt's Photo Blog.

So the LightScyteJS is more an evolution of an existing concept than a new idea. It was intended to be an excercise to get accostumed to node.js using the Cubieboard platform and improved the original in some aspects:

  • Pure node.js makes the code easy to understand and to maintain for people not used to microcontroller platforms.
  • A web interface utilizing express and jQueryMobile provides convenient and fine tuned control of the device in the field.
  • Images to be displayed need no special preparation and are pre-processed on the device using gm and GraphicsMagick.

example2: some text photograph by Martin Voigt

Hardware

LightScytheJS Hardware

The hardware consists of

  • a cubieboard (raspberry Pi should work as well)
  • a WS2801 LED strip
  • an USB wifi dongle
  • a 2S LiPo and 5V BEC for power supply

endorse

Enable nodejs to use port 80

We use setcap:

    sudo apt-get install libcap2-bin
    sudo setcap 'cap_net_bind_service=+ep' `which node`

GPIO ports in user mode

If the node process runs as non-root (recommended), the GPIO pins have to be exported prior to starting the process: sudo su -c 'echo 1 > /sys/class/gpio/export;echo 2 > /sys/class/gpio/export'

lightscythejs's People

Contributors

alxlo avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

tpltnt

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.