I believe there is an even easier way, now that I know the LED's current rating as well as voltage rating (actually, now that I recall that LED's are SS devices which have an inherent voltage drop, not an inherent resistance per say, I don't think the voltage divider would be the best method to use). The goal is for each LED to draw 20mA or current, and the voltage rating is saying that it will have nominal voltage drop across the LED of 3.7V.
So, run the two LED's in parallel. The voltage drop is still 3.7V, but now you want to draw a combined current of 40mA (.04A). All you need to do is add a resistor in series with the two paralled LED's so that the proper current is running through the circuit.
The voltage drop across the two LED's is 3.7V. That leaves (12 - 3.7)V across the series resistor, or 8.3V. The current flowing through the resistor is the same as the combined current running through the LED's, which is .04A. To find the resistor value that creates this current flow, use the following equation:
R = V/I
So, for V = 8.3V and I = .04A, we have
R = (8.3V)/(.04A) = 207.5ohm.
A 200ohm resistor would work just fine. The power draw will be quite low, so you don't need to worry about the resistor's power rating.
If you want more LED's, wire them in parallel and calculate the appropriate value for the resistor. 3 LED's would require .06A, so 8.3/.06 = 138ohm.
For a quick reference, if you're using standard 10% resistors, use the following values:
2 LED's = 200ohm
3 LED's = 150ohm
4 LED's = 100ohm
5 LED's = 82ohm
6 LED's = 68ohm
The wiring for two would look like this:
Code:
+ ________/\/\/\/\/\______________LED____________ _
series resistor | |
|___LED___|
For three:
Code:
+ ________/\/\/\/\/\______________LED____________ _
series resistor | |
|___LED___|
| |
|___LED___|
And so on.