Edited by xefil at Tue Apr 21, 2015 01:39 |
Hello to all,
After following some hints and guides on the net, I would like to post my experience and how-to I've setup Hyperion on BananaPi (OS: Raspbian) to work as server with an external XBMC. Yes, XBMC is installed as separate server on a differrent mini-pc. Actually I've not definetly moved XBMC on BananaPi.
Led: WS2801 led pixel strip with CIP model 5050
Power Supply: 5V - 10A external power adapter. Do not power the leds with the B-Pi!
First some informations on how connect the LED strip. It's the same as posted on a R-Pi guide, so I'll post the same image, a little modified:
Due these leds are SPI, it's important that the strip starts with the connection to the Power Supply and ends with BananaPi as terminator!
Back to software. I've updated the system and installed the needed packages
Then installed g++ 4.7 due compilation errors using the default one. Copy the Code
- apt-get update
- apt-get install git cmake build-essential libprotobuf-dev libQt4-dev libusb-1.0-0-dev protobuf-compiler python-dev
After, cloned the hyperion repo (remember to set recursion or not the whole project would be downloaded) Copy the Code
- apt-get install g++-4.7
- update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.7 20
- update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-4.7 20
- update-alternatives --config gcc
- update-alternatives --config g++
Create some directories and copy the files to the final place: Copy the Code
- export HYPERION_DIR="hyperion"
- git clone --recursive https://github.com/tvdzwan/hyperion.git "$HYPERION_DIR"
- mkdir hyperion/build
- cd hyperion/build
- cmake -DENABLE_DISPMANX=OFF -DENABLE_SPIDEV=ON ..
Remove the Raspberry-Pi files and copy the compiled ones: Copy the Code
- mkdir /opt
- tar -C /opt -xzf ../deploy/hyperion.tar.gz
- ln -fs /opt/hyperion/config/hyperion.config.json /etc/hyperion.config.json
Now we need to load the SPI device:Add 'spi-sun7i' as new line to '/etc/modules' to load it on every boot. Copy the Code
- rm /opt/hyperion/bin/*
- cp ./bin/hyperion-remote /usr/bin/
- cp ./bin/hyperiond /usr/bin/
Using HyperCon we can easly setup the LED strip:
Set up the led numbers (horizontal, vertical and direction) and save the file to -> /opt/hyperion/config/hyperion.config.json Copy the Code
- wget https://raw.github.com/tvdzwan/hypercon/master/deploy/HyperCon.jar
- java -jar HyperCon.jar
We can add now the service at boot:
And start the service:A ranbow effect should be shown for some seconds. Copy the Code
- ln -fs /opt/hyperion/init.d/hyperion.init.sh /etc/init.d/hyperion
- chmod +x /opt/hyperion/init.d/hyperion.init.sh
- update-rc.d hyperion defaults 98 02
We can now test hyperion from a console executing:
On the XBMC server I've installed this plugin and pointed to the BananaPi/Hyperion server IP address: Copy the Code
- hyperion-remote -e "Blue mood blobs"
And, if you want, you can control the Hyperion server from your iPhone with this app. It works great!
App for Android available as well. ;)
Here the steps I've followed to create a little wooden frame where I've attached the LEDS:
And here a video result:
Hope you like it ;)