Lab

Diode: how it works, with live circuits

A diode lets current flow one way and blocks it the other. Run the circuits below in the DCACLab diode simulator, right in your browser: read the forward drop, turn the diode round, then try a Zener regulator.

Open the lab

The two circuits on this page work without an account. On a computer or tablet the full lab is limited without an account; a free account lets you try it in full first. NGSpice charts need an account; saving needs a plan. Create a free account

Try the diode simulator: forward bias

A 9 V battery drives a silicon diode through 1 kΩ. The voltmeter is across the diode, the ammeter in the loop. The diode points the way current flows, so it is forward biased and conducts.

Preview of Diode Forward Bias with a Voltmeter and an Ammeter
Open in the lab Embed Run the circuit right here. To edit it in the full lab, sign in; free accounts have a time limit there.
  1. Read the meters: about 0.56 V across the diode and 8.4 mA in the loop.
  2. Set the resistor to 100 Ω: the current jumps to about 83 mA, but the drop rises only to about 0.68 V.
  3. Click the diode and press F, or tick the flip box in its inspector, to turn it round: it blocks, and almost the whole 9 V sits across it.

What is a diode?

A diode is a one-way valve for current. Its two pins are the anode and the cathode: current flows from anode to cathode, and almost none flows back.

The diode symbol, anode and cathode

The lab draws these symbols in its Symbols view. The triangle points the way current flows, into the bar: the cathode, marked by a band on a real diode. The Zener's bar has bent ends; the LED adds two arrows for its light.

Diode symbol, anode and cathode labelled Anode Cathode
Diode
Zener diode symbol, anode and cathode labelled Anode Cathode
Zener diode
LED symbol, anode and cathode labelled Anode Cathode
LED

Why a diode drops about 0.7 V

Textbooks round a silicon diode's drop to about 0.7 V, but the lab draws the real curve. Its plain diode is set to about 0.8 V at 1 A, so it drops about 0.44 V at 0.86 mA, 0.56 V at 8.4 mA and 0.68 V at 83 mA.

The current changes a hundred times while the drop changes by less than 0.25 V, so the series resistor sets the current. In the full lab, with NGSpice turned off, you can change the forward voltage in the diode's inspector.

Turned round, the diode is reverse biased: about 8.99 V across it and 0.00 A. In the full lab with NGSpice turned on, the ammeter shows a small reverse current, about 9 µA.

Zener diode and the voltage regulator

A Zener diode conducts in reverse once it reaches its Zener voltage, and holds that voltage. Wired in reverse across a load, with a series resistor, it makes a voltage regulator.

A 12 V battery feeds a 5.6 V Zener through 330 Ω, with a 1 kΩ load across it. The voltmeter reads the output, the ammeter the battery current.

Preview of Zener Diode Voltage Regulator with a Load
Open in the lab Embed Run the circuit right here. To edit it in the full lab, sign in; free accounts have a time limit there.
  1. Read the output: about 5.63 V. The battery gives about 19.3 mA: 5.6 mA to the load, 13.7 mA to the Zener.
  2. Set the battery to 9 V, then 15 V: the output moves only to about 5.60 V and 5.64 V.
  3. Click the Zener and change its Zener voltage, 5.6 V by default, settable from 0.1 to 12 V.

With NGSpice turned on in the full lab, the readings agree: 8.44 mA in the forward bias circuit, 5.63 V at the Zener output.

Rectifiers: from AC to DC

A rectifier uses diodes to turn AC into current that flows one way.

The bridge rectifier part has its own forward voltage setting, 0.7 V per diode at 10 mA by default, separate from the plain diode's curve.

Diode vs Zener vs LED

More diode circuits

Each runs on its own page without an account.

Use it in class

A diode circuit makes a short assignment: students change one value, read the meters and explain.

The free classroom demo gives you one classroom with room for 30 students for 7 days, counted from when your first student joins (once per teacher); after that it keeps up to 5 students. You sign in first.

Try the free classroom demo

Frequently asked questions

Why does a diode drop 0.7 V and not 0?

A silicon junction needs a small voltage before much current flows. In the lab the drop is about 0.56 V at 8.4 mA and 0.68 V at 83 mA; textbooks round it to 0.7 V.

Do I need a series resistor with a diode?

Yes. Once a diode conducts its voltage barely changes, so a resistor has to set the current.

What is the difference between a diode and a Zener diode?

Both conduct forward. In reverse a diode blocks, while a Zener conducts at its Zener voltage and holds it, so it can regulate.

What happens to a Zener regulator when the load changes?

The output stays near the Zener voltage while the Zener takes the current the load does not. A heavier load leaves less for the Zener; once that reaches zero, the output falls.

Why does a bridge rectifier output read lower than the AC peak?

The current passes two diodes on every half cycle, so two drops are lost, and the load drains the capacitor a little between peaks: a 12 V peak gives about 10.3 V in the lab circuit.

Can I simulate a diode free online?

Yes. The circuits on this page run free in your browser, with no account. With a free account the full lab is free to try, then switches to a limited mode.

Does the diode simulator work on a Chromebook?

Yes. DCACLab runs in the web browser, with nothing to install.

Build your own diode circuit

Open the lab and wire a diode, a resistor and a battery yourself, then add meters.

Open the lab