LED Current Limiting
A resistor sets how much current an LED carries. Put a multimeter in series and see it.
- Beginner
- Analog Electronics
- 4 parts
Opens in your browser with the parts, wiring and code already in place. Press Run to watch it work, then change anything you like.
How it works
An LED is not like a resistor: once the voltage across it passes its forward voltage, around 2 volts for green, it conducts almost anything the supply will give it, and burns out. The 470 ohm resistor is what stops that. With a 9 volt battery, about 2 volts drop across the LED and the remaining 7 volts across the resistor, so Ohm's law says the current is 7 divided by 470, close to 15 milliamps, a comfortable amount for an LED.
The multimeter is set to measure current, which means it has to be part of the loop, in series, rather than across a part. The current path runs from the battery through the meter, the resistor, the LED and back to the battery, and the meter reads it directly. The LED shows its brightness from that same real current, so if you change the resistor you will see both the number and the glow change. No sketch is needed.
Parts
- Battery 9V
- Multimeter
- Resistor
- LED
Wiring
- Battery 9V + → Multimeter A
- Multimeter COM → Resistor A
- Resistor B → LED Anode (+)
- LED Cathode (-) → Battery 9V -
Arduino code
// LED Current Limiting
// Press Run: the multimeter, set to measure current, sits in series with the LED.
// There is no sketch to write: this is a circuit, so there is nothing for code to do.
void setup() {
}
void loop() {
}
Try changing it
- Change the resistor to 100. The current rises to around 70 milliamps, far more than an LED should carry, and you can see why a resistor is never optional.
- Change the resistor to 4700 and watch the LED dim as the current falls to about 1.5 milliamps.
- Turn the LED around, anode and cathode swapped, and the current drops to nothing: an LED only conducts one way.
Next challenge
More projects in Analog Electronics
- Voltage DividerTwo resistors share a supply voltage in proportion to their values. Measure the middle…
- Voltage ReaderAn Arduino reads a two-resistor divider with analogRead and prints the voltage. Change a…
- Thermistor ThermometerA thermistor and a fixed resistor form a divider the Arduino reads. The sketch turns the…
- RC Low-Pass FilterA resistor and capacitor let slow signals through and soften fast ones. Watch both on an…