<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: ElectroDai</title>
    <description>The latest articles on DEV Community by ElectroDai (@electrodai).</description>
    <link>https://dev.to/electrodai</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4254766%2Fe129d03d-0259-4090-a4a3-2fdc1b90d797.png</url>
      <title>DEV Community: ElectroDai</title>
      <link>https://dev.to/electrodai</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/electrodai"/>
    <language>en</language>
    <item>
      <title>How to Test a Resistor, Diode, LED and Capacitor with a Multimeter (Before You Blame Your Code)</title>
      <dc:creator>ElectroDai</dc:creator>
      <pubDate>Fri, 20 Nov 2026 05:06:36 +0000</pubDate>
      <link>https://dev.to/electrodai/how-to-test-a-resistor-diode-led-and-capacitor-with-a-multimeter-before-you-blame-your-code-3fgi</link>
      <guid>https://dev.to/electrodai/how-to-test-a-resistor-diode-led-and-capacitor-with-a-multimeter-before-you-blame-your-code-3fgi</guid>
      <description>&lt;p&gt;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.&lt;/p&gt;

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

&lt;p&gt;  &lt;iframe src="https://www.youtube.com/embed/Jvey7aCTB_4" width="710" height="399"&gt;
  &lt;/iframe&gt;
&lt;/p&gt;

&lt;h2&gt;
  
  
  Before you start
&lt;/h2&gt;

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

&lt;h2&gt;
  
  
  Cheat sheet: where the probes go
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Test&lt;/th&gt;
&lt;th&gt;Meter mode&lt;/th&gt;
&lt;th&gt;Red probe&lt;/th&gt;
&lt;th&gt;Black probe&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Resistor&lt;/td&gt;
&lt;td&gt;Ω&lt;/td&gt;
&lt;td&gt;Either leg&lt;/td&gt;
&lt;td&gt;Other leg&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Diode, forward&lt;/td&gt;
&lt;td&gt;Diode&lt;/td&gt;
&lt;td&gt;Anode (no stripe)&lt;/td&gt;
&lt;td&gt;Cathode (stripe)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Diode, reverse&lt;/td&gt;
&lt;td&gt;Diode&lt;/td&gt;
&lt;td&gt;Cathode&lt;/td&gt;
&lt;td&gt;Anode&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Electrolytic capacitor&lt;/td&gt;
&lt;td&gt;Capacitance (F)&lt;/td&gt;
&lt;td&gt;+ (long leg)&lt;/td&gt;
&lt;td&gt;− (stripe side)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Ceramic capacitor&lt;/td&gt;
&lt;td&gt;Capacitance (F)&lt;/td&gt;
&lt;td&gt;Either leg&lt;/td&gt;
&lt;td&gt;Other leg&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;LED&lt;/td&gt;
&lt;td&gt;Diode&lt;/td&gt;
&lt;td&gt;Long leg (anode)&lt;/td&gt;
&lt;td&gt;Short leg / flat side&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h2&gt;
  
  
  1. Resistor
&lt;/h2&gt;

&lt;p&gt;Read the colour bands first (brown-black-red-gold = 1 kΩ ±5%), set the dial to &lt;strong&gt;Ω&lt;/strong&gt; (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.&lt;/p&gt;

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

&lt;p&gt;Tip: touch the probes together first. The 0.1–0.5 Ω you see is lead resistance.&lt;/p&gt;

&lt;h2&gt;
  
  
  2. Diode
&lt;/h2&gt;

&lt;p&gt;Diode mode pushes a small current and shows the &lt;strong&gt;voltage drop&lt;/strong&gt;.&lt;/p&gt;

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

&lt;h2&gt;
  
  
  3. LED
&lt;/h2&gt;

&lt;p&gt;An LED is a diode, so it's diode mode again: red on the long leg, black on the short leg.&lt;/p&gt;

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

&lt;h2&gt;
  
  
  4. Capacitor
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Discharge it&lt;/strong&gt;: hold a 1 kΩ resistor across the legs for a few seconds. Never short a big capacitor with a screwdriver.&lt;/li&gt;
&lt;li&gt;Set the dial to &lt;strong&gt;capacitance&lt;/strong&gt; (F or -|(-), red on +, black on −, and wait a few seconds.&lt;/li&gt;
&lt;/ol&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Good:&lt;/strong&gt; near the printed value. Electrolytics are usually ±20%, so a 100 µF cap reading 82–120 µF is fine. A ceramic marked &lt;strong&gt;104&lt;/strong&gt; = 100 nF.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Bad:&lt;/strong&gt; far below the printed value = dried out. ~0 Ω in resistance mode = shorted. A bulging or leaking top = replace it, whatever the meter says.&lt;/li&gt;
&lt;/ul&gt;

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

&lt;h2&gt;
  
  
  When the readings look weird
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Problem&lt;/th&gt;
&lt;th&gt;Likely cause&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Reading jumps around&lt;/td&gt;
&lt;td&gt;Loose contact or oxidised legs: press firmly, scrape the legs&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Resistor reads low&lt;/td&gt;
&lt;td&gt;Fingers on both legs, or the part is still in the circuit&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;code&gt;OL&lt;/code&gt; on everything&lt;/td&gt;
&lt;td&gt;Range too low, or red probe in the wrong jack&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Capacitor value keeps climbing&lt;/td&gt;
&lt;td&gt;Big capacitor, meter still charging: wait 10–20 s&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Everything unstable&lt;/td&gt;
&lt;td&gt;Low meter battery&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Diode mode beeps on a good diode&lt;/td&gt;
&lt;td&gt;Trust the number, not the beep&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;




&lt;p&gt;The full guide (parts list, FAQ, and the next project to build with your tested parts) is on ElectroDai: &lt;strong&gt;&lt;a href="https://electrodai.com/tutorial/how-to-test-resistor-diode-capacitor-led-multimeter" rel="noopener noreferrer"&gt;How to Test a Resistor, Diode, Capacitor and LED with a Multimeter&lt;/a&gt;&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;I write beginner Arduino, ESP32 and robotics tutorials for students in Nepal. All the example code is open source at &lt;a href="https://github.com/electrodai/electrodai-projects" rel="noopener noreferrer"&gt;github.com/electrodai/electrodai-projects&lt;/a&gt;.&lt;/p&gt;

</description>
      <category>electronics</category>
      <category>arduino</category>
      <category>beginners</category>
      <category>hardware</category>
    </item>
  </channel>
</rss>
