I am conecting a green LED to 5V and I need to calculate resisitor value. Those are parameters from the datasheet:
- Vf=3.6-4V
- If=20mA.
According to Ohm's law: R=(Vi-Vf)/If, so when I change values I have R=1/0.02=50 ohms.
But it seems to me that this is too small. I read in several sites that the resistor shoul be 1k or at least 330 ohm. So I don't know which resistance is right.