1/7
Looks like no tags are added yet.
Why can't you connect an LED directly to a 5 V Arduino output?
Because without a current-limiting resistor, too much current could flow through the LED, potentially damaging it.
What voltage does the Arduino Uno provide when a digital output is HIGH?
Approximately 5 V.
If an LED has a 2 V voltage drop and the Arduino supplies 5 V, how much voltage must the resistor drop?
5 V − 2 V = 3 V
So the resistor must drop approximately 3 V.
What target current is used in your LED calculation?
20 mA
Convert to amperes:
20 mA = 0.020 A
How do you calculate the resistor value for the LED?
Use:
R = V ÷ I
The resistor voltage is:
5 V − 2 V = 3 V
Therefore:
R = 3 ÷ 0.020
R = 150 Ω
So the calculated resistor is:
150 Ω
Why did we subtract the LED's 2 V drop from the 5 V supply?
Because the LED uses approximately 2 V, leaving approximately 3 V that must be dropped across the resistor.
What happens if the resistance is too small?
Too much current may flow, potentially damaging the LED or other components.
What happens if the resistance is too large?
Less current flows, so the LED may be dimmer.