Vivien
Posts: 8
Joined: Thu Jan 26, 2012 4:12 pm
Location: Aix-en-Provence

Re: RaspiLight (ambient light)

Fri Feb 10, 2012 4:25 pm

Hi everyone,

I'm new here, but I follow this project since a lot of time.

Since this morning I thinking about a new project, it is possible to make a kind of ambilight system with a RaspberryPi ?

There is already the adalight which allow you to make a ambilight system for your pc screen but not with hdmi.

First of all we have to know how to parse hdmi data to use top, left and right pixel of the screen to know the colour of the LED(urgh ! it will be difficult I think);

Secondly we have to know how to connect light, can the GPIO connection can do this ? Else we can plug a USB-2-serial cable made with a FTDI chip, maybe it's good.

Thirdly made a daemon (program, add-on, or what ever you want) to enhance your screen

Hope you understand my project (and my English).

If you want I can introduce myself next time.

I can't wait to have my Raspberry to work with !!!

Cheers,

Vivien
Cheers,
Vivien

jannis
Posts: 85
Joined: Tue Jan 17, 2012 3:48 pm

Re: RaspiLight

Fri Feb 24, 2012 1:55 pm

Depending of the speed we can toggle the GPIO-pins we can use them directly to dim/control LEDs (using FETs or s.th.)

For reference: Software/Hardware projects to support in "ambilight clone on/with the rpi":

http://atmolight.de/index.php/news.html (Just realised it's german only :/)

https://code.google.com/p/boblight/

mangoose
Posts: 3
Joined: Tue May 08, 2012 5:19 am

Re: RaspiLight

Tue May 08, 2012 6:37 am

As mentioned in another post, merging Boblight & WiringPi should allow to control LED via GPIO without any external board.

-P-

BernhardX
Posts: 2
Joined: Sat Jun 02, 2012 6:54 pm

Re: RaspiLight

Sat Jun 02, 2012 6:55 pm

Hey,

i'd like to do something like this too. How is your project going? Please PM!

Greets

Vivien
Posts: 8
Joined: Thu Jan 26, 2012 4:12 pm
Location: Aix-en-Provence

Re: RaspiLight

Wed Jul 04, 2012 3:41 pm

Hi all,
The project is still in development.
Tomorrow I will make the first test, I will give you some feedback.
Cheers,
Vivien

mvdpoel
Posts: 1
Joined: Thu Jul 05, 2012 1:48 pm

Re: RaspiLight

Thu Jul 05, 2012 1:50 pm

Really cool! I'm looking forward to your first test results!

If you need testers.... i'm available!

Vivien
Posts: 8
Joined: Thu Jan 26, 2012 4:12 pm
Location: Aix-en-Provence

Re: RaspiLight

Sat Jul 07, 2012 2:51 pm

So,
First test are a bit concluding, but I have a problem with my led strip, it's hardly light all led.
First I've got like 10 of 25 LED lighting, and after 23 LED, don't know why.
Other problem, without GPU driver all the flux goes to CPU so when I move my terminal GPIO stop sending data (it look like this, not 100% sure, I have no DSO @ home).
Hope before next week end I will post photo or code :D

Vivien
Cheers,
Vivien

plfort
Posts: 18
Joined: Tue Jul 03, 2012 11:26 pm
Location: Grenoble

Re: RaspiLight

Sun Jul 08, 2012 9:07 pm

I've managed to get an ambilight clone with boblight library and XBMC.
You can see a proof of concept here : http://www.youtube.com/watch?v=5FRV4z_VOVs
This video show only static background light with boblight XBMC add-on, video playback doesn't work...
It works fine with my rpi running boblight daemon and a PC playing video and sending light informations to the rpi (video soon).
I use the same hardware as adalight (WS2801: 25 LEDs) and SPI for sending data to the strip.

Vivien
Posts: 8
Joined: Thu Jan 26, 2012 4:12 pm
Location: Aix-en-Provence

Re: RaspiLight

Mon Jul 09, 2012 11:59 am

Hi,
I use the same hardware (WS2801) and SPI.
Have you got the same problem ? LED hardly light.
Cheers,
Vivien

plfort
Posts: 18
Joined: Tue Jul 03, 2012 11:26 pm
Location: Grenoble

Re: RaspiLight

Mon Jul 09, 2012 1:06 pm

At first, I used the bcm2835 GPIO library (http://www.open.com.au/mikem/bcm2835/) but LEDs flickered (probably because of bad delay between data words).
Now I use this kernel (with spi driver) and everything works fine.
You can try with this file : http://download.analog.com/27516/forumm ... spi_test.c

Vivien
Posts: 8
Joined: Thu Jan 26, 2012 4:12 pm
Location: Aix-en-Provence

Re: RaspiLight

Tue Jul 10, 2012 8:45 am

With wiringPi, LED are flickering (in fact only the ones at the start of the chain).
So now I work the kernel driver.
I'll post any change A.S.A.P.
Cheers,
Vivien

survender
Posts: 1
Joined: Wed Jul 18, 2012 12:21 pm

Re: RaspiLight

Wed Jul 18, 2012 12:32 pm

Wow, this may get a very good project!
As it is writtin in the beginning, would it really be possible to use HDMI as input for color-information?
What about the HDMI HDCP encryption? And what about playing BlueRays? Can you get any color-information out of HDMI when it is HDCP encrypted? I read that the Master-Key was leaked, so maybe it would be possible for RaspiLight?

Vivien
Posts: 8
Joined: Thu Jan 26, 2012 4:12 pm
Location: Aix-en-Provence

Re: RaspiLight

Wed Jul 18, 2012 1:29 pm

If masterkey is really leaked it could ease the project.
The project is delayed because my SD card died last week, and amazon shipping is quite long ...
I'm porting my project for computer and FTDI chip, hope I will post something before end of the week, expect if my computer die before ...
Cheers,
Vivien

Vivien
Posts: 8
Joined: Thu Jan 26, 2012 4:12 pm
Location: Aix-en-Provence

Re: RaspiLight

Thu Aug 23, 2012 3:14 pm

The Raspilight is alive !
This is not usable, the refresh rate is poor and the CPU load is 100%
So I think I need to make it more low-level.
I will post something next week (holiday is ending I will work more :) )
Cheers,
Vivien

dominicclifton
Posts: 27
Joined: Thu Aug 23, 2012 10:40 pm

Re: RaspiLight

Sun Aug 26, 2012 7:30 pm

Hi guys,

I'm going to make a setup for XBMC (Windows) and RaspberryPi where XBMC on windows talks over the network to my raspberry pi which drives the lights.

I'm going to be using 2x AdaFruit 12mm Diffused Thin Digital RGB LED Pixels (50 RGB leds total)

http://www.adafruit.com/products/322

Also going to use an I2C to SPI bridge to allows up to 4 sets of lights to be controlled using a single I2C output from the Pi. Not sure about latency issues yet, will have to suck it and see.

http://www.nxp.com/products/interface_a ... es-packing

While i'm waiting for parts to arrive I'm going to working on the XBMC side of things. I've downloaded the XMBC source code and I'm thinking of implementing the XBMC side of things as a peripheral. See CPeripheral and CPeripheralBus.

First I basically need to figure out how to hook into the XBMC video output code and make it talk to a peripheral.

Just thought I'd share this with you. If anyone else is doing anything similar please get in touch.

plfort
Posts: 18
Joined: Tue Jul 03, 2012 11:26 pm
Location: Grenoble

Re: RaspiLight

Wed Aug 29, 2012 1:32 pm

@dominicclifton : look at boblight and boblight xbmc extension, there is a video in my previous post.

snrlcd
Posts: 1
Joined: Sun Sep 02, 2012 1:25 pm

Re: RaspiLight

Sun Sep 02, 2012 1:33 pm

Looking forward to this project, it will be my first..
Also was looking into adalight with Arduino,
but went for Raspberry Pi, will see how it goes..

smokie75
Posts: 1
Joined: Wed Sep 05, 2012 10:49 pm

Re: RaspiLight

Wed Sep 05, 2012 10:51 pm

So it would be safe to assume that a single raspi is incapable of driving the LEDs as well as running Raspbmc?

plfort
Posts: 18
Joined: Tue Jul 03, 2012 11:26 pm
Location: Grenoble

Re: RaspiLight

Thu Sep 06, 2012 9:59 am

@smokie75 : Yes, but you can't access to the framebuffer to take screenshot during playback because the video is directly decoded by the GPU ... so it will not work
If anyone have an idea how to take screenshot with omxplayer or access the framebuffer, it will help !

Vivien
Posts: 8
Joined: Thu Jan 26, 2012 4:12 pm
Location: Aix-en-Provence

Re: RaspiLight

Thu Sep 06, 2012 11:48 am

As plfort say if someone have advanced knowledges about framebuffer it would be appreciate :D
And as I have already said I occupied by familly and friends visit, but summer is ending in south of France, and next I will be full time on it :) (hum After work :) )
I have promised you a photo, I'm overbooked so I'll try to do my best to send one next week :P
Cheers,
Vivien

dominicclifton
Posts: 27
Joined: Thu Aug 23, 2012 10:40 pm

Re: RaspiLight

Mon Sep 24, 2012 8:18 pm

My project, AmbiPi, is going well. Current source code (for XBMC) is here:

https://github.com/hydra/xbmc/commits/master

And I'm using a custom Python client, which can be found here, long term i plan to use C, but the python code will do for now.

https://github.com/hydra/PixelPi/tree/ambipi

The nice thing about they way I'm doing the video is that I hook directly into the XBMC rendering
system and thus no screen capturing is required. Also, because of this the code processes the unscaled source image which means handling black bars at the top/bottom is less of an issue.

I also expose a new item in the peripheral menu (AmbiPi) in XBMC for the Python AmbiPi code running on the Raspberry Pi. The menu allows you to enable/disable the AmbiPi and configure connection details (for now).

The order and amount of LEDs in the output stream will be changed/configurable at a later date too. For now it's designed to work with a single strip of 50 lights. I have two strips here.

dominicclifton
Posts: 27
Joined: Thu Aug 23, 2012 10:40 pm

Re: RaspiLight

Mon Sep 24, 2012 9:52 pm

A video of my work (AmbiPi) is here:

www.youtube.com/watch?v=v_h1wK67oEw

plfort
Posts: 18
Joined: Tue Jul 03, 2012 11:26 pm
Location: Grenoble

Re: RaspiLight

Fri Oct 05, 2012 3:10 pm

Hi Dominic,
Is XBMC running on the Raspberry Pi? Or on another computer ?
Edit : Sorry, this is indicated in your previous post ...

dominicclifton
Posts: 27
Joined: Thu Aug 23, 2012 10:40 pm

Re: RaspiLight

Fri Oct 05, 2012 5:30 pm

plfort wrote:Hi Dominic,
Is XBMC running on the Raspberry Pi? Or on another computer ?
Edit : Sorry, this is indicated in your previous post ...
Currently my mods to xbmc are wndows specific but I'm working on making it cross platform. Were you wanting to run it on the pi?

plfort
Posts: 18
Joined: Tue Jul 03, 2012 11:26 pm
Location: Grenoble

Re: RaspiLight

Mon Oct 08, 2012 10:18 am

Yes but it seems impossible because of the rendering method during video playback on the Pi...

Return to “Other projects”