Bumping this ancient topic. Sorry if that bothers anybody. But this seemed better than starting a new topic as my question is simple and stems vicariously from the OP.
My advice would be to wire them in such a way that you'll be able to use a common power supply.
For example, I would aim for a 12v or 24v power supply or a 18.5v laptop adapter.
As the forward voltage won't be exactly 3v for all leds, it's a good idea to make individual chains of leds that have the total voltage a bit lower than the power supply's voltage so you can properly limit the current going into the leds instead of blowing them up.
For a 12v power supply, 3 leds per chain would work fine... 3 x 3v = 9v. For 24v, I'd make chains of 7 leds .. 7x3 = 21v ... this would also make it exactly 14 chains of leds. With 18.5v , you'd make chains of 6 leds 6x3 = 18v.
You need to limit the current going into the leds, and the simplest way is to add a resistor in series with the leds. The value of the resistor you calculate with the simple formula :
[ Input Voltage - Led Forward Voltage (total) ] / Current.
For 12v , 3x3 leds you would have (12v - 9v ) / 0.02 = 150 ohm ... and the power dissipated in resistor is P = IxIxR = 0.02x0.02x150 = 0.06w so a resistor rated for 0.125w will do.
For 24v , 7x3 leds you would have (24-21v) / 0.02 = 150 ohm .. same value.
For 18.5v , 6x3 leds you would have (18.5 - 18) / 0.02 = 25 ohm
Once you figure out how many you want in series, with the resistor limiting the current each chain will use exactly 20mA at that input voltage, so you can multiply with the number of chains to get the current amount. For example, for 24v power supply, you'd have 98/7 = 14 chains so that means you need a power supply capable of 20mA x 14 = 280mA.
So mariush, I never finished the project of my OP. Just have had the LED's laying around since then collecting dust.
Now I want to make use of some of them in a laptop. I want to put the LED's inside around the keyboard edge.
Im struggling to grasp how I could power it easily though.
Ideally, I want to use a cr2032 or something of a similar size.
But since each LED is 3v, Im not sure that is possible?
Also since I cant actually have the LED's below the keyboard, have to rely on light coming in from the edge,
I guess having 2 chains of leds for bottom/top of keyboard would be ideal.
Am I wrong for picturing being able to run leds in series with a resistor between each led off the 3v cell?
Or, would that make it dimmer with each additional led?
Also am I wrong for thinking there is no limitation on how many chains you can run off the VCC? Like in your last answer?
If so I guess I could get creative with slack in wiring and manage to make smaller chains of say 3, and wire the chains in parallel and maneuver the slack in wiring to line them up like a strip?
The other choice I have is, tap the 7 LED chains using 24v off the DC input on the laptop. Although I worry, could that interfere with the power enough to disrupt the computers functionality?
If I made 2 chains of 7 that would merely be 40mA right?
When I try to find the answer to "tapping led string off DC psu voltage drop" the results arent helpful.
Any advice is appreciated : )