share by xefil
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. Let’s start!
Hardware: 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
apt-get update apt-get install git cmake build-essential libprotobuf-dev libQt4-dev libusb-1.0-0-dev protobuf-compiler python-dev
Then installed g++ 4.7 due compilation errors using the default one.
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++
After, cloned the hyperion repo (remember to set recursion or not the whole project would be downloaded)
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 .. make
Create some directories and copy the files to the final place:
mkdir /opt tar -C /opt -xzf ../deploy/hyperion.tar.gz ln -fs /opt/hyperion/config/hyperion.config.json /etc/hyperion.config.json
Remove the Raspberry-Pi files and copy the compiled ones:
rm /opt/hyperion/bin/* cp ./bin/hyperion-remote /usr/bin/ cp ./bin/hyperiond /usr/bin/
Now we need to load the SPI device:
Add ‘spi-sun7i’ as new line to ‘/etc/modules’ to load it on every boot.
Using HyperCon we can easly setup the LED strip:
wget https://raw.github.com/tvdzwan/hypercon/master/deploy/HyperCon.jar java -jar HyperCon.jar
Set up the led numbers (horizontal, vertical and direction) and save the file to -> /opt/hyperion/config/hyperion.config.json
We can add now the service at boot:
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
And start the service:
service hyperion start
A ranbow effect should be shown for some seconds.
We can now test hyperion from a console executing:
hyperion-remote -e "Blue mood blobs"
On the XBMC server I’ve installed this plugin and pointed to the BananaPi/Hyperion server IP address: https://github.com/tvdzwan/hyperion/wiki/XBMC-addon-(not-for-RPi)
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: