The PR Makerspace LED Tunnel will use multiple Fadecandy controller boards and a lot of addressable RGB LEDs to create a beautiful installation at the Powell River Blackberry Festival 2017.
Sponsored by Westview Agencies / First Credit Union and Powell River Technology Co-op
Built by Powell River Makerspace
To install the dev environment, run the commands in terminal:
git clone https://github.com/prmakerspace/led-tunnel.git &&
cd led-tunnel &&
git clone https://github.com/plong0/fadecandy.git -b relay-server &&
cd fadecandy/server/ &&
make submodules &&
make &&
cd ../../tunnel-sim/ &&
bower install &&
cd ..
From led-tunnel directory, run:
cd fadecandy/server/ &&
./fcserver config.json
To start a simple python webserver, open a terminal to the led-tunnel directory and run:
cd tunnel-sim &&
python -m SimpleHTTPServer 8000
In a browser, open: http://localhost:8000
The simulator connects to the fcserver and acts only as an output - it does not have any control over the lights!
You can use the browser's built-in developer tools / javascript console to see log messages from the simulator.
You can use any webserver, the python one is really quick and simple. Simply opening the index.html in the browser will not work because the javascript loads certain resources using ajax requests.
Browse through the fadecandy/examples folder for examples in many different languages. Choose whatever language you are interested in and start coding!
The tunnel uses a 48x64 matrix of LEDs.
Fadecandy (and this simulator!) use the Open Pixel Control protocol. The fadecandy examples illustrate code that send packets in the OPC format.
With the fadecandy and simulator servers running, open another terminal and try some examples ready for the tunnel.
Python Examples:
cd examples/python/ &&
ls *.py
An article all about how to run a python script on different OS