XMBC

[HowTo] - Hyperion (Ambilight) on BananaPi (Raspbian v1412) with external XBMC

1 6395
xefil  
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.
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!

diagram.png


Back to software. I've updated the system and installed the needed packages

  1. apt-get update
  2. apt-get install git cmake build-essential libprotobuf-dev libQt4-dev libusb-1.0-0-dev protobuf-compiler python-dev
Copy the Code
Then installed g++ 4.7 due compilation errors using the default one.

  1. apt-get install g++-4.7
  2. update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.7 20
  3. update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-4.7 20
  4. update-alternatives --config gcc
  5. update-alternatives --config g++
Copy the Code
After, cloned the hyperion repo (remember to set recursion or not the whole project would be downloaded)

  1. export HYPERION_DIR="hyperion"
  2. git clone --recursive https://github.com/tvdzwan/hyperion.git "$HYPERION_DIR"
  3. mkdir hyperion/build
  4. cd hyperion/build
  5. cmake -DENABLE_DISPMANX=OFF -DENABLE_SPIDEV=ON ..
  6. make
Copy the Code
Create some directories and copy the files to the final place:

  1. mkdir /opt
  2. tar -C /opt -xzf ../deploy/hyperion.tar.gz
  3. ln -fs /opt/hyperion/config/hyperion.config.json /etc/hyperion.config.json
Copy the Code
Remove the Raspberry-Pi files and copy the compiled ones:

  1. rm /opt/hyperion/bin/*
  2. cp ./bin/hyperion-remote /usr/bin/
  3. cp ./bin/hyperiond /usr/bin/
Copy the Code
Now we need to load the SPI device:

  1. modprobe spi-sun7i
Copy the Code
Add 'spi-sun7i' as new line to '/etc/modules' to load it on every boot.

Using HyperCon we can easly setup the LED strip:

  1. wget https://raw.github.com/tvdzwan/hypercon/master/deploy/HyperCon.jar
  2. java -jar HyperCon.jar
Copy the Code
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:

  1. ln -fs /opt/hyperion/init.d/hyperion.init.sh /etc/init.d/hyperion
  2. chmod +x /opt/hyperion/init.d/hyperion.init.sh
  3. update-rc.d hyperion defaults 98 02
Copy the Code
And start the service:

  1. service hyperion start
Copy the Code
A ranbow effect should be shown for some seconds.

We can now test hyperion from a console executing:

  1. hyperion-remote -e "Blue mood blobs"
Copy the Code
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!
http://chaosspace.de/hyperion-remote

App for Android available as well. ;)


Here the steps I've followed to create a little wooden frame where I've attached the LEDS:

002.JPG

003.JPG

004.JPG

005.JPG

006.JPG

007.JPG

008.JPG

And here a video result:

https://www.youtube.com/watch?v=TAtPl7uxOyo


Hope you like it ;)


Bye, Simon
Great job!

You have to log in before you can reply Login | Sign Up

Points Rules