Forum
  • Search
  • Member List
  • Calendar
Hello There, Guest! Login Register — Login with Facebook
Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Threaded Mode | Linear Mode
Boblight + Xbian WIN [TUTORIAL]
12th Nov, 2013, 02:19 PM
Post: #1
zarboz Offline
Registered
Posts: 26
Joined: Nov 2013
Reputation: 3
Boblight + Xbian WIN [TUTORIAL]
Xbian with Boblight support

Supplies needed:
LPD8806 LED strip from http://www.adafruit.com (i used 50x on a 32" tv)
Arduno Uno (I had one laying around)
Raspberry Pi (35$)
5v psu



I started by tackling the hardware part before the software so lets get into that.
First off take your Led strip and cut it in pieces!!
haha i have a "floorplan" for the TV i used but remember you can make any combo youd like even up to 120 leds or more!

# __17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34
# 16 _____________________________________________35
# 15 _____________________________________________36
# 14 _____________________________________________37
# 13 _____________________________________________38
# 12 _____________________________________________39
# 11 _____________________________________________40
# 10 _____________________________________________41
# 09 _____________________________________________42
# 08 _____________________________________________43
# 07 _____________________________________________44
# __06 05 04 03 02 01________________50 49 48 47 46 45

So you will need
2X 6LED strips
2X 10LED strips
1X 18LED strip

Cut accordingly and solder into shape

you will want your last LED on #50 to end with the DO/CO symbols on the solder pads to indicate out (remember we must keep a flow in one direction for the circuit to be happy)

Now to arrange the LEDs your prolly looking at that diagram going "huh?"

If you were to stand in front of your tv with an image playing on the screen
#1 will be the first LED in your chain closest to the arduino
in turn #50 is furthest away

Next grab your Arduino and solder lead wires from #1LED's CI/DI/Gnd pins
also wire up the 5v PSU to the 5v/GND pins

the pinout for arduino is as follows
GND -> GND
DI -> 13
CI -> 11

I used an old pin header for easy plugin then i mounted the leds to the TV with my pin header

Next you need to program the arduino the accept the Boblight input for cool colors
plug the arduino into your PC and download the arduino IDE as well as
the LEDSTREAM arduino sketch found here:
https://github.com/adafruit/Adalight/blob/master/Arduino/LEDstream_LPD8806/LEDstream_LPD8806.pde

write this file to your arduino unplug it and mount it to the backside of your tv plugged into your LED strip with the USB chord handy

Next we need to grab your raspberry pi
I chose Xbian because well.. it works and fast too Big Grin

I downloaded the Xbian Image found here:
https://sourceforge.net/projects/xbian/files/release/XBian_1.0_Beta_1.1.7z/download

i installed it following the directions here:
http://elinux.org/RPi_Easy_SD_Card_Setup#Copying_an_image_to_the_SD_card_in_Linux_.28command_line.​29

once installed i enabled the SSH server and started setting up boblight


login to your pi via ssh and run the following in terminal to setup boblight and enter password when prompted (raspberry if you havent changed it)

su
apt-get update
apt-get install make gcc g++ subversion
cd ~
svn checkout http://boblight.googlecode.com/svn/trunk/ boblight-read-only
cd boblight-read-only/
./configure --without-portaudio --without-x11 --without-libusb
make;sudo make install
wget https://github.com/brooc/boblight-rpi/raw/master/src/boblight-dispmanx
cp boblight-dispmanx /usr/local/bin/
ln -s /usr/local/lib/* /usr/lib/
wget https://www.dropbox.com/s/1uza2b9yz1qff5r/boblight.conf
cp boblight.conf /etc/


Then I edited some items to start boblight on boot do that by editing /etc/rc.local file and inserting the following lines before exit 0;

nano /etc/rc.local

sudo /usr/local/bin/boblightd -f
sudo /usr/local/bin/boblight-dispmanx -b on -o interpolation=1 -o speed=110 -o threshold=35 -o autospeed=0 -o saturation=1 -o value=1 -p 128 -i 0.1 -f /dev/null &

^^^
put that right before exit0
press ctrl+x to close then y then enter to save


then reboot your xbian distro and enjoy your new boblight enabled xbian build Big Grin



DONT EVER INSTALL THE BOBLIGHT ADDON FROM XBMC IT WILL BREAK ALL THIS HARD WORK!!!!!



as an extra i went ahead and booted from a USB card to OC to 1ghz Big Grin

you can do that by
format a thumb drive as brtfs
plug it into pi while booted into xbian
ssh into your xbian box
run following

su
dd if=/dev/mmcblk0p2 of=/dev/sda1

once thats done run
nano /boot/cmdline.txt

find the root= entry and replace the stuff after = with /dev/sda1
so it will go from root=SOMETHINGBRTFSFOLDERBLAH to root=/dev/sda1

then reboot
voila usb card boot




Ill post some pics / videos soon next time i plug my phone into the PC or get a chance to share them to a cloud service i can link from :-P
Find all posts by this user
Quote this message in a reply
« Next Oldest | Next Newest »
Post Reply 


Messages In This Thread
Boblight + Xbian WIN [TUTORIAL] - zarboz - 12th Nov, 2013 02:19 PM
Re: Boblight + Xbian WIN :D - rikardo1979 - 12th Nov, 2013, 05:53 PM
RE: Boblight + Xbian WIN [TUTORIAL] - zarboz - 13th Nov, 2013, 12:08 AM
RE: Boblight + Xbian WIN [TUTORIAL] - IriDium - 13th Nov, 2013, 02:28 AM
RE: Boblight + Xbian WIN [TUTORIAL] - zarboz - 13th Nov, 2013, 05:28 AM
RE: Boblight + Xbian WIN [TUTORIAL] - mk01 - 13th Nov, 2013, 09:46 AM
RE: Boblight + Xbian WIN [TUTORIAL] - zarboz - 13th Nov, 2013, 11:01 AM
RE: Boblight + Xbian WIN [TUTORIAL] - nsviper - 21st Nov, 2013, 11:13 PM
RE: Boblight + Xbian WIN [TUTORIAL] - zarboz - 24th Nov, 2013, 07:26 AM
RE: Boblight + Xbian WIN [TUTORIAL] - pipes - 23rd Nov, 2013, 04:20 AM
RE: Boblight + Xbian WIN [TUTORIAL] - nsviper - 27th Nov, 2013, 01:06 AM
RE: Boblight + Xbian WIN [TUTORIAL] - zarboz - 20th Dec, 2013, 09:49 AM
RE: Boblight + Xbian WIN [TUTORIAL] - nsviper - 21st Dec, 2013, 12:11 AM
RE: Boblight + Xbian WIN [TUTORIAL] - zarboz - 25th Dec, 2013, 03:54 AM
RE: Boblight + Xbian WIN [TUTORIAL] - zarboz - 25th Dec, 2013, 07:57 AM
RE: Boblight + Xbian WIN [TUTORIAL] - zarboz - 1st Jan, 2014, 04:14 PM
RE: Boblight + Xbian WIN [TUTORIAL] - nsviper - 1st Jan, 2014, 11:03 PM
RE: Boblight + Xbian WIN [TUTORIAL] - mk01 - 8th Jan, 2014, 10:45 AM
RE: Boblight + Xbian WIN [TUTORIAL] - nsviper - 8th Jan, 2014, 10:13 PM
RE: Boblight + Xbian WIN [TUTORIAL] - mk01 - 8th Jan, 2014, 10:21 PM
RE: Boblight + Xbian WIN [TUTORIAL] - nsviper - 8th Jan, 2014, 11:02 PM
RE: Boblight + Xbian WIN [TUTORIAL] - mk01 - 9th Jan, 2014, 04:15 AM
RE: Boblight + Xbian WIN [TUTORIAL] - nsviper - 9th Jan, 2014, 08:26 PM
RE: Boblight + Xbian WIN [TUTORIAL] - mk01 - 9th Jan, 2014, 08:34 PM
RE: Boblight + Xbian WIN [TUTORIAL] - nsviper - 10th Jan, 2014, 12:50 AM
Re: RE: Boblight + Xbian WIN [TUTORIAL] - f1vefour - 10th Jan, 2014, 11:39 PM
RE: Boblight + Xbian WIN [TUTORIAL] - nsviper - 14th Jan, 2014, 08:12 AM
RE: Boblight + Xbian WIN [TUTORIAL] - nsviper - 15th Jan, 2014, 05:28 AM
Re: RE: Boblight + Xbian WIN [TUTORIAL] - f1vefour - 15th Jan, 2014, 08:06 AM
RE: Boblight + Xbian WIN [TUTORIAL] - nsviper - 15th Jan, 2014, 05:15 PM
Re: Boblight + Xbian WIN [TUTORIAL] - f1vefour - 16th Jan, 2014, 10:13 AM
RE: Boblight + Xbian WIN [TUTORIAL] - matt795 - 8th Mar, 2014, 04:37 PM
RE: Boblight + Xbian WIN [TUTORIAL] - kavil - 11th Aug, 2014, 09:28 PM
RE: Boblight + Xbian WIN [TUTORIAL] - Evgeny Glushkin - 12th Dec, 2014, 05:20 PM
Re: RE: Boblight + Xbian WIN [TUTORIAL] - f1vefour - 9th Mar, 2014, 12:00 AM
RE: Boblight + Xbian WIN [TUTORIAL] - zarboz - 10th Nov, 2014, 06:07 AM

  • View a Printable Version
  • Send this Thread to a Friend
  • Subscribe to this thread
Forum Jump:

Current time: 1st Jun, 2025, 05:57 PM Powered By MyBB, © 2002-2025 MyBB Group.