Find the right resistor for your LED circuit
The resistor value for an LED is calculated using Ohm's Law:
R = (Vs - Vf) / I
Where:
Series Connection: LEDs connected one after another. The supply voltage must be greater than the sum of all LED forward voltages.
Parallel Connection: LEDs connected side by side. Each LED needs its own current-limiting resistor for proper operation.