Go Down

Topic: Newbie ambilight question (Read 4230 times) previous topic - next topic

Danton

Hi!

I'm very new to Arduino and a lot of electronics.
I saw some tutorials for creating your own ambilight.
But I have a question regarding the assembly.

What do I need to send separate signals to the multiple leds?
Like I have 10 leds in a row but they all need to be a different color.

I want to use the following RGB leds : http://www.ebay.com/itm/100-pcs-5mm-Fast-RGB-Flash-Rainbow-MultiColor-LED-/330714359321?pt=LH_DefaultDomain_0&hash=item4d001ca619#ht_1174wt_1156Forward
And I have a Arduino Leonardo.

Thanks!

Magician

Most likely, RGB Flash leds have a pregrogrammed chip inside, and can't be control fromexternal device. Probably, this isn't what you are looking for. Search leds  w/o "flash"

Danton

So first of all I will be needing the following leds : http://www.ebay.com/itm/100-Pcs-5mm-Red-Green-blue-RGB-LED-Light-Rainbow-free-R-/110396023112?pt=LH_DefaultDomain_0&hash=item19b41da148

Magician

No, it's the same pre-programmed, only slowly -);.  LED shouldn't vary color on it's own.

Danton

Thanks :P, I have found the correct ones with 4 pins.
But which ones do I need to order, Anode or Cathode and what's the difference?

Magician

It's up to you, if this is your first project, have a look  in "LED Lights and Displays"  http://arduino.cc/playground/Main/InterfacingWithHardware#Output,   a lot depends on what hardware do you have to drive this leds.
Factors to be considered:

1. Cost
2. Availability
3 Shipment time
4 Coding complexity

Also, how big is your project, ambilight  100 leds, 10 or 1.

Riva


Thanks :P, I have found the correct ones with 4 pins.
But which ones do I need to order, Anode or Cathode and what's the difference?

Common Anode is 1 pin in and 3 pins out. Ideal for driving with a LED driver chip like WS2801, MY9221, MAX16807 & STP16DP05.
Common Cathode is 3 pins in and one pin out.

I personally would get common anode LED's and a couple of WS2803 chips as I have used the device and it works well (and is cheap). Each WS2803 can drive 6x RGB LED's

Danton

@Riva

Thanks for your answer!
What would you recommend, 5mm or 10mm leds?
And how did you set it up / what are the schematics?

:)

Magician

#8
Jun 18, 2012, 09:47 pm Last Edit: Jun 18, 2012, 09:49 pm by Magician Reason: 1
Also a lot depends on your level in electronics and in software.  Some chips greatly simplify hardware design, and there is on-line library to communicate with IC ( TLC5940, MAX7219/7221.), so no problem on software side, but they cost more.
WS2801 / WS2803 is good choice, as it has serial interface, so less wiring/cables work.
To make life easier, you could find addressable RGB strips, that works with arduino, than all assembly boils down to hook up 4 wires.

To have learning experience, look into 74HC595 IC, it's cheap, but more complicated to communicate with. I'm working myself right now with this register, 9 IC, 72 PWM channel, arduino kicking SPI train commands set, in 38 usec, every 125 usec. No assembly so far!
 

Riva


What would you recommend, 5mm or 10mm leds?
And how did you set it up / what are the schematics?

LED size depends on what you want to do.
I have no schematic yet but attached is a picture of the breadboard test I did. Ignore the red thing on the breadboard as it's just a DS3231 RTC (I intend on altering the LED colours over time).

Danton

I think I'm going to order 5mm RGB anode wide hat led's :
http://www.ebay.nl/itm/100pc-5mm-Straw-Hat-RED-GREEN-BLUE-Common-Anode-RGB-LED-470ohm-1-4W-Resistor-/190566591645?pt=LH_DefaultDomain_0&hash=item2c5ea76c9d

A led string is a option, but how many light does it give?

And it's hard to choose the right IC :P.

Magician

Quote
A led string is a option, but how many light does it give?

You always could have a look on youtube, to choose what  kind of "high level "design you like the best , than check if there is a link to project on the web, and after move to hardware part. This one direction process,  general overview -> LEDS  -> Drivers IC -> Wiring  -> Software.
Choosing leds before you make your decision on  art side doesn't make much sense.

Danton

@Magician : That was a great tip.

I've looked into it and I'm going for a 12V 5M 300 RGB SMD 5050 led strip, with a 12V 2A power adapter.
Which IC would fit best in here? I was thinking of the WS2803D because it's cheaper than the WS2801.
Or would you recommend somethint like the 74HC595?
I want a lot of possible color combinations.

And I think this is the way to connect the strip.
http://www.ladyada.net/products/rgbledstrip/


Riva

#13
Jun 22, 2012, 10:40 am Last Edit: Jun 22, 2012, 10:43 am by Riva Reason: 1
Hi Danton,

Because of the nature of the LED strip you specified you should not need a LED driver IC unless your going to cut the 5M strip into several (more than 2) shorter strips and control each strip independently. You could just use 3x suitable NPN transistors per strip connected to separate PWM pins on the arduino (the UNO has 6 PMW pins so you can connect 2x strips and control them independently)

EDIT:
Just looked at your Ladyada link and it shows them using STP16NF06/TIP120 at bottom of page.

Danton


you should not need a LED driver IC unless your going to cut the 5M strip into several (more than 2) shorter strips and control each strip independently. You could just use 3x suitable NPN transistors per strip connected to separate PWM pins on the arduino


I'm going to cut up almost the whole strip to use them seperatly.
Something like:
Arduino Leonardo -> IC -> 3 or 6 Led strips

Do I still need 3 NPN transistors per strip? Or can these be placed before the IC?

Go Up