Table of Contents
Electronics Reference: Diodes & Transistors
1. Semiconductor Basics (P-N Junctions)
Pure silicon (Si) or germanium (Ge) is an intrinsic semiconductor. Adding controlled impurities (doping) creates two distinct regions:
- N-Type Semiconductor: Doped with pentavalent elements (e.g., Phosphorus, Arsenic) to provide excess free electrons as majority charge carriers.
- P-Type Semiconductor: Doped with trivalent elements (e.g., Boron, Gallium) to create electron vacancies called holes as majority charge carriers.
- P-N Junction & Depletion Region: Joining P-type and N-type materials forms a P-N junction. Electrons diffuse across the boundary and recombine with holes, creating an insulating depletion region with an internal barrier potential (~0.7 V for Silicon, ~0.3 V for Germanium/Schottky).
- Forward Bias: Positive voltage on the Anode (P) relative to the Cathode (N) narrows the depletion region and allows current to flow once the forward voltage drop ($V_F$) is exceeded.
- Reverse Bias: Positive voltage on the Cathode (N) widens the depletion region, blocking current flow up to the component's Reverse Breakdown Voltage ($V_{BR}$).
2. Diodes: Types, Characteristics & Applications
A diode is a two-terminal semiconductor device (Anode `+` and Cathode `-`, marked by a painted band on the package) that acts primarily as a one-way valve for electric current.
| Diode Type | Typical Forward Drop ($V_F$) | Switching Speed | Key Characteristics & Primary Applications | Common Part Numbers |
|---|
| Standard Rectifier Diode | 0.7 V – 1.1 V | Slow (50/60 Hz line frequency) | High current/voltage handling; AC-to-DC bridge rectifiers, reverse-polarity protection | `1N4001` – `1N4007` (1A), `1N5408` (3A) |
| Fast-Recovery / Signal Diode | 0.6 V – 0.7 V | Very Fast (nanoseconds) | Low junction capacitance; high-frequency signal clipping, logic clamping, flyback protection | `1N4148`, `1N914`, `UF4007` |
| Schottky Barrier Diode | 0.15 V – 0.45 V | Ultra-Fast (zero reverse recovery) | Metal-semiconductor junction; low power loss, buck/boost converters, solar bypass, OR-ing | `1N5819` (1A), `1N5822` (3A), `SS34` |
| Zener Diode | ~0.7 V (forward) | Fast | Engineered to operate safely in reverse breakdown at a precise Zener voltage ($V_Z$); voltage references, over-voltage clamping | `1N4728A` (3.3V), `1N4733A` (5.1V), `1N4742A` (12V) |
| TVS Diode (Transient Voltage Suppressor) | 0.7 V – 1.5 V | Sub-nanosecond (< 1 ps) | Absorbs massive high-energy electrostatic discharge (ESD) and inductive voltage spikes; bidirectional or unidirectional | `SMBJ5.0A`, `1.5KE18CA`, `PESD5V0` |
| LED (Light-Emitting Diode) | 1.8 V – 3.4 V (by color) | Fast | Emits photons when forward biased; always requires a current-limiting series resistor | Red (~1.8V), Green/Yellow (~2.1V), Blue/White (~3.2V) |
| Photodiode | N/A (Reverse-biased) | Ultra-Fast | Converts incident light into reverse photocurrent; optical encoders, LiDAR receivers, IR remotes | `BPW34`, `SFH203` |
2.1 Essential Diode Circuit Rules
- LED Current-Limiting Resistor Formula:
$$R = \frac{V_{supply} - V_F}{I_F}$$
- Flyback (Freewheeling) Diode Protection: Whenever switching an inductive load (relay coil, solenoid, DC motor, or drone ESC/actuator), place a fast diode (e.g., `1N4148` or `1N5819`) in reverse parallel across the coil (Cathode to `+V`, Anode to switched ground). When power turns off, the collapsing magnetic field recirculates safely through the diode instead of generating a destructive high-voltage spike.
3. Transistors: BJT vs. MOSFET
A transistor is a three-terminal active semiconductor device used either as an electronic switch (saturation/cutoff) or a linear signal amplifier (active region). The two primary families are Bipolar Junction Transistors (BJTs) and Metal-Oxide-Semiconductor Field-Effect Transistors (MOSFETs).
| Parameter | BJT (Bipolar Junction Transistor) | MOSFET (Metal-Oxide-Semiconductor FET) |
|---|
| Control Mechanism | Current-Controlled (Base current $I_B$ controls Collector current $I_C$) | Voltage-Controlled (Gate-to-Source voltage $V_{GS}$ controls Drain current $I_D$) | ||
| Three Terminals | Base (B), Collector (C), Emitter (E) | Gate (G), Drain (D), Source (S) | ||
| Polarity Variants | NPN (sinks current to ground) and PNP (sources current from $+V$) | N-Channel (low-side switch) and P-Channel (high-side switch) | ||
| Input Impedance | Low-to-Moderate (draws continuous base current) | Extremely High ($10 | 9$–$10 | {12}\ \Omega$; draws near-zero steady DC gate current) |
|---|---|---|---|---|
| On-State Loss | Fixed Collector-Emitter Saturation Voltage ($V_{CE(sat)} \approx 0.1\text{ V} - 0.3\text{ V}$) | Resistive On-Resistance ($R_{DS(on)}$, often $1\text{ m}\Omega - 50\text{ m}\Omega$; power loss $= I_D | 2 \times R_{DS(on)}$) | |
| Switching Speed | Moderate (limited by minority carrier storage time) | Very Fast (tens of nanoseconds; ideal for high-frequency PWM & motor ESCs) | ||
| Best Applications | Analog audio/sensor amplification, low-current logic level shifting, current mirrors | High-current power switching, DC-DC converters, brushless ESCs, battery protection | ||
| Common Part Numbers | NPN: `2N2222`, `2N3904`, `BC547`, `TIP120` (Darlington) / PNP: `2N3906`, `2N2907` | N-Ch: `2N7000`, `IRLZ44N` (Logic-Level), `IRF540N` / P-Ch: `IRF9540N`, `AO3401` |
4. Practical Transistor Switching Design Rules
4.1 Using an NPN BJT as a Low-Side Switch
To switch a load (relay, LED strip, buzzer) cleanly to ground using a microcontroller GPIO pin (`3.3 V` or `5 V`):
- Drive into Hard Saturation: Do not rely on the datasheet's maximum small-signal current gain ($\beta$ or $h_{FE}$). For reliable switching, supply a Base current equal to 1/10th to 1/20th of the Collector load current ($I_B \approx I_C / 10$).
- Calculate Base Resistor ($R_B$):
$$R_B = \frac{V_{GPIO} - V_{BE(sat)}}{I_B}$$
where $V_{BE(sat)} \approx 0.7\text{ V}$.
- Add a Base Pull-Down Resistor (Optional): Place a `10 kΩ` resistor from Base to Emitter (Ground) to prevent false triggering while the microcontroller boots up with floating pins.
4.2 Using an N-Channel MOSFET as a Low-Side Switch
- Logic-Level Gate Threshold ($V_{GS(th)}$): When driving a MOSFET directly from a `3.3 V` or `5 V` microcontroller, do not select a part solely by $V_{GS(th)}$ (which is where the MOSFET barely begins to conduct microamps). Inspect the datasheet's $R_{DS(on)}$ test condition to confirm full turn-on at `3.3 V` or `4.5 V` (e.g., `IRLZ44N` or `AO3400`). Standard MOSFETs require `10 V` $V_{GS}$ to reach minimum $R_{DS(on)}$.
- Gate Pull-Down Resistor (`10 kΩ` – `100 kΩ`): Always connect a resistor between Gate and Source so the MOSFET stays safely OFF if the control signal is disconnected or high-impedance during reset.
- Series Gate Resistor (`10 Ω` – `100 Ω`): Place a small resistor close to the Gate pin to dampen parasitic inductance ringing and limit peak inrush current into the Gate capacitance during high-speed PWM switching.
- ESD Handling: The thin silicon-dioxide gate insulating layer can be punctured by static electricity. Store discrete MOSFETs in conductive anti-static foam and ground yourself before handling.
5. Multimeter Bench Testing & Fault Diagnosis
Use a digital multimeter set to Diode Test Mode (typically supplies ~2–3 V and displays forward voltage drop in volts) with the component unpowered and isolated from parallel circuit paths:
5.1 Testing a Diode
- Forward Bias Check: Touch the Red (+) lead to Anode and Black (-) lead to Cathode.
- Healthy Silicon Diode: Displays `0.50 V` to `0.75 V`.
- Healthy Schottky Diode: Displays `0.15 V` to `0.40 V`.
- Reverse Bias Check: Reverse the leads (Red to Cathode, Black to Anode).
- Healthy Diode: Displays `OL` (Open Loop / Over Limit).
- Fault Identification:
- Displays `0.00 V` to `0.05 V` in both directions → Shorted Diode (most common failure mode from over-current/over-voltage).
- Displays `OL` in both directions → Open Diode (blown internal bond wire).
5.2 Testing an NPN / PNP BJT
Treat a BJT as two back-to-back diodes sharing the Base terminal:
- NPN Transistor:
- Red lead on Base, Black lead on Emitter → `0.60 V – 0.75 V`.
- Red lead on Base, Black lead on Collector → `0.60 V – 0.75 V` (slightly lower than Base-Emitter by ~5–20 mV).
- All other combinations (including Collector to Emitter in both polarities) → `OL`.
- PNP Transistor:
- Black lead on Base, Red lead on Emitter → `0.60 V – 0.75 V`.
- Black lead on Base, Red lead on Collector → `0.60 V – 0.75 V`.
- All other combinations → `OL`.
5.3 Testing an N-Channel MOSFET
- Body Diode Check: Touch Black (-) lead to Drain and Red (+) lead to Source → Displays `0.45 V – 0.65 V` (intrinsic body diode). Reversing leads (Red on Drain, Black on Source) should read `OL`.
- Gate Trigger Latch Test:
- Keep Black lead on Source; briefly touch the Red (+) multimeter lead to the Gate pin to charge the gate capacitance.
- Move the Red (+) lead back to the Drain pin → Meter should now read 0.00 V – 0.05 V (latched ON) because the isolated gate holds its charge.
- Touch your finger (or a jumper wire) across Gate and Source to discharge the gate → Drain-to-Source reading immediately returns to OL (OFF).
- Fault: If Drain-to-Source reads 0.00 V even after shorting Gate to Source, the MOSFET is shorted.
