Friday, November 27, 2015

USING (WS2801+ ARDUINO)AMBILIGHT SYSTEM

Ambilight system create a light effects in television that correspond to the video content.Ambilight is a lighting system that adjust the brightness and colour based upon picture content.content. Ambilight system works by projecting light from the back. Viewers can choose ambilight follow brightness and colors in the change of program content.
The colors in reality are 99% true, the whites in this video were more purple since recording using my iphone.
so, here it's guys, the ultimate ambilight clone you can make.
what are we trying to accomplish is scanning the edges of a screen and determining the average color of those spots, then apply those colors to the led’s, in a fast way that we shouldn't notice any delay while watching a videos
To make this possible we need.
·        Addressable led’s, to be exact we need the ws2801, they come in many shapes, I got the 5m strip from:
·        Arduino uno micro-controller with usb cable, u can find it easily, no need to buy it online)
·        A windows pc,I have tested this only on windows 8.1 pro x64, and lately with windows 10 pro x64
·        A power supply to power the leds, in this case I am using the pc power supply to get the 5 volts, don’t use the power from the arduino or usb, it wouldn't work.
·        the whole project normally costs around 70$, if you are getting the whole 5m of the led strip.
let's connect those wires)



Step 1: Wires connections diagram





Connect everything from the IN side on led strip and not the out side, since this strip is not analog, it's digital, direction of data is important.

The ws2801 has 4 wires to be connected, let's start with the ground, ground the led strip GND to the arduino and the powers supply ground, very important to prevent flickering.
Next thing is connecting the arduino to pc, easy, using a usb cable.
To power the led strip we need 5v, tab into any not used molex connecter in your power supply, usually 5v is the red wire, check it with a volt meter, if it's, connect it to the 5v in the led strip.
Two wires are lift, the SD is the data, connect it pin 11 on the arduino.
Last wire is the ck wire, which is the clock wire, connect it to pin 13 on arduino.
That’s about all about the connections.
NOTE:
setup your led strip around the screen, You can either have it go all around the screen, or just the main 2 sides and the top as I did, since usually the bottom of the screen isn't far from a table, it would look much better if your screen is on a wall, the closer to the wall the better.

Step 2: Code, software and downloads

You need to know what com port your arduino is connected to, you can find that using the device manager.
Download the sketch and upload it.
On pc, we need the capturing program, I have tested 3 programs, ambibox is the best so far, specially if you are on windows 10, it has the ability to capture your desktop and full screen apps and games, so no worries.
Last thing is to install ambibox, select ad alight as a device, select your com port.
Count how many led’s you have used around your screen, setup your scanning box, and you are good to go.
Note that some strips have different color orders, the one I got is BGR so you can select that also.
Also note that the arduino sketch isn't the same as the one on ad alight site, I found this modified faster version that works with me flawlessly.
For capturing method select windows 8, even if you are on windows 10.
You can modify you color settings such as gamma and saturation to make the colors match the screen.
Ambibox has many other features such as constant color and mobile control along with creating profiles for certain moods such as letterbox movies and full screen videos.
That’s about all, don't forget to comment and give feed back.

 CONCLUSION



This is the picture of ambilight system you can change brightness and colors in the change of coding accordingly.

Post your comments and changes in the section below.




No comments:

Post a Comment