Skip to content

prmakerspace/led-tunnel

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Powell River Makerspace LED Tunnel

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

Getting Started

Setup

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 ..

Running

1. Start the fadecandy server

From led-tunnel directory, run:

cd fadecandy/server/ &&
./fcserver config.json

2. Run the web-based simular

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.

3. Code some cool effects!

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.

Tunnel-Ready Examples

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