HomeElectronics & CircuitsSemiconductor P-N Junction

Semiconductor P-N Junction

Interactive p-n junction simulator: watch electrons and holes diffuse across a silicon lattice, recombine into a depletion zone, and see forward/reverse bias widen or shrink that zone and switch current on or off, following the Shockley diode equation.

Electronics & Circuits3DModerate60 FPS
semiconductors-explained ↗ Open standalone

Every chip in the global semiconductor industry — from a $600 billion foundry's most advanced 3nm process down to a simple diode — is built from millions of microscopic p-n junctions like the one visualized here. This simulator renders a silicon lattice split into a p-type region (boron dopant, mobile holes) and an n-type region (phosphorus dopant, mobile electrons). Watch carriers diffuse toward the junction and recombine into a depletion zone, then drag the applied-voltage slider to forward- or reverse-bias the junction and see the zone narrow or widen exactly as the Shockley diode equation predicts, switching current flow on or off.

⚙ Under the hood

Interactive p-n junction simulator: watch electrons and holes diffuse across a silicon lattice, recombine into a depletion zone, and see forward/reverse bias widen or shrink that zone and switch current on or off, following the Shockley diode equation.

Three.jsSemiconductorP-N JunctionDiodeDepletion ZoneShockley Equation

3D · Three.js / WebGL renderer · 60 FPS target · runs fully client-side, no install

What did you find?

Add reproduction steps (optional)