I made a Philips Ambilight clone using BobLight (google it if interested) and Arduino Mega.
The system is now up and works nicely. I have only one problem:
The leds are flickering a bit. They are controlled with ULN2003 ic and the ics are feeded with arduinos pwms.
I know that the analog write values that I write in the loop are stable but for some reason leds are flickering noticably.
My questions are:
Do you have an idea what is causing this?
Is there an easy solution to somehow even out / filter the current to the leds with some electronic component (capacitor, resistor, etc..)?
There are many reasons that might cause flickering. However without a schematic drawing and posting your code it's nearly impossible to try and guess at what might be the cause(s).
If so the first thing to note is that you are over driving that chip. You can't have 1.2A being switched on at the same time due to the thermal dissipation limit of the chip. See :- Power Examples
Next flickering covers a wide variety of behavior, can you be more specific?
To eliminate a software problem, write a sketch that doesn't read anything from the input and just changes the intensity of each lamp on an algorithm of some sort. Like incrementing one light every 100mS, it's OK to use delay for testing.
Yep, That's the one. Thanks for the heat dissapation link.
The led strip is driving 180 mAmps per channel at max and it is rarely reached. There's max 5 channels per chip. So 0,9 amps is the max.
How would I explain the flickering. It is some (high frequency) changes in the intensity of the light. So that light is not stable and calm and steady. It is actually doing it really little, but enough to catch the eye.
There's max 5 channels per chip. So 0,9 amps is the max.
So too much then.
It is some (high frequency) changes in the intensity of the light
It is the high frequency that is the important factor. When you switch a lot of current you can get instability in a circuit, try a bit of decoupling:- De-coupling
I need to do some testing without serial reading.
Yes you need to see if you are telling the software to make it flicker first.