Three ways to model a diode

Calculate · 12 min

Here's the simplest diode circuit: a 9 V supply driving a 470 Ω resistor into a diode. How much current flows depends on how much voltage the diode takes, and that depends on the current. To get a number you need a model of the diode: a simpler stand-in you can calculate with.

There are three, each more exact than the last.

1. Ideal diode. A perfect one-way switch: no voltage across it forwards, no current backwards. With that model, what current flows from 9 V through 470 Ω?

Answer in mA.

2. Constant drop. The diode is a switch with a fixed 0.7 V across it once it conducts. Now what current flows from 9 V through 470 Ω?

Answer in mA.

3. Exponential. The real curve, the Shockley equation: for a 1N4148, n = 1.752, IS = 2.52e-9 A, VT = 0.0259 V. Turned round to give the voltage at a current:

VD=nVTln⁡(IIS)

You can't solve the circuit in one go any more: the current depends on VD and VD on the current. So iterate: start from the constant-drop current, 17.7 mA; work out VD at that current; then the current through the resistor, (V−VD)/R; then VD again. Two rounds is plenty.

What is the diode's voltage?

Answer in V.

Compared with the exponential answer, 17.6 mA, the constant-drop model was out by 0.292% and the ideal model by 8.75%. When is the ideal model good enough?

  • When the supply is much bigger than 0.7 V, so the drop hardly matters
  • When the current is very small
  • When the resistor is small
  • Never: always use the exponential model

Three models of a diode:

  • ideal: a perfect switch, VD=0;
  • constant drop: VD = 0.7 V when conducting (0.3 for a Schottky, about 2 for a red LED);
  • exponential: VD=nVTln⁡(I/IS), solved by iterating, two rounds enough.

On a real bench the constant-drop answer is usually closer to a real diode than the parts' own tolerance: a 5% resistor already moves the current more than the model's error. Save the exponential for when the drop itself is what you're after.