Overclock.net › Forums › Case Mods & Cases › Other Hardware Mods › DIY RGB AmbiLight
New Posts  All Forums:Forum Nav:

DIY RGB AmbiLight - Page 2

post #11 of 234
Thread Starter 
Quote:
Originally Posted by Kylepdalton View Post

Good timing on this one. I am currently rebuilding mine with some newer components. I run a pretty simple setup with a screen capture written in processing. The code is from the Adalight project. I've delved into lightpack and boblight and honestly didn't see any performance increases. Then again I didn't notice any performance decreases either while running the system.
The physical system is pretty simple just LED strands with WS2801 controllers with an arduino setup. It pushes 60 LEDs in total. I am looking at what it would take to move to a denser LED strand (60/m instead of 30/m) but would need to move to something more powerful than the arduino platform. There are also some issues with multiple screens and how to deal with that. Here is a video of my setup running from awhile back.
I'd love to see what you come up with on the software side. I've been trying to get my hands on a used phillips ambilight pc system and take it apart to see what it is made of. Not much luck with that so far.

Thanks, how compatible is Processing with games, video etc in non windowed mode?

Yeah, the WS2801 RGB LED strips do make life a lot easier smile.gif I would hate it if I had to solder one of those little controllers for each LED myself. Alternatively MAX7313 can be used, it will do 64 LEDs with individual intensity (or ~20 RGB LEDs) but it will require a lot more wires.

The Philips PC system does not look that great, it looks more like a scaled down version:



I think the speaker lights would get annoying after some time, but still, it would be interesting to know what approach they are using to make it work.
post #12 of 234
Quote:
Originally Posted by jvjessen View Post

Thanks, how compatible is Processing with games, video etc in non windowed mode?
Yeah, the WS2801 RGB LED strips do make life a lot easier smile.gif I would hate it if I had to solder one of those little controllers for each LED myself. Alternatively MAX7313 can be used, it will do 64 LEDs with individual intensity (or ~20 RGB LEDs) but it will require a lot more wires.
The Philips PC system does not look that great, it looks more like a scaled down version:

I think the speaker lights would get annoying after some time, but still, it would be interesting to know what approach they are using to make it work.

From what I remember with my setup I had no problems with any video from vlc, wmc, itunes, or zune. Didn't matter if it was full screen or windowed. For games it is something with different versions of Directx. I want to say that DX9 and 10 games worked fine and some DX11 games worked fine. I'm not that much of a gamer really though so I perhaps I got lucky with my selections.

I would plug it in and do some tests for you but I moved a few weeks ago and in my infinite wisdom connected a 12v power supply to the LED strands frying every third controller.

I've been meaning to look into the code and see what exactly it is doing but haven't had much time to do it. You do take a slight performance hit with screen based capturing but it isn't much. I was running a 965 at 3.8 Ghz and a 6950 and it might have added 5% more workload to the cpu. It really came down to your sampling. If the sample squares are larger then it would take longer to average the pixel values, if they were smaller but you had a lot of them it was more difficult. and how often you want to take a sample. In your first post you mentioned the frame buffer for the system being a potential problem. It is a slight problem but not a big one. I set mine up to sample around 2 times a second but the displayed value was calculated from an average of the last 5 captures. For me if the response was to high it was distracting.
Edited by Kylepdalton - 1/8/13 at 2:16pm
Red-Scout
(18 items)
 
Asus G53SX-TH71
(12 items)
 
Big Blue
(12 items)
 
CPUMotherboardGraphicsGraphics
AMD 8320 FX Asus Crosshair V Twin Frozr 6950 Twin Frozr 6950 
RAMHard DriveHard DriveHard Drive
Corsair Vengence Red Crucial M4 Western Digital Raptor 300gb Western Digital 1 TB Black 
Optical DriveCoolingOSMonitor
LG Blu-ray Corsair H80 Windows 7 Professional Asus VE248H x3 
KeyboardPowerCaseMouse
Logitech MX 5500 Revolution Black Thermaltake TR2 RX 750w CoolerMaster Storm Scout MX Revolution Cordless Laser Mouse 
AudioAudio
Logitech X-540 5.1 System Creative Sound Blaster X-Fi Titanium Fatal1ty 
CPUMotherboardGraphicsRAM
Intel Core i7 2670QM G53SX NVIDIA GeForce GTX 560M Samsung  
RAMRAMRAMHard Drive
Corsair  Samsung  Corsair  Corsair Force GT3 
Hard DriveOptical DriveOSMonitor
Hitachi Blu-Ray Drive Windows 7 Professional 15.4" 1080p 
CPUMotherboardGraphicsRAM
AMD FX 8120 Asus M5A99FX Pro R2.0 MSI Windforce 6850 Kingston Hyper-Blue 16Gb 
Hard DriveHard DriveHard DriveCooling
3x Seagate Barracuda 3Tb OCZ Agility 2 64Gb 3x OCZ Vertex 2 Plus 32 Gb Cooler Master Seidon 120mm 
OSOSPowerCase
Windows Server 2012 Standard VMs (Server 2012, Windows 7, Windows 8, Ubuntu,... PC Power and Cooling 500w Silencer NXZT Switch 810 
  hide details  
Reply
Red-Scout
(18 items)
 
Asus G53SX-TH71
(12 items)
 
Big Blue
(12 items)
 
CPUMotherboardGraphicsGraphics
AMD 8320 FX Asus Crosshair V Twin Frozr 6950 Twin Frozr 6950 
RAMHard DriveHard DriveHard Drive
Corsair Vengence Red Crucial M4 Western Digital Raptor 300gb Western Digital 1 TB Black 
Optical DriveCoolingOSMonitor
LG Blu-ray Corsair H80 Windows 7 Professional Asus VE248H x3 
KeyboardPowerCaseMouse
Logitech MX 5500 Revolution Black Thermaltake TR2 RX 750w CoolerMaster Storm Scout MX Revolution Cordless Laser Mouse 
AudioAudio
Logitech X-540 5.1 System Creative Sound Blaster X-Fi Titanium Fatal1ty 
CPUMotherboardGraphicsRAM
Intel Core i7 2670QM G53SX NVIDIA GeForce GTX 560M Samsung  
RAMRAMRAMHard Drive
Corsair  Samsung  Corsair  Corsair Force GT3 
Hard DriveOptical DriveOSMonitor
Hitachi Blu-Ray Drive Windows 7 Professional 15.4" 1080p 
CPUMotherboardGraphicsRAM
AMD FX 8120 Asus M5A99FX Pro R2.0 MSI Windforce 6850 Kingston Hyper-Blue 16Gb 
Hard DriveHard DriveHard DriveCooling
3x Seagate Barracuda 3Tb OCZ Agility 2 64Gb 3x OCZ Vertex 2 Plus 32 Gb Cooler Master Seidon 120mm 
OSOSPowerCase
Windows Server 2012 Standard VMs (Server 2012, Windows 7, Windows 8, Ubuntu,... PC Power and Cooling 500w Silencer NXZT Switch 810 
  hide details  
Reply
post #13 of 234
Thread Starter 
Quote:
Originally Posted by Kylepdalton View Post

From what I remember with my setup I had no problems with any video from vlc, wmc, itunes, or zune. Didn't matter if it was full screen or windowed. For games it is something with different versions of Directx. I want to say that DX9 and 10 games worked fine and some DX11 games worked fine. I'm not that much of a gamer really though so I perhaps I got lucky with my selections.
I would plug it in and do some tests for you but I moved a few weeks ago and in my infinite wisdom connected a 12v power supply to the LED strands frying every third controller.
I've been meaning to look into the code and see what exactly it is doing but haven't had much time to do it. You do take a slight performance hit with screen based capturing but it isn't much. I was running a 965 at 3.8 Ghz and a 6950 and it might have added 5% more workload to the cpu. It really came down to your sampling. If the sample squares are larger then it would take longer to average the pixel values, if they were smaller but you had a lot of them it was more difficult. and how often you want to take a sample. In your first post you mentioned the frame buffer for the system being a potential problem. It is a slight problem but not a big one. I set mine up to sample around 2 times a second but the displayed value was calculated from an average of the last 5 captures. For me if the response was to high it was distracting.

Thanks, yeah it's a lot easier if you don't care too much about games running ultra smoothly, during my experiments Video was no problem, but games running eg 60 FPS would have a slow frame each time I sampled, so in smooth scrolling games like e.g. Diablo 3, I would notice it. .. I think averaging would be fastest using the Intel IPP libraries unless it can be done by the GPU or external hardware.

No need to hook it up, but thanks for the offer smile.gif .. I'm mostly interested in hearing peoples experience with various systems to get an idea what works and what doesn't. It's interesting that you prefer a slow refresh with many averages, I guess it gets too distracting otherwise, or maybe it's got to do with the size of the area used for averaging.

You should be able to get some new LEDs, the ws2801 based 60 LEDs/m are not that expensive, they even got RGB LEDs with integrated ws2801 now, as long as the code in your hardware supports it, it should not be a problem updating a few meters of those. It's just using the SPI protocol, very simple.
post #14 of 234
Honestly I don't think I've seen any WS2801 60/m strands. Haven't looked very hard either though. I've been warned by a couple people with the Adalight program that the Arduino method will suffer somewhat with the number I am thinking of using. I was looking 6 meters total for the back of my TV so 360 individual lights. It probably isn't a limitation of the Arduino but more so the inefficient coding. The other question I just thought of is whether or not my Zigbees can keep up with it as well. Just something else to test when I get back to working on it.

As far as the refresh rate it may just be personal preference. I take a larger sample area with multiple averaged samples so it doesn't look like fireworks in the background or just that the scene is being projected onto the wall behind. The color changes occur quickly but intensity doesn't. In the end that is simple stuff to change around.
Red-Scout
(18 items)
 
Asus G53SX-TH71
(12 items)
 
Big Blue
(12 items)
 
CPUMotherboardGraphicsGraphics
AMD 8320 FX Asus Crosshair V Twin Frozr 6950 Twin Frozr 6950 
RAMHard DriveHard DriveHard Drive
Corsair Vengence Red Crucial M4 Western Digital Raptor 300gb Western Digital 1 TB Black 
Optical DriveCoolingOSMonitor
LG Blu-ray Corsair H80 Windows 7 Professional Asus VE248H x3 
KeyboardPowerCaseMouse
Logitech MX 5500 Revolution Black Thermaltake TR2 RX 750w CoolerMaster Storm Scout MX Revolution Cordless Laser Mouse 
AudioAudio
Logitech X-540 5.1 System Creative Sound Blaster X-Fi Titanium Fatal1ty 
CPUMotherboardGraphicsRAM
Intel Core i7 2670QM G53SX NVIDIA GeForce GTX 560M Samsung  
RAMRAMRAMHard Drive
Corsair  Samsung  Corsair  Corsair Force GT3 
Hard DriveOptical DriveOSMonitor
Hitachi Blu-Ray Drive Windows 7 Professional 15.4" 1080p 
CPUMotherboardGraphicsRAM
AMD FX 8120 Asus M5A99FX Pro R2.0 MSI Windforce 6850 Kingston Hyper-Blue 16Gb 
Hard DriveHard DriveHard DriveCooling
3x Seagate Barracuda 3Tb OCZ Agility 2 64Gb 3x OCZ Vertex 2 Plus 32 Gb Cooler Master Seidon 120mm 
OSOSPowerCase
Windows Server 2012 Standard VMs (Server 2012, Windows 7, Windows 8, Ubuntu,... PC Power and Cooling 500w Silencer NXZT Switch 810 
  hide details  
Reply
Red-Scout
(18 items)
 
Asus G53SX-TH71
(12 items)
 
Big Blue
(12 items)
 
CPUMotherboardGraphicsGraphics
AMD 8320 FX Asus Crosshair V Twin Frozr 6950 Twin Frozr 6950 
RAMHard DriveHard DriveHard Drive
Corsair Vengence Red Crucial M4 Western Digital Raptor 300gb Western Digital 1 TB Black 
Optical DriveCoolingOSMonitor
LG Blu-ray Corsair H80 Windows 7 Professional Asus VE248H x3 
KeyboardPowerCaseMouse
Logitech MX 5500 Revolution Black Thermaltake TR2 RX 750w CoolerMaster Storm Scout MX Revolution Cordless Laser Mouse 
AudioAudio
Logitech X-540 5.1 System Creative Sound Blaster X-Fi Titanium Fatal1ty 
CPUMotherboardGraphicsRAM
Intel Core i7 2670QM G53SX NVIDIA GeForce GTX 560M Samsung  
RAMRAMRAMHard Drive
Corsair  Samsung  Corsair  Corsair Force GT3 
Hard DriveOptical DriveOSMonitor
Hitachi Blu-Ray Drive Windows 7 Professional 15.4" 1080p 
CPUMotherboardGraphicsRAM
AMD FX 8120 Asus M5A99FX Pro R2.0 MSI Windforce 6850 Kingston Hyper-Blue 16Gb 
Hard DriveHard DriveHard DriveCooling
3x Seagate Barracuda 3Tb OCZ Agility 2 64Gb 3x OCZ Vertex 2 Plus 32 Gb Cooler Master Seidon 120mm 
OSOSPowerCase
Windows Server 2012 Standard VMs (Server 2012, Windows 7, Windows 8, Ubuntu,... PC Power and Cooling 500w Silencer NXZT Switch 810 
  hide details  
Reply
post #15 of 234
Thread Starter 
Quote:
Originally Posted by Kylepdalton View Post

Honestly I don't think I've seen any WS2801 60/m strands. Haven't looked very hard either though. I've been warned by a couple people with the Adalight program that the Arduino method will suffer somewhat with the number I am thinking of using. I was looking 6 meters total for the back of my TV so 360 individual lights. It probably isn't a limitation of the Arduino but more so the inefficient coding. The other question I just thought of is whether or not my Zigbees can keep up with it as well. Just something else to test when I get back to working on it.
As far as the refresh rate it may just be personal preference. I take a larger sample area with multiple averaged samples so it doesn't look like fireworks in the background or just that the scene is being projected onto the wall behind. The color changes occur quickly but intensity doesn't. In the end that is simple stuff to change around.

You can get the 60 LEDs/m on ebay and probably many other places http://www.ebay.com/itm/1m-60-LED-m-RGB-LED-Light-Strip-5V-WS2811-WS2801-Waterproof-Addressable-Color-/160907739909 (There might be cheaper ones out there)

Don't worry that it says ws2811, it's the same as ws2801, it's just integrated in the LED instead of separate chip to make space for higher density. According to spec the SPI can be run up to 25 MHz, but that is probably not for a long strand, so maybe 5-10 MHz is more realistic. It takes 24 bits per LED (8 bit RGB) so updating 320 LEDs should only take 1-2 ms if the code is efficient, I'm not sure how efficiently it will run on Arduino.

But with that many LEDs you might need to beef up the PSU, at full intensity it would consume something like 10 - 15A.
post #16 of 234
Thread Starter 
Quote:
Originally Posted by kj1060 View Post

Unforuntately I don't know anything about this subject, but definitely interested to see what you come up with after seeing your other work. thumb.gif

Thanks, I'm not exactly sure where this project will be heading .. but hopefully something cool comes out of it biggrin.gif.
post #17 of 234
I'm no programming genius or hardware guru, but you might look into offloading the entire thing to something like a Raspberry Pi board, and sample the screen using a cheap 640x480 USB webcam. You could sample anything, from a single large screen to a big multi-monitor setup with zero additional software overhead or bottlenecks on the host machine.
post #18 of 234
Quote:
Originally Posted by jvjessen View Post

You can get the 60 LEDs/m on ebay and probably many other places http://www.ebay.com/itm/1m-60-LED-m-RGB-LED-Light-Strip-5V-WS2811-WS2801-Waterproof-Addressable-Color-/160907739909 (There might be cheaper ones out there)

Don't worry that it says ws2811, it's the same as ws2801, it's just integrated in the LED instead of separate chip to make space for higher density. According to spec the SPI can be run up to 25 MHz, but that is probably not for a long strand, so maybe 5-10 MHz is more realistic. It takes 24 bits per LED (8 bit RGB) so updating 320 LEDs should only take 1-2 ms if the code is efficient, I'm not sure how efficiently it will run on Arduino.

But with that many LEDs you might need to beef up the PSU, at full intensity it would consume something like 10 - 15A.

Already have a PSU from another project luckily 5v 25A I believe so I think I'm good on that front. Nice find on the LEDs. Just need a code tweak to put the data and clock on one pin.
Red-Scout
(18 items)
 
Asus G53SX-TH71
(12 items)
 
Big Blue
(12 items)
 
CPUMotherboardGraphicsGraphics
AMD 8320 FX Asus Crosshair V Twin Frozr 6950 Twin Frozr 6950 
RAMHard DriveHard DriveHard Drive
Corsair Vengence Red Crucial M4 Western Digital Raptor 300gb Western Digital 1 TB Black 
Optical DriveCoolingOSMonitor
LG Blu-ray Corsair H80 Windows 7 Professional Asus VE248H x3 
KeyboardPowerCaseMouse
Logitech MX 5500 Revolution Black Thermaltake TR2 RX 750w CoolerMaster Storm Scout MX Revolution Cordless Laser Mouse 
AudioAudio
Logitech X-540 5.1 System Creative Sound Blaster X-Fi Titanium Fatal1ty 
CPUMotherboardGraphicsRAM
Intel Core i7 2670QM G53SX NVIDIA GeForce GTX 560M Samsung  
RAMRAMRAMHard Drive
Corsair  Samsung  Corsair  Corsair Force GT3 
Hard DriveOptical DriveOSMonitor
Hitachi Blu-Ray Drive Windows 7 Professional 15.4" 1080p 
CPUMotherboardGraphicsRAM
AMD FX 8120 Asus M5A99FX Pro R2.0 MSI Windforce 6850 Kingston Hyper-Blue 16Gb 
Hard DriveHard DriveHard DriveCooling
3x Seagate Barracuda 3Tb OCZ Agility 2 64Gb 3x OCZ Vertex 2 Plus 32 Gb Cooler Master Seidon 120mm 
OSOSPowerCase
Windows Server 2012 Standard VMs (Server 2012, Windows 7, Windows 8, Ubuntu,... PC Power and Cooling 500w Silencer NXZT Switch 810 
  hide details  
Reply
Red-Scout
(18 items)
 
Asus G53SX-TH71
(12 items)
 
Big Blue
(12 items)
 
CPUMotherboardGraphicsGraphics
AMD 8320 FX Asus Crosshair V Twin Frozr 6950 Twin Frozr 6950 
RAMHard DriveHard DriveHard Drive
Corsair Vengence Red Crucial M4 Western Digital Raptor 300gb Western Digital 1 TB Black 
Optical DriveCoolingOSMonitor
LG Blu-ray Corsair H80 Windows 7 Professional Asus VE248H x3 
KeyboardPowerCaseMouse
Logitech MX 5500 Revolution Black Thermaltake TR2 RX 750w CoolerMaster Storm Scout MX Revolution Cordless Laser Mouse 
AudioAudio
Logitech X-540 5.1 System Creative Sound Blaster X-Fi Titanium Fatal1ty 
CPUMotherboardGraphicsRAM
Intel Core i7 2670QM G53SX NVIDIA GeForce GTX 560M Samsung  
RAMRAMRAMHard Drive
Corsair  Samsung  Corsair  Corsair Force GT3 
Hard DriveOptical DriveOSMonitor
Hitachi Blu-Ray Drive Windows 7 Professional 15.4" 1080p 
CPUMotherboardGraphicsRAM
AMD FX 8120 Asus M5A99FX Pro R2.0 MSI Windforce 6850 Kingston Hyper-Blue 16Gb 
Hard DriveHard DriveHard DriveCooling
3x Seagate Barracuda 3Tb OCZ Agility 2 64Gb 3x OCZ Vertex 2 Plus 32 Gb Cooler Master Seidon 120mm 
OSOSPowerCase
Windows Server 2012 Standard VMs (Server 2012, Windows 7, Windows 8, Ubuntu,... PC Power and Cooling 500w Silencer NXZT Switch 810 
  hide details  
Reply
post #19 of 234
Thread Starter 
Quote:
Originally Posted by Kylepdalton View Post

Already have a PSU from another project luckily 5v 25A I believe so I think I'm good on that front. Nice find on the LEDs. Just need a code tweak to put the data and clock on one pin.

Yeah, I was a bit too fast on saying the 2801 and 2811 are exactly the same, 2811 is trickier with single wire SPI, but you can use this library for Arduino, that should make life a lot easier smile.gif

Sound like you are good on PSU biggrin.gif
post #20 of 234
Thread Starter 
These LEDs are also interesting if you need more light, 96 LEDs per meter, but in groups of 3.



They use the WS2801 with both clock and data.
New Posts  All Forums:Forum Nav:
  Return Home
  Back to Forum: Other Hardware Mods
Overclock.net › Forums › Case Mods & Cases › Other Hardware Mods › DIY RGB AmbiLight