Pages: [1]   Go Down
Author Topic: DIY Ambilight from VGA splitter cable possible?  (Read 2364 times)
0 Members and 1 Guest are viewing this topic.
Portland, Or
Offline Offline
Newbie
*
Karma: 0
Posts: 16
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Just a simple question that after hours and hours of googling i am no closer to the answer.

I have a Arduino based RGB controller hooked up to a single rgb led for prototyping(final product to have led strips around the room using mosfets).  I have several "scenes" programmed to run when i select certain buttons on an ir harmony remote which ties into the arduino through a simple ir sensor.

My question now, i want to also have it as a simple ambilight system.

Is it possible to hook up the r, g, b and grnd connections from a VGA splitter out of my HTPC to analog inputs to the arduino and have the arduino map the values to power the RGB LEDs?

I have read a few places that i will need maybe some resistors and capacitors to help with interference? Or since the arduino is interpreting the signal i wont need this? Is the current coming from the video card too much for the inputs on the arduino?

Any guidance would be much appreciated.

Gracias.
Logged

Still a noob but getting there.....

Pullman, WA
Offline Offline
Edison Member
*
Karma: 11
Posts: 1245
Arduino Ninja
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

This is beyond the capabilities of a standard Arduino. You would need a high-speed triple ADC to start. You'd need to analyze the HSYNC and VSYNC signals to identify regions around the edges of the display, then possibly integrate the values of those regions to retrieve a color average. It's not a trivial project.
Logged

Wearable Arduino-compatible LED matrix glasses: https://www.kickstarter.com/projects/macetech/rgb-led-shades

Offline Offline
Full Member
***
Karma: 2
Posts: 226
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

why not do it like this? amblone.com

u ll be done in 20min...
Logged

Portland, Or
Offline Offline
Newbie
*
Karma: 0
Posts: 16
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

So the amblone is a great option but i was looking for a way to avoid having the computer do all the processing. I have heard it can be quite consuming.  My HTPC is a pretty good system but i  uaing it as my security cam server with 5ea - 648 x 480 ip cameras streaming and recording nearly 24/7. 

I wasnt really looking to just sense the edges, an overall r, g and b value would suffice. Is that just not possible?
Logged

Still a noob but getting there.....

Brisbane, Australia
Offline Offline
Edison Member
*
Karma: 33
Posts: 1123
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi

I've not used one (caveat) but this shield from Nootropic Design might be something to look at : link to kit in their store.

Cheers ! Geoff
Logged

"There is no problem so bad you can't make it worse"
- retired astronaut Chris Hadfield

Portland, Or
Offline Offline
Newbie
*
Karma: 0
Posts: 16
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

OK so I found this:


Uploaded with ImageShack.us

It looks like this should do what I want. The only difference would be that I would change the 12v in this schematic to the 5v, and the emitter on the RGB Lines would go directly into A0, A1, and A2 on the Arduino. 

Would I need to change any of the values of the components(resistors, capacitors) because I am going to be using 5v instead of 12v? Would I need to arrange it differently?

Thanks.

Kevin
Logged

Still a noob but getting there.....

Portland, Or
Offline Offline
Newbie
*
Karma: 0
Posts: 16
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

So my brain has been racking, trying to find an easier way to do this, and remove the arduino from the equation when doing the ambilight function.  I think I figured it out.  Will this fry everything? Or will it be my savior?




I would have three of these circuits, one for R, G, and B. Control Pin 1 would be what I would use to set the led to a color or use one of the preset fade functions, and the second would be if I set the arduino to Ambilight mode and it would directly parse the information from the VGA port and apply it via the mosfets to the LEDS.

Please any help would be greatly appreciated.

Thanks.
Kevin
Logged

Still a noob but getting there.....

Brisbane, Australia
Offline Offline
Edison Member
*
Karma: 33
Posts: 1123
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Would be interesting to see what effect you get here.  You'll have feedback on the overall blended colour of the screen rather than bleeding the edge colours of the screen out past the edges.  My first impression is this would give you an ambilight effect that isn't (unless the whole screen is a colour) representative of what's on display.  But like I say, very happy to watch and learn from your progress.

All the best, Geoff
Logged

"There is no problem so bad you can't make it worse"
- retired astronaut Chris Hadfield

Portland, Or
Offline Offline
Newbie
*
Karma: 0
Posts: 16
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Well even with my current setup, using AtmoWin and 1 RGB Channel from my Arduino Micro, its actually a pretty good, and cheap I might add, representation.  I would record on my cel camera, but the camera colors are WAAAY off.  I will definetely share progress, when progress has been made.


I have found the best effect when I view Electric Sheep animations on Youtube, it looks awesome.  Also I have found that cartoons look best, but even race scenes and explosions are a massive improvement over no ambient lighting at all.

Kevin
« Last Edit: February 12, 2013, 04:18:55 pm by desolation » Logged

Still a noob but getting there.....

Offline Offline
Full Member
***
Karma: 2
Posts: 226
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

its an interesting project but who uses vga cables in 2013

it would be realllly interesting if like a camera captures the screen and the data gets processed, but then i guess an arduino might not have the power. Maybe withsome colour sensors or something like that.

please share some pictures of what it looks like
« Last Edit: February 12, 2013, 04:55:29 pm by lax123 » Logged

Portland, Or
Offline Offline
Newbie
*
Karma: 0
Posts: 16
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

I once saw a guy mention the possibility of using photocells, with red, green, and blue filters to evaluate the screen, and then apply the values to the RGB Strips.  Initially I figured the "white bleed" for the lack of a better term on the tv would throw it off too much, if you look at most LCD tvs from even a 60 degree angle, they have a significant saturation loss, so I figured this possibility would be out due to the fact that no one wants photosensors inbetween them and their tv. Now, more and more I want to try it, how awesome would that be? No processing, analog data, easy peasy. Any input? 

On the main topic, i forgot to pick up capacitors this morning, I am going to have a working prototype of the first diagram as soon as I get those damn 1uf Caps.  Side note, any suggestions for good reading on Caps? Cant quite grasp the concept to figure what to do when I need to change a diagram voltage. Increase, decrease, how much, how much is too much? 

If the LEDS color value isnt too "choppy" ill leave it that way and use the double transistor switch for each channel(second diagram), however if its terrible, I may run an averaging code through the arduino, to smooth it out a little bit. Thats why I need to understand the CAPS, I cant run 12v into the Analog Pins on the Arduino, right? How would I reduce that down to a level the arduino could handle? A resistor?

Thanks for all the help, happy to see the project is gaining interest. 

                                                 
Logged

Still a noob but getting there.....

Portland, Or
Offline Offline
Newbie
*
Karma: 0
Posts: 16
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Who doesnt love frying their arduino by applying 12v to the 5v rail.......damnit.......

On the good side!
I got the VGA Ambilight set up!

Pics:

Disclaimer: I use an All-In-One for my main computer at work, the laptop the VGA is connected to is ARCHAIC and for some reason wont let me mirror the desktop.  The best I can do from work is display the background color on the LED, Screensavers are poo and youtube is soooo slow on this thing its terrible.











Well, need some more funds to replace the arduino..... But I will take this home tonight and see what it looks like running on a good system. I was thinking, maybe if its too choppy I could add capacitors in parallel with the wire running to each base, small ones, to create a slight fade, instead of an abrupt chop chop chop.

Logged

Still a noob but getting there.....

Offline Offline
Newbie
*
Karma: 0
Posts: 1
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi there - thanks for sharing the info on this project!

I'm looking to do exactly the same thing and was wondering if you have a schematic of the finished working version. I'm also a newbie & don't recognise some of the components ont he board.

To answer some of the earlier questions about why I need this - I'm in a project called temp0rary ( temp0rary.com ) and we have a live VJ as part of the band. He's running his computer pretty hard with all the clips, so what we need to do is take the VGA signal from the projected visuals, do some *very* rough analysis of the R/G/B values, and then have LED lighting on stage that *sort of* follows what's going on with the visuals (i.e, if visuals are mostly red, the performers light up red too, dark is dark, bright is bright, nothing more than that really...)

Because we already have a lot of kit, and the laptops on stage are already dangerously close to maxed out, it makes more sense to split the VGA, analyse is in a quick & dirty fashion with an Arduino, and use that to squirt out RGB values to control the LEDs.

If anyone has any other info about controlling LED lights like these ones, please let me know!:
Logged

Portland, Or
Offline Offline
Newbie
*
Karma: 0
Posts: 16
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

I followed MrWolf1701's schematic to a T, varying a few ohms here or there on resistors due to lack of exact matches on hand.   I never ended up integrating it with the arduino, it actually works pretty damn well by itself.  If you dont want to have other options, if you only want it to be controlled by the VGA signal, an arduino may not be required. If you have any specific questions about that schematic I am more than happy to help out. The project never got completed, I bought a 3d printer and cant get enough of it, nuff said.  The uncompleted project(as you see it in the pictures above) is actually here in my office right behind me.

Des
« Last Edit: June 14, 2013, 09:08:43 pm by desolation » Logged

Still a noob but getting there.....

Pages: [1]   Go Up
Jump to: