If you are building a software-defined radio (SDR) front-end, an antenna tuner, or a homebrew transceiver, standard rectifier diodes like the 1N4007 or even fast-switching 1N4148s will fail you. At radio frequencies (RF), a standard PN junction acts like a capacitor, leaking your signal to ground or distorting it through non-linear mixing. The solution is the PIN diode. By inserting a wide, undoped intrinsic (I) layer between the P and N regions, the PIN diode stops acting like a rectifier at high frequencies and instead behaves as a current-controlled variable resistor.
For RF switching and attenuation, the safe default part numbers are the Skyworks SMP1345 (general purpose RF switch, ~$0.40/ea) and the Infineon BAR64 (high-power RF switch, ~$0.60/ea). For optical detection, the Vishay BPW34 is the undisputed bench standard. This guide covers how to bias them, wire them into a functional RF switch, and troubleshoot them when your circuit inevitably misbehaves.
The PIN Diode Symbol, Pinout, and RF Behavior
On a schematic, the PIN diode symbol looks identical to a standard diode: a triangle pointing toward a vertical line (the cathode bar). Sometimes, designers will draw a small box or a pair of parallel lines inside the triangle to denote the intrinsic region, but this is not standardized. The pinout is strictly two-terminal: Anode (A) and Cathode (K). Surface-mount packages like SOD-323 or SOT-23 will have a band or a dot indicating the cathode.
The magic of the PIN diode lies in carrier lifetime. When you forward-bias a standard diode, charge carriers cross the junction and recombine almost instantly. In a PIN diode, the wide intrinsic layer acts as a physical gap. When forward-biased, holes and electrons are injected into this I-region, but because it is relatively wide, they take time to recombine (typically 1 to 5 microseconds).
If your RF signal's period is much shorter than this carrier lifetime (which is true for anything above ~1 MHz), the RF signal cannot modulate the charge density in the I-region. Instead, the RF signal simply rides on top of the DC charge pool. The diode stops rectifying the RF and instead presents a linear, low-value resistance determined entirely by the DC bias current. As Microwaves101 notes in their RF encyclopedia, this linear resistance makes the PIN diode the solid-state equivalent of a mechanical relay for microwave and HF signals, capable of switching in nanoseconds without the contact bounce or arcing of physical relays.
Operation Regions and Biasing Requirements
Selecting the right bias point is where most hobbyists get tripped up. You cannot just throw 5V at a PIN diode through a 10-ohm resistor and expect clean switching. You must manage both the forward current (for the ON state) and the reverse voltage (for the OFF state). Below is the operational matrix for standard RF switching PIN diodes like the SMP1345.
| Bias State | DC Voltage (Typical) | DC Current | RF Equivalent Model | Primary Use Case |
|---|---|---|---|---|
| Forward Bias (ON) | +0.7V to +1.2V | 1 mA to 50 mA | Resistor (0.5Ω to 5Ω) | RF Switch ON, Low-loss path |
| Reverse Bias (OFF) | -5V to -50V | < 1 µA (Leakage) | Capacitor (0.1pF to 0.5pF) | RF Switch OFF, High isolation |
| Zero Bias | 0V | 0 mA | High Resistance / Photovoltaic | Photodetector, RF Attenuator |
Safe Default Part Numbers and Selection Guide
Do not buy unbranded 'PIN diodes' from bulk marketplace bins; you will likely receive standard switching diodes that will fry your receiver front-end. Stick to established RF semiconductor manufacturers. Here are the safe defaults for your bench stock.
- Skyworks SMP1345-079LF: The gold standard for HF/VHF/UHF SDR T/R (Transmit/Receive) switches. Rated for 100mA continuous forward current, 0.15pF reverse capacitance, and comes in a tiny SOD-323 package. (~$0.40 each in low volumes).
- Infineon BAR64 Series: Excellent for higher power applications (up to 100V reverse voltage). Often used in magnetic resonance or high-power HF amplifier switching. SOT-23 package. (~$0.60 each).
- Microchip 1N5711: A through-hole and axial-lead favorite for homebrewers who hate soldering 0603 surface-mount parts. Great for sub-30 MHz antenna tuners. (~$1.20 each).
- Vishay BPW34: The default choice if you are building an optical receiver, laser rangefinder, or high-speed fiber optic link. It is a PIN photodiode optimized for zero-bias or reverse-bias light detection, not RF switching. (~$1.50 each).
Real-World Scenario: Building a 14 MHz T/R Switch (And How I Fried It)
Theory is clean; the bench is messy. I recently designed a Transmit/Receive (T/R) switch for a homebrew 20-meter (14.1 MHz) QRP transceiver putting out 5 watts of RF. The goal was to use two SMP1345 PIN diodes to route the antenna to either the power amplifier (TX) or the sensitive NE602 mixer (RX).
The Setup: I wired the TX PIN diode in series with the PA output, and the RX PIN diode in series with the mixer input. To switch to TX, my microcontroller applied +5V through a 330Ω resistor to forward-bias the TX diode at roughly 12 mA, while pulling the RX diode cathode to ground to reverse-bias it.
The Numbers: At 12 mA forward bias, the SMP1345 datasheet specifies an RF resistance of about 1.2Ω. At 5W into a 50Ω load, the RF current is roughly 316 mA RMS. The power dissipated in the diode is I²R = (0.316)² × 1.2 = 120 mW. Well within the 250 mW thermal limit of the SOD-323 package.
The Outcome: On the first key-down, the transmitter worked perfectly, pushing 5W into the dummy load. I switched the rig to receive, applied the reverse bias, and keyed the transmitter again to test isolation. Instantly, the receiver went dead, and a faint wisp of magic smoke rose from the DC bias trace.
What Went Wrong: I had omitted the RF chokes (inductors) on the DC bias feed lines. I assumed the 330Ω bias resistor would block the RF. It didn't. The 14 MHz RF signal coupled into the DC bias trace, which acted as an untuned antenna. The RF voltage spiked across the 100nF decoupling capacitor on the 5V rail, exceeding its dielectric limits and shorting it. This dragged the bias line to ground, causing a massive DC current surge through the PIN diode, instantly melting the silicon junction. Furthermore, the RF energy traveled down the bias line and straight into the microcontroller's GPIO pin, frying the port.
The Fix: I redesigned the board to include 10µH Murata chip inductors in series with every DC bias line to block the RF, and upgraded the decoupling capacitors to 1kV rated NP0/C0G ceramics. The revised board has survived thousands of switching cycles since.
Complete Application Circuit: Series RF Switch
Below is the blueprint for a robust, single-pole series RF switch suitable for frequencies from 1 MHz to 500 MHz. This circuit ensures DC isolation, RF choking, and proper impedance matching.
Component Bill of Materials (BOM)
- D1: Skyworks SMP1345-079LF (PIN Diode)
- C1, C2: 100pF, 100V, 0603 NP0/C0G Ceramic Capacitors (DC Blocking)
- L1, L2: 10µH, 100mA, 0805 RF Chip Inductors (RF Chokes)
- R1: 1kΩ, 0603 Resistor (Current limiting / GPIO protection)
- C3: 100nF, 50V, 0603 X7R Capacitor (Power rail decoupling)
Wiring and Layout Steps
- RF Path: Route your 50Ω microstrip line from the RF Input to C1. Connect C1 to the Anode of D1. Connect the Cathode of D1 to C2. Route C2 to the RF Output.
- DC Bias Injection: Connect the junction of D1's Cathode and C2 to L1. Connect the other end of L1 to R1. R1 connects to your positive DC control voltage (e.g., +5V or +12V).
- DC Ground Return: Connect the junction of D1's Anode and C1 to L2. Connect the other end of L2 to PCB Ground.
- Decoupling: Place C3 directly across the +5V control line and ground, as physically close to R1 as possible.
- Layout Rule: Keep L1 and L2 physically orthogonal (at 90-degree angles) to each other and to the RF transmission line to prevent magnetic coupling, which degrades isolation at VHF/UHF.
When the control voltage is HIGH (+5V), current flows through R1, L1, D1, and L2 to ground. D1 turns ON, presenting ~1.5Ω in series with the 50Ω line (negligible insertion loss). When the control voltage is LOW (0V), D1 is unbiased. If you need hard OFF isolation, apply a negative voltage (e.g., -12V) to the control line to sweep the charge carriers out of the I-region, dropping the parasitic capacitance to its minimum value.
Failure Modes and Bench Testing with a Multimeter
PIN diodes rarely fail gracefully. They typically fail as a dead short (metallic melt across the junction) or an open circuit (bond wire lift-off due to thermal shock). Because their primary function relies on high-frequency carrier dynamics, a multimeter can only tell you if the diode is catastrophically dead, not if it is performing optimally at RF.
How to Test with a Digital Multimeter (DMM)
- Set your DMM to the Diode Test mode (the symbol with an arrow and a line).
- Place the red probe on the Anode and the black probe on the Cathode. You should read a forward voltage drop between 0.45V and 0.75V. (PIN diodes often read slightly lower than standard silicon diodes due to the intrinsic layer's specific doping profile).
- Swap the probes (black on Anode, red on Cathode). The meter should read OL (Over Limit) or open circuit.
- Diagnosis: If you read ~0.00V or a beep on the continuity test in both directions, the junction has melted short. If you read OL in both directions, the internal bond wire has snapped. In either case, desolder and replace the component.
For deeper design mathematics, including calculations for I-region width and distortion intercept points (IP3), the Skyworks PIN Diode design resources provide the definitive application notes for translating these bench concepts into production-grade RF front-ends.






