THE PV LAB
Light meets a junction.
Follow the charge.
Watch light generate carriers, shift the energy bands and turn on an NPN phototransistor. Compare a same-material device with a wider-gap emitter.
Bands & carriers · Optical switching experiment ↓
EXPERIMENT 01 · THE NPN PHOTOTRANSISTOR
From photons to current
Experiment controls
Base-band shift Downwards from dark reference
Relative injected current
Doping & illumination settings
Relative light scales the imposed excess population and photon rate; it is not calibrated optical power. Population plots follow light in Device mode; Explore keeps its chosen Fermi level.
Fermi exploration
Population plots & overlays
Choose Actual populations to set the limit. Plot axes stay fixed until you change the setting.
Local fields change drift speed; thermal motion remains at 0 V. Motion and particle counts are illustrative.
About these controls
Doping is fully ionised in this neutral-region model. At extreme settings, ionisation, band-gap narrowing, impurity effects and leakage need additional modelling. Illumination imposes excess carriers; optical power, terminal current and gain are not solved.
Bands, carriers & fields
Energy / positionDiagram notes
Eꜰₙ: cyan dashes · Eꜰₚ: pink dots. At dark equilibrium the common Fermi level spans the whole device. Otherwise short marks show local neutral-region values; quasi-Fermi profiles across junctions are not calculated.
COUNTING CARRIERS
Energy distributions · p base
Solid: selected temperature. Dashed: 300 K at the same illumination state. Both plots use the same increasing electron-energy axis: valence band left, conduction band right. Blue shows occupied states in both bands. Orange shows empty states; only the valence-band vacancies are mobile holes. Curves show the 750 meV window next to each band edge.
Holes & other empty states
Understanding the population curves
Carrier numbers combine the available states with their occupation: electrons follow g꜀(E)fₙ(E), while holes follow gᵥ(E)[1 − fₚ(E)]. The occupation functions are Fermi–Dirac functions, with separate quasi-Fermi levels when the populations are out of equilibrium.
For mobile conduction electrons and valence holes in the nondegenerate limit, this reduces to a skewed curve proportional to √ε exp(−ε/kT). It starts at zero at the band edge, peaks at ε = kT/2, then has a long thermal tail. Its mean energy is 3kT/2.
A quasi-Fermi level is a population-setting chemical potential, not an energy where carriers collect. It can lie in the gap even though there are no band states there. At full thermal equilibrium there is one flat Fermi level. With the collector supply on, darkness alone is not equilibrium. Choose Dark equilibrium for no light and no applied bias; built-in band bending remains.
EXPERIMENT 02 · OPTICAL SWITCHING
Charge in. Charge out.
Explore a turn-on boost, a lower holding level, and an independently timed photodiode discharge pulse. Based on M. J. Lazarus and R. W. Price’s Pulsed Optical Switching of Junction Phototransistors (1997), using its charge-control treatment and two-light-source technique. Adjustable device parameters remain illustrative; this is not a fitted BPX25 simulation.
Read the full paper (PDF, 5 pages) ↗ · Publisher record ↗
The apparatus and what the paper measured
The experiment used a Zetex BPX25 phototransistor, red HP HLMP8103 LEDs and a BPX65 discharge photodiode. The on LED first delivers a strong pulse and then a lower holding level. At switch-off, that light falls while the off LED illuminates the discharge photodiode. The phototransistor must have an accessible base lead.
The characterisation used VCC = 15 V and RL = 1 kΩ; Figure 7 also shows switching a 1 kΩ load. Section 7 reports turn-on of 0.15 µs and turn-off below 0.25 µs. These are reported measurements, not results predicted by the adjustable parameters below. The original oscilloscope output is collector voltage: it falls as collector current rises.
The experimental driver used five op-amps to combine differentiated edges with an adjustable holding signal and emitter-follower LED drivers (Figure 6). The authors approximate the non-rectangular drive pulses by rectangles with equal area. A negative-going current-probe trace denotes the separate off LED, not negative light.
Solid cyan: selected drive. Dashed grey: rectangular illumination at the same holding level, with no extraction. Comparisons are not equal optical energy. Orange: auxiliary extraction current.
Model, circuit interpretation and limits
A collector supply and load limit the output current. The input light supplies an equivalent base photocurrent. A separately illuminated auxiliary photodiode is represented only by a current sink that removes stored base charge after switch-off. Figure 5 connects the discharge photodiode cathode to the base and its anode to the emitter/0 V. Light-induced conventional photocurrent removes charge from the base. The extraction-current control is an equivalent current, not LED drive current or an absolute optical-power calibration.
dQ/dt = Iphoto − Q/τ − Iextract, clamped at Q ≥ 0; IC = min(Q/τT, Ilimit). Q is excess base charge, τ its effective lifetime and τT an effective transit time. Active-region gain in this model is τ/τT. Charge above Ilimit × τT represents excess storage after output current reaches its load limit. The model omits explicit junction capacitances, voltage dynamics, collector-region storage, leakage, wavelength dependence and photodiode response time.
Blue dots represent stored charge, not individual electrons. Replay is deliberately slowed down; the axes are in microseconds. Rise/fall times use 10–90% / 90–10% of each trace’s own pulse peak; off-to-10% includes storage delay. The paper’s reported 150–250 ns values are context only and are not calibration targets. Appendix A defines TR from zero current to the full on-state current; this differs from the 10–90% rise reported by these plots.
Paper equation A3: TR = −τB ln[1 − τF ICS/(τB IB(on))]. The model uses τ = τB and τT = τF. The required holding current is ICS τF/τB. For a much stronger turn-on current, A4 gives TR ≈ τF ICS/IB(on), or pulse charge ≈ τF ICS. The “Match” button sets the hold to that ideal value and the boost duration to A3, avoiding unnecessary overdrive in this constant-lifetime model.
The paper discusses transient electric fields that may shorten transit time below the steady diffusion value W²/(2D). That spatial transient effect is not solved here; τT remains fixed. Equations 1–2 are empirical LED/illuminance calibrations for the experimental arrangement, not universal conversions, so the controls remain equivalent photocurrents.
General background: Vishay — physics and technology of optoelectronic devices. The dynamics follow the paper’s equation 3 / Appendix A, extended here with an ideal extraction current and load-current clamp. Example lifetimes and pulse settings are not extracted device parameters.
Fermi Level
UNDERSTANDING THE FERMI LEVEL
How the Fermi level sets occupation
The Fermi level is the electron chemical potential: it describes the free-energy cost of adding an electron. At a finite temperature, an available state at this energy has a 50% probability of being occupied. States below it are more likely occupied; states above it are less likely. At absolute zero the transition becomes a sharp step.
f(E) = 1 / [1 + exp((E − Eꜰₙ) / kᵦT)]
The pictures show occupation probability, not the number of electrons. A probability can be defined in the gap even though there are no band states there: the Fermi level is not a place where electrons collect.
Fermi level below the band edge
Fermi level inside the conduction band
It can enter a band. Heavy n-type doping can put the equilibrium Fermi level inside the conduction band. Strong injection or accumulation can also raise the electron quasi-Fermi level above the local conduction-band edge. This is the degenerate regime; the full Fermi–Dirac distribution is needed rather than the dilute-population approximation.
Bias can move the band edges too. What controls occupation near the conduction-band edge is the local difference Eꜰₙ − E꜀, not either level’s absolute height. Raising the applied voltage does not automatically push Eꜰₙ into the band.
One level or two? At full thermal equilibrium, Eꜰₙ = Eꜰₚ = Eꜰ is flat throughout the connected device. Under illumination or current flow, separate quasi-Fermi levels describe conduction-electron and valence-hole populations. The diagrams here use Eꜰₙ; at equilibrium it is simply Eꜰ.
Two linked experiments: Device mode fixes the doping and calculates local Fermi–Dirac populations. Explore mode fixes a common Eꜰ − E꜀ in the selected region’s material and calculates the implied equilibrium doping. Apply transfers that doping to the device in dark equilibrium. Both include high-density occupation statistics; the junction profiles and illuminated carrier motion remain teaching approximations, not a solved transistor.
Background: NPTEL: states and occupation · MIT: Fermi levels inside bands
Reading the diagram
Switching: lamp and intensity changes set a target. Stored excess carriers and the illustrative base photovoltage approach that target gradually, so the bands, depletion widths and field arrows move during turn-on and turn-off. New photons stop when the lamp is off; existing carriers clear or recombine and the biased injection stream fades as stored charge decays. Pause freezes the transition; Advance slowly steps it. Dark equilibrium is an immediate reset. Animation seconds are deliberately slowed teaching time, not a predicted transistor switching time.
Where photons are absorbed: example pairs are shown both in the neutral base and near B–C. Pairs in the junction are swept apart; in the neutral base diffusion and recombination compete. The illustrative locations are not an optical absorption profile.
Slope versus curvature: dE꜀/dx = qE and d²E꜀/dx² = qρ/ε when band energy is in joules. Band slope gives electric field; band curvature gives space-charge density. Uniform ionised dopants in each depleted side produce parabolic bands and a triangular field profile. The bands join flat neutral regions with zero edge field. These are abrupt-junction approximations; real depletion edges are smoother. Material-offset steps at a heterojunction are not an infinite electrostatic field.
Depletion regions: the shaded E–B and B–C boxes now change width with the electrostatic junction drop. Increasing collector reverse bias widens B–C; light-induced forward bias narrows E–B. At zero applied bias both retain their built-in depletion regions. The abrupt-junction approximation uses W = √[(2ε/q)(1/Nₐ + 1/Nᴅ)(Vbi − Vforward)], and the more lightly doped side takes more of the width (Nₐxₚ = Nᴅxₙ). Band bending and carrier drift use the same moving boundaries. Bright arrows within the band gap show electric-field direction, the force direction for positive charge; electrons drift oppositely. Arrow length and thickness increase with the estimated peak field (2 × junction drop / depletion width); their display scale is compressed at high fields. Each arrow is centred within its shaded depletion region and its length is limited to fit inside that region.
Widths are compressed for display, with a minimum visible strip; they are not a physical device scale. The voltage drop comes from this app’s imposed band model. The approximation uses silicon permittivity on both sides, including the generic heterojunction, and is qualitative in strong injection, near flat band, or at extreme doping/temperature. It does not solve punch-through, tunnelling or a self-consistent transistor. See MIT: junction electrostatics and depletion width.
Use the shared controls above the diagrams to change bias, doping, temperature, illumination, Fermi exploration and plot scales. Relative illumination runs from 0% (dark) to 100% of the chosen full-light base excess density. Photon generation rate also follows this setting; neither quantity is calibrated to optical watts. The Light on/off button remembers the chosen intensity. Pause the animation or advance slowly. Filled dots are electrons; hollow dots are holes. A dotted halo identifies a minority carrier. The same electron is a majority carrier in the n-type emitter, a minority carrier in the p-type base, and a majority carrier again in the collector.
The vertical axis is electron energy, not physical height. The coloured curves are the conduction- and valence-band edges; dashed curves show the dark reference at the same collector–emitter voltage. Raising the base potential lowers its electron-energy bands, reducing the emitter–base barrier.
Heterojunction option: the emitter uses a wider-band-gap semiconductor than the base and collector. The steps labelled ΔE꜀ and ΔEᵥ are material band offsets. In this example the larger valence-band barrier suppresses unwanted hole injection from base to emitter, improving emitter injection efficiency. The emitter–base junction is a heterojunction; the base–collector junction remains a homojunction.
The alignment is a generic illustration, not a prediction for a particular material pair. Actual offsets depend on the materials and interface; carrier flows also depend on doping, bias, transport and recombination. The field arrows show the electrostatic part of the band bending: a material band-edge step must not be interpreted as an infinite electric field. The neutral-region doping is set in Device conditions and held fixed during temperature changes, and band positions are adjusted to remain consistent with the local populations. The generic emitter keeps the silicon effective densities of states and adds a fixed 0.47 eV gap increase (0.12/0.35 eV band offsets); this is a teaching comparison, not a calibrated heterostructure or a prediction of gain.
The field arrows point in the force direction for positive charge. Holes feel force along them; electrons feel force in the opposite direction. Forward bias weakens the emitter–base field: emitter electrons enter the base by diffusion against that remaining field. The collector–base field sweeps electrons into the collector.
This example places photon absorption in the collector–base depletion region. Pairs generated nearby can also contribute if they reach a collecting junction before recombining. Carrier counts, lifetimes, transit speeds and band shapes are illustrative, not a numerical device simulation. Depletion widths and transit speeds remain schematic; they are not recalculated from a transport solution.
Quasi-Fermi levels and temperature: cyan dashes mark Eꜰₙ, and pink dots mark Eꜰₚ. Away from equilibrium, short segments show local values in the neutral emitter, base and collector; they do not join across the depletion regions because a spatial transport calculation would be needed. Choose Dark equilibrium to remove illumination and applied collector bias together: Eꜰₙ = Eꜰₚ = Eꜰ is one flat line across the entire device, while built-in band bending and junction fields remain. The collector supply selector switches between zero and the chosen 0–5.00 V. With a collector bias applied, darkness alone is not equilibrium. In the dark, the neutral-region approximation gives coincident electron/hole levels locally; the reverse-biased junction is still out of equilibrium.
Recombination: nearby photogenerated electrons and holes can disappear from the mobile populations, shown by a brief green marker and “energy → lattice”. The electron fills an empty valence state; it is not destroyed. This illustrates a non-radiative process, such as trap-assisted recombination, whose released energy goes into lattice vibrations rather than an emitted light pulse. The marker does not draw the intermediate trap states. Weak fields can leave carriers near one another longer, giving more opportunity to recombine; recombination can also occur in strong-field regions.
Encounter timing, particle lifetimes and the occasional base-recombination example are schematic, not calculated capture rates. The plotted populations remain the imposed steady-state model; individual cartoon events do not change them. Particles that leave the display or reach its time limit also fade without a recombination marker. See TU Wien: carrier generation and recombination.
Field-dependent motion: photogenerated electrons drift opposite the local electric field; holes drift along it. The drift contribution increases with field and approaches a finite speed, representing scattering-limited transport. Small random steps illustrate diffusion, which continues where the field is weak. Electrons have the higher illustrative mobility. Material band offsets are excluded from the electric-field estimate. Small arrows beside photocarriers show the drift contribution, not each random step.
Moving injected-electron markers follow the local conduction-band edge through emitter, base and collector, including material steps. Their fixed visual offset is not a calculation of kinetic energy or an individual ballistic trajectory; it does not imply tunnelling through the emitter barrier. Selected emitter-to-collector paths under illumination and nonzero collector bias slow in the opposing emitter–base field and speed up in the aiding collector field. Their forward diffusion component is imposed to illustrate successful injection; it is not a solved carrier flux. Choosing 0.00 V on the slider is equivalent to No applied bias for the animation: the supply-driven stream disappears immediately, while local photogenerated pairs and thermal motion remain. In dark equilibrium, thermal motion does not imply a net current. Position units, mobility, lifetimes and animation seconds are arbitrary; these speeds are not device transit-time predictions. See TU Wien: drift and scattering-limited velocity.
Light with no applied bias: built-in junction fields still separate photogenerated electrons and holes. This view shows that separation, but hides the amplified emitter-to-collector stream used with the supply on. It does not assert that emitter injection or terminal photocurrent is exactly zero. Holding collector and emitter at the same potential is different from leaving them open circuit. An illuminated junction can deliver photocurrent through an external connection at zero voltage; with an open circuit it instead develops a photovoltage, with no steady external current. This simplified NPN model does not solve terminal currents or open-circuit voltages.
Linked Fermi exploration: select emitter, base or collector using the buttons above the band diagram or the region selector. Device mode follows that region’s actual local populations. Explore selected region copies its Eꜰₙ − E꜀ and material gap to a common-Fermi-level experiment; it does not copy both populations when Eꜰₙ and Eꜰₚ differ. The slider spans −2.20 to +0.40 eV, reaching both valence and conduction bands. Full Fermi–Dirac integrals give n and p. Under fully ionised, neutral equilibrium conditions the implied net doping is Nᴅ − Nᴀ = n − p. Apply accepts 10¹²–10²¹ cm⁻³ with the correct doping type for that NPN region, sets its doping, and turns off illumination and collector bias. Other region dopings are retained.
In Explore mode, temperature changes hold Eꜰ − E꜀ fixed, so the inferred doping changes. In Device mode, temperature changes hold doping fixed, so Eꜰ moves relative to the bands. Light and bias do not change the Explore curves; selected region and junction type determine its material. Optional probability strips show f(E) and 1 − f(E) on fixed 0–100% axes. Mathematical probabilities in the band gap do not imply available states there.
Population plots: both plots have the same fixed, linear electron-energy axis E − E꜀, from −2.6 to +0.75 eV. Valence-band states lie to the left of Eᵥ, conduction-band states to the right of E꜀. There are no band states in the gap. Both quasi-Fermi markers are shown: Eꜰₙ controls conduction-band occupation; Eꜰₚ controls valence-band occupation. Blue plots occupied electron states g(E)f(E); orange plots empty states g(E)[1 − f(E)]. Only empty valence-band states are ordinarily called mobile holes; the many unoccupied conduction-band states are not an additional hole population. The printed n and p remain conduction-electron and valence-hole totals.
Curves show only the 750 meV window next to each band edge, using a parabolic density of states and Fermi–Dirac occupation. Bands continue beyond the displayed windows. Shape mode normalises each band window separately to unit area, with a fixed 0–30 eV⁻¹ vertical axis; it compares shapes, not relative numbers. Actual populations share your manual vertical limit. Choose 10²¹ or 10²² cm⁻³ eV⁻¹ to see the nearly filled valence band and nearly empty conduction band; choose smaller limits to inspect mobile carriers. Peaks above the selected limit are clipped and labelled. Neither population axis automatically rescales. The main band diagram expands its labelled energy span when needed to keep extreme device conditions visible. The 300 K reference uses its own band gap on the same energy axis. Printed n and p and the plotted populations use the same full Fermi–Dirac statistics.
At 200–600 K the model assumes fully ionised dopants, parabolic bands and carriers thermalised to the lattice. Default donor/acceptor densities are 10¹⁷ / 10¹⁶ / 10¹⁵ cm⁻³ in emitter/base/collector; each can be set from 10¹² to 10²¹ cm⁻³. Degenerate occupation is included, but high-doping band-gap narrowing, impurity bands and changes to effective mass are not. The highest densities illustrate the statistics rather than accurately modelling a heavily doped real material. Silicon uses Eɡ(T) = 1.17 − 4.73×10⁻⁴ T²/(T + 636) eV, N꜀ = 2.8×10¹⁹(T/300)³ᐟ² and Nᵥ = 1.04×10¹⁹(T/300)³ᐟ² cm⁻³. These parameters give an illustrative intrinsic density, not a precision fit to a specific sample.
Dark neutral regions are solved from n − p = Nᴅ − Nᴀ using n = N꜀ F₁/₂[(Eꜰ − E꜀)/kT] and p = Nᵥ F₁/₂[(Eᵥ − Eꜰ)/kT], with the normalised Fermi integral. Under illumination, equal excess electrons and holes are added in the base, default 10¹³ cm⁻³ at full light, adjustable from 10⁸ to 10¹⁹ cm⁻³. Separate local quasi-Fermi levels are inferred from those populations. The steady base-band shift follows an ideal injection approximation: the base electron quasi-Fermi level is referenced to the emitter, giving ΔV = (kT/q) ln(1 + Δn/n_dark) in the nondegenerate limit. Full Fermi–Dirac statistics extend this relation at high density. There is no artificial 0.30 V limit or extra illumination-linear voltage term. At default doping and 300 K, 1% light gives about 0.442 V and 100% about 0.561 V. Both base bands shift together; the material gap is unchanged. During the slowed transition, a single evolving base-shift coordinate determines the excess population through that same relation. The electron quasi-Fermi level therefore stays at the emitter reference instead of spuriously overshooting on turn-off; the hole quasi-Fermi level approaches it from below. At zero applied bias all regions reach one common equilibrium level. With collector bias present, the collector retains its separate energy reference. The relaxation time is illustrative, not a calculated recombination lifetime. The readout shows the current downward band-energy shift in eV; its numerical value equals the positive base-potential shift in volts. Emitter/collector excess populations remain illustrative inputs. Changing collector voltage moves its energy reference; it does not solve how voltage changes generation, collection or gain. These controls connect local statistics consistently, not a full optical or transport model.
Moving charge density: the bright electron stream represents relative injected current. Its packet rate is proportional to the evolving base excess electron concentration; 1 × reference means the default 10¹³ cm⁻³ excess. At fixed settings, 25% illumination gives one quarter of the injection rate at 100%. With field-dependent speed, packets spread out where they move faster: current depends on charge crossing a point per second, not spacing alone (I = charge density × area × drift speed). Each dot represents a packet of charge. Above 4 × reference, the display groups more charge per dot and states the multiplier. The faint thermal carriers and separately illustrated photon-generated pairs are not counted in this current scale. The readout is before the schematic base-recombination examples; it is not collector current. At zero collector bias the bias-driven stream is suppressed; this does not assert zero possible photovoltaic terminal current. Geometry, mobility, gain, saturation and actual terminal current are not solved, so this is a fixed-transport relative-current illustration, not amperes.
Not calculated: temperature-dependent optical absorption, mobility, recombination lifetimes, current gain, leakage current, terminal current and self-heating. Thermal minority density rises strongly, but a leakage current would also require a transport/lifetime model. Animated dots are schematic samples with logarithmic thermal visibility; use the population totals for numbers. Thermal energy spread is not directed drift speed. The temperature control updates the local statistics immediately; light-on motion remains illustrative. Light off starts a deliberately slowed stored-charge decay. The bands then return to their grey dark references; at zero applied bias the settled Fermi level is flat. The Dark equilibrium button selects that endpoint immediately. Decay times are illustrative, not calculated lifetimes.
Distribution theory: NPTEL: density of states and carrier occupation. Temperature relation: TU Wien: temperature dependence of the band gap.
A phototransistor uses an external electrical supply for current amplification. A solar cell is a different device that delivers electrical power from absorbed light.
Further reading: UC Berkeley: bipolar phototransistors and their energy-band diagrams.