k = 1.381×10⁻²³ J/K, q = 1.602×10⁻¹⁹ C. n = 1: diffusion-dominated; n = 2: recombination-dominated.
Compute diode current using the Shockley equation $I = I_0(e^{V/nV_T}-1)$. Adjust material, ideality factor, and temperature to explore how semiconductors behave across operating conditions.
k = 1.381×10⁻²³ J/K, q = 1.602×10⁻¹⁹ C. n = 1: diffusion-dominated; n = 2: recombination-dominated.
n, accounts for this. If n=1, current is dominated by pure diffusion of charges. If n=2, it means recombination in the depletion region is significant. Slide the "Ideality Factor" control between 1 and 2 to see how it smears out the knee of the curve.The core model for an ideal PN junction diode's current-voltage relationship is given by the Shockley diode equation:
$$I = I_0\left(e^{V/(nV_T)}- 1\right)$$I is the diode current (A). V is the voltage across the diode (V). I₀ is the reverse saturation current, a tiny constant dependent on the material. n is the ideality factor (1 to 2). V_T is the thermal voltage.
The thermal voltage is not a fixed number; it's set by the absolute temperature and fundamental constants:
$$V_T = \frac{kT}{q}$$k is Boltzmann's constant (1.381×10⁻²³ J/K). T is the absolute temperature in Kelvin (K). q is the elementary charge (1.602×10⁻¹⁹ C). At room temperature (T=300K), $V_T \approx 25.9$ mV. This equation shows why temperature is a key control in the simulator.
Rectifiers in Power Supplies: The one-way current flow is used to convert alternating current (AC) from your wall outlet into direct current (DC) needed by electronics. The sharpness of the I-V curve determines how efficiently this conversion happens.
Voltage Clamping & Protection: Diodes can be used to limit voltage spikes. For instance, a Zener diode (a special type) uses the reverse breakdown region—which you can simulate by extending the voltage to negative values—to provide a stable reference voltage or protect sensitive circuits.
Temperature Sensing: Since the forward voltage drop has a known, predictable dependence on temperature (as you explored with the T slider), diodes are often used as inexpensive and accurate temperature sensors in integrated circuits.
Solar Cells & Photodiodes: A PN junction is the heart of a solar cell. When light hits it, it generates a current. This simulator shows the "dark" characteristic; under light, the entire I-V curve shifts down, allowing power to be extracted from the device.
There are several important points to keep in mind when using this simulator, especially from a practical design perspective. First, the misconception that "the forward voltage Vf is always 0.7V (for silicon)". This is a significant misunderstanding. The 0.7V in a datasheet is merely a "typical value" at a specific current (e.g., 10mA or 100mA). Try switching the current scale in the simulator from logarithmic to linear and compare the voltage drop at 1mA and 100mA. Even when the current increases tenfold, the voltage only increases by about 60mV (for n=1 at room temperature), but the absolute value changes substantially. In low-current circuits, it can be around 0.4V, and in high-current rectification, exceeding 1V is not uncommon.
Next, the handling of the reverse saturation current I₀. While it's a fixed value in the simulator, actual components have significant manufacturing variations, and datasheets often only list a "maximum" value. For example, a silicon diode's I₀ might be listed as 1nA (typical) at 25°C, but the maximum could be 50nA, and at high temperatures, this value can swell by a factor of 1000 or more. In high-impedance circuits where reverse leakage current must be strictly considered, this variation can make or break your design.
Finally, it's crucial to understand the "applicability limits" of the Shockley diode equation. While this equation explains mid-current region behavior very well, real diodes have many effects not included in this model. In the high forward current region, the voltage drop due to internal semiconductor resistance (bulk resistance) becomes non-negligible, making the graph slope steeper. Conversely, at very low forward voltages or in the reverse region, effects like surface leakage and recombination become dominant, causing simulation and actual measurements to diverge. It's essential to use it strictly as a "beautiful first-order approximation model" and move to higher-order models (like SPICE models) as needed.
Silicon power diode at 300 K (27°C): I₀ = 10⁻¹² A, n = 1.2. Thermal voltage VT = 25.9 mV. At forward bias of 0.7 V, the Shockley equation yields I = I₀[exp(qV/nkT)−1] = 10⁻¹² [exp(0.7/(1.2×0.0259))−1] ≈ 1.0 mA. Forward voltage at 1 mA matches observed 0.68–0.72 V typical for silicon rectifiers. Increasing temperature to 350 K reduces Vf by approximately 2.1 mV per degree Celsius due to increased I₀ and higher VT.