Diodes, LEDs & Polarity

ReviewedBeginnerFreeAbout 5 min
In short

Diodes, LEDs & Polarity: the short answer

A diode lets current flow one way: from anode to cathode (the end with the stripe). 4 V for a Schottky like the 1N5819. Example: A backwards battery can no longer damage the regulator. You lose only about 0.3 V, which the Uno's regulator handles easily.

Level
Beginner
Time
About 5 min
Topic
Semiconductors
You will learn to

Use a diode for polarity protection and flyback protection, and choose one from its ratings.

Before this: Voltage, Current & Resistance, LEDs and Current Limiting

A diode lets current flow one way: from anode to cathode (the end with the stripe). In that direction it drops a fairly fixed voltage, about 0.7 V for a silicon diode like the 1N4007 and 0.2 to 0.4 V for a Schottky like the 1N5819. In the other direction it blocks.

Three jobs you will use all the time: reverse-polarity protection (a diode in series with the supply so a backwards battery does nothing), flyback protection (a diode across a relay or motor coil, stripe towards the positive side), and steering signals (1N4148 for small, fast signals).

When choosing one, check three numbers: the maximum forward current, the maximum reverse voltage, and the forward drop you can afford. A 1N4007 is rated 1 A and 1000 V; a 1N4148 only 200 mA or so.

What a diode really does

A diode is a one-way valve with a toll. In the forward direction it conducts once the voltage across it reaches its forward drop, about 0.6 to 0.7 V for silicon and 0.2 to 0.45 V for Schottky. In reverse it blocks, letting through only a tiny leakage current, until the reverse voltage exceeds its rating and it breaks down.

The forward drop rises a little with current and falls about 2 mV for every degree it warms up. That temperature change is so steady that simple thermometers use it.

Reverse-polarity protection, and its cost

A series diode is the simplest way to stop a backwards battery from doing damage, but it costs you its forward drop all the time, and it makes heat equal to that drop times the current. At 1 A, a 1N4007 wastes about 0.9 W; a 1N5819 Schottky about 0.5 to 0.6 W (its drop rises to about 0.55 V at full current). From two AA cells (3 V) even a Schottky eats a big share of your supply.

For higher currents or low voltages, a P-channel MOSFET in the supply line does the same job with almost no loss. It is a common upgrade once you understand MOSFET switches.

Flyback diodes: protecting from coils

A relay coil, motor or solenoid stores energy in its magnetic field. When the transistor driving it switches off, the coil tries to keep the current flowing and its voltage jumps to whatever it takes, often tens or hundreds of volts. That spike kills transistors and resets microcontrollers.

A diode across the coil, stripe to the positive supply, gives that current a path to circulate and die away safely. It does nothing in normal running because it is reverse-biased. Relay modules usually include one; a bare relay never does.

Choosing a diode from three numbers

Reverse voltage (VRRM): pick at least twice the highest voltage the diode will block. Forward current (IF): at least the steady current with margin, and check the surge rating if it charges a big capacitor at switch-on. Forward drop (VF) at your current: decides the loss and the heat.

Everyday picks: 1N4148 for signals up to about 200 mA, 1N4007 for mains-frequency rectifying up to 1 A, 1N5819 Schottky for low-loss protection up to 1 A at up to 40 V, and SS34 or 1N5822 Schottky for 3 A.

Reading the stripe

The band marks the cathode, the end current flows out of. On a schematic the triangle points the way current flows and the bar is the cathode. When in doubt, a multimeter's diode mode shows about 0.5 to 0.7 for silicon (0.2 to 0.4 for Schottky) one way and OL the other.

Common mistakes
  • Fitting a flyback diode the wrong way round. It then shorts the supply through the transistor the moment it switches on.
  • Using a 1N4148 signal diode for a motor or supply: it is rated far below the current.
  • Using a Schottky where leakage matters. Schottky diodes leak far more in reverse than silicon ones, especially when hot.
Key formulas
Vout ≈ Vin − 0.7 V
silicon diode drop (about 0.3 V for Schottky)

Work it with your own numbers: Rectifier ripple

Worked example

Protect a project from a backwards 9 V battery

  1. Put a 1N5819 Schottky in series with the battery's positive lead, stripe towards the circuit.
  2. Correct way: current flows, the circuit gets about 9 − 0.3 = 8.7 V.
  3. Backwards: the diode blocks and nothing flows.
  4. Check the current: the project draws 150 mA, under the 1 A rating.

Result. A backwards battery can no longer damage the regulator. You lose only about 0.3 V, which the Uno's regulator handles easily.

Try it

Use your meter's diode mode on a 1N4007: read it one way (about 0.6 to 0.7 V), then reverse the leads (it should show OL). Mark which end is the cathode.

Check yourself

3 quick questions

  1. Which end of a diode is marked with a stripe?

  2. Why use a Schottky diode for battery protection?

  3. How is a flyback diode placed across a relay coil?

Common questions

What will I learn in "Diodes, LEDs & Polarity"?

Use a diode for polarity protection and flyback protection, and choose one from its ratings.

How do I protect a project from a backwards 9 V battery?

Put a 1N5819 Schottky in series with the battery's positive lead, stripe towards the circuit. Correct way: current flows, the circuit gets about 9 − 0.3 = 8.7 V. Backwards: the diode blocks and nothing flows. Check the current: the project draws 150 mA, under the 1 A rating. A backwards battery can no longer damage the regulator. You lose only about 0.3 V, which the Uno's regulator handles easily.

Which end of a diode is marked with a stripe?

Cathode. The stripe marks the cathode, where conventional current leaves.

Why use a Schottky diode for battery protection?

It drops less voltage, so less is wasted. A Schottky drops about 0.3 V instead of 0.7 V, saving voltage and heat.

How is a flyback diode placed across a relay coil?

Stripe towards the positive supply side. Normally it is reverse-biased; at switch-off it conducts the coil's current back around.