DEV Community

Cover image for How to Test a Resistor, Diode, LED and Capacitor with a Multimeter (Before You Blame Your Code)
ElectroDai
ElectroDai

Posted on Originally published at electrodai.com

How to Test a Resistor, Diode, LED and Capacitor with a Multimeter (Before You Blame Your Code)

If you write code for Arduino or ESP32, you have probably spent an evening debugging a sketch that was fine all along. The real bug was a dead LED, a reversed diode or a dried-out capacitor.

A cheap digital multimeter catches all of these in about two minutes. Here are the four checks I teach every beginner: resistor, diode, LED and capacitor. For each one: which mode, where the probes go, and what a good and a bad reading look like.

Before you start

  • Test parts out of the circuit, with no power. A part still soldered to a board reads wrong because other parts sit in parallel with it.
  • Discharge capacitors first. Big ones from power supplies, TVs or inverters can hold a dangerous charge. Practise on small capacitors rated 50 V or less.
  • Black probe in COM, red probe in VΩ. Never use the 10A / mA jack for these tests.

Cheat sheet: where the probes go

Test Meter mode Red probe Black probe
Resistor Ω Either leg Other leg
Diode, forward Diode Anode (no stripe) Cathode (stripe)
Diode, reverse Diode Cathode Anode
Electrolytic capacitor Capacitance (F) + (long leg) − (stripe side)
Ceramic capacitor Capacitance (F) Either leg Other leg
LED Diode Long leg (anode) Short leg / flat side

1. Resistor

Read the colour bands first (brown-black-red-gold = 1 kΩ ±5%), set the dial to Ω (on a manual meter, the range just above the expected value) and touch one probe to each leg. Don't hold both legs with your fingers: your body's resistance lowers the reading.

  • Good: inside tolerance. A 1 kΩ ±5% resistor reads 950–1050 Ω.
  • Bad: OL on every range = open inside. A value far from the colour code, or a dark, cracked body = burnt.

Tip: touch the probes together first. The 0.1–0.5 Ω you see is lead resistance.

2. Diode

Diode mode pushes a small current and shows the voltage drop.

  • Good: forward (red on anode) reads about 0.5–0.7 V for a silicon diode like 1N4007/1N4148 (Schottky like 1N5819: ~0.15–0.45 V). Reverse reads OL.
  • Bad: OL both ways = open. Near 0.000 both ways (often with a beep) = shorted.

3. LED

An LED is a diode, so it's diode mode again: red on the long leg, black on the short leg.

  • Good: a red LED reads about 1.6–2.0 V and often glows faintly. Reversed: OL.
  • Watch out: blue, white and some green LEDs need 2.6–3.2 V. Many cheap meters can't supply that, so a good LED shows OL. Test those on 5 V through a 220 Ω resistor (an Arduino's 5V and GND pins work). If it lights, it's fine.

4. Capacitor

  1. Discharge it: hold a 1 kΩ resistor across the legs for a few seconds. Never short a big capacitor with a screwdriver.
  2. Set the dial to capacitance (F or -|(-), red on +, black on −, and wait a few seconds.
  • Good: near the printed value. Electrolytics are usually ±20%, so a 100 µF cap reading 82–120 µF is fine. A ceramic marked 104 = 100 nF.
  • Bad: far below the printed value = dried out. ~0 Ω in resistance mode = shorted. A bulging or leaking top = replace it, whatever the meter says.

No capacitance mode? On a cap of 10 µF or more, use the 20k–200k Ω range. A good cap shows a value that climbs to OL as the meter charges it. Stuck at a fixed low value = shorted.

When the readings look weird

Problem Likely cause
Reading jumps around Loose contact or oxidised legs: press firmly, scrape the legs
Resistor reads low Fingers on both legs, or the part is still in the circuit
OL on everything Range too low, or red probe in the wrong jack
Capacitor value keeps climbing Big capacitor, meter still charging: wait 10–20 s
Everything unstable Low meter battery
Diode mode beeps on a good diode Trust the number, not the beep

The full guide (parts list, FAQ, and the next project to build with your tested parts) is on ElectroDai: How to Test a Resistor, Diode, Capacitor and LED with a Multimeter.

I write beginner Arduino, ESP32 and robotics tutorials for students in Nepal. All the example code is open source at github.com/electrodai/electrodai-projects.

Top comments (0)