Although I’ve taken it easy, here is the fourth part of the tutorial to set up your homemade Ambilight . In this part we’re going to install Boblight, the](http://en.wikipedia.org/wiki/Linux “Linux”) Linux [library that allows you to convert a video that plays on the PC/Rasp into information for your Arduino.
Installing Boblight#
We’ll perform the following steps to download, compile, and install Boblight
//Accedemos a home cd ~ //Descargamos el repositorio svn checkout http://boblight.googlecode.com/svn/trunk/ boblight-read-only cd boblight-read-only/ //Insertamos los siguientes comandos export CFLAGS="-fpic" export CXXFLAGS="-fpic" //Configuramos ./configure //No te preocupes si te salen dos warnings //Uno sobre --with-ola y otro sobre --with-ffmpeg //Funcionará después correctamente //Construimos con make //Instalamos con[sudo](http://en.wikipedia.org/wiki/Sudo "Sudo") make install //Ahora ejecutamos sudo ldconfig //Ya tenemos boblight instaladoSetting up Boblight#
//Pasamos la configuración necesaria a su lugar /////////////////////////////////////Arduino UNO ////No tengo arduino UNO por lo que tendrás que configurarla////manualmmente después sudo cp ~/boblight-read-only/arduino/duemilanove.conf /etc/boblight.conf sudo nano /etc/boblight.conf //Como paso inicial comenta la linea interface de tal forma que quede //Esto permitirá que nos conectemos desde otros dispositivos diferentes a localhost #interface 127.0.0.1 [Ctrl](http://en.wikipedia.org/wiki/Control_key "Control key") + o y Ctrl + X /////////////////////////////////////Arduino MEGA////podéis descargaros desde como sigue un fichero preconfigurado cd $HOME wget https://talleradmin.com/ARCHIVOSMIOS/boblight.conf sudo cp ~/boblight.conf /etc/boblight.conf /////////////////////////////////////Para todos sudo nano /etc/boblight.conf //Comprobamos que el campo output en la sección device coincide con el puerto que sacamos anteriormente y sino lo editamos /dev/[nombre del puerto] Ctrl + o y después Ctrl + x\* In the file that we have just edited, we can change all the settings, you will see that red has 0.2 as a setting, since my leds for some reason predominated in the range. If this is not your case you can leave it at 1.0
Boblight is installed and configured!#
To avoid having to manually start boblight every time you restart your PC you can auto-boot it with the instructions of HERE I had these tutorials about Ambilight quite abandoned and many of you have asked me about them, so even if they don’t contain all the information I would like, I think they can be useful to you.



