Posts: 548
Joined: Jul 2010
Reputation:
14
UNO works but is limited to two outputs, mega has 4. Just got my setup running with my mega last night.
4 outputs is nice but I was wondering if I could get more using shift registers or something similar. Any ideas?
Posts: 5
Joined: Nov 2011
Reputation:
0
What means is limited to two outputs?
Which impact has this on the configuration or setup of the ambilight?
Sorry I'm a Arduino noob :-)
Posts: 548
Joined: Jul 2010
Reputation:
14
Boblight uses the PWM outputs on the arduino. UNO has 6, mega has 14 I think. Each output is designated a color (red, green and blue). A single rgb led or strip requires 3 of these outputs (1 for each color), therefor the UNO needs 6 PWM outputs to control 2 LEDs or strips and mega needs 12 PWMs to control 4.
Posts: 5
Joined: Nov 2011
Reputation:
0
Sorry, one further question.
How many (WS2801 or whatever driven) LEDs can I connect via one stripe?
So let's say if I can connect e.g. 100 LEDs to an UNO and control them, why should I go and get a MEGA?
Sorry I'm dumb. :-(
Posts: 787
Joined: Jan 2010
Reputation:
2
It's all about the channels.
The max amount of channels is limited, so more channels mean a more realistic effect.
Beside that, yes you can use as many LEDs as you want.
As long as you drive them with enough power.
Posts: 5
Joined: Nov 2011
Reputation:
0
Now I feel more confused than before I started to ask questions.
Sooo....
I thought that I can add one of those 25 LED WS2801 strands to a Arduino UNO (or whatever) and have a 25 channel ambilight. If I need more than one strand I need an other arduino?
Am I wrong?
Posts: 35
Joined: Oct 2010
Reputation:
0
The adalight uses serial output and only use 3 wires to control the LEDs.
So you can use as many LEDs as you want and the only thing limiting you is the power you can provide to the LEDs from a external adapter.
So yes there is no need for a MEGA if you are planning to use the WS2801 strands.
I use a UNO and 2 x 25 LEDs
Posts: 91
Joined: Jan 2010
Reputation:
0
Damn, this WS2901 implementation is really nice! I've been looking at 6 to 8 small strips of LED behind my TV but as it's 50 inch having just 2 sections of color on either side is going to look really weird. Having more would mean I would need to many PWM outputs. I could do this with TLC5940 IC's but they are rather complicated to drive and would involve a crapload of wiring, transistors, resistors and other stuff that I don't want.
This looks slightly more expensive as I would need 2 strips to have a nice coverage, but in the end it might even be cheaper because of (the lack of) failing experiments and broken components. Also, with the straints running on 5V common cathode, the risk of frying the Arduino is much lower compared to a 12V supply which could jump on the Arduino and bake the chip.
I wonder though if an ATMega 328 can run all of those (50 in my case) LEDs. They are 24 bits, times 50 is 1200 bits which you would need to shift out every time. You'd need at least 24 Hz to run nicely with HD (1080p24) material which means 1200 * 24 = 28.800 bps serial output. I don't know if this is at all possible. After all, you need to push and latch all those bits with a timer on each change.
Posts: 35
Joined: Oct 2010
Reputation:
0
My UNO board use ATMega and can run 50 LEDs with no problem. You need to consider that for a slightly bigger cost you get 48 more sections of different light. I really makes a huge difference having the light change not only on one side of your TV, but on different parts of that side.
Posts: 5,008
Joined: Sep 2003
Reputation:
30
pike
Team Kodi Admin
Posts: 5,008
I only see one drawback with these "ledpixels", and that is that they are 8bit only. You get 12bit with TLC5940.