you have all brought something to the table, but I don't believe any of you have answered electricelectric's question yet:
Quote:and i am wondering whether do all the LEDs need a seperate resistor, or can i just put 1 resistor in the middle of the circuit?
The answer is no, you do not need a separate resistor for each LED assuming they are all wired in series.
Becasue current in a circuit is caused by the flow of electrons, which travel nearly the speed of light, the obersvable effects in your circuit will be steady-state ones as opposed to transient ones.
That is to say, you will not observe the LED's light in series just because they are wired in series...rather, you will see them all light at once.
By the same token, since resistors add in series, having one resistor will be the equivalent of any number of resistors placed in the loop whose sum is the same.
Remember that an LED is itself a resistor.
If your LED's are wired in parallel, you can still evenly control the electric potential across each LED by using 1 resistor in
series before you have any parallel connections. Alternatively, you could use one equal resistor for each parallel connection...but that would be a waste of parts and circuit space.