A photodiode detector converts incident photons into a proportional electrical current. Unlike phototransistors, which offer high gain but sluggish response times, photodiodes provide exceptional linearity and nanosecond-level switching speeds. If you are prototyping an optical encoder, a pulse oximeter, or a simple light-activated relay, you need to know how to bias the junction and convert that tiny current into a usable voltage.
For 90% of hobbyist and commercial bench applications, the safe default part numbers are the Vishay BPW34 (broadband visible/NIR, ~$0.50) and the OSRAM SFH203FA (850nm IR optimized, ~$0.80). This guide covers the physical pinout, biasing topologies, a complete transimpedance amplifier (TIA) circuit, and how to verify your component with a standard digital multimeter (DMM).
Symbol, Pinout, and Safe Default Part Numbers
On a schematic, the photodiode symbol is identical to a standard rectifier diode (a triangle pointing at a vertical line) but with two diagonal arrows pointing toward the junction, indicating incoming light. The triangle represents the anode (positive), and the line represents the cathode (negative).
Physically, most through-hole photodiodes come in a 5mm epoxy package or a TO-18 metal can. Identifying the pins is straightforward if you know what to look for:
- Cathode (Negative): The shorter lead. On epoxy packages, there is a distinct flat spot on the rim of the casing adjacent to the cathode lead. On TO-18 cans, it is the pin closest to the small metal tab on the rim.
- Anode (Positive): The longer lead.
| Part Number | Peak Wavelength | Active Area | Dark Current | Junction Capacitance | Typical Price |
|---|---|---|---|---|---|
| Vishay BPW34 | 900 nm (Broadband) | 7.5 mm² | 2 nA | 50 pF | $0.45 |
| OSRAM SFH203FA | 850 nm (IR) | 1.0 mm² | 1 nA | 11 pF | $0.80 |
| BPW21R | 560 nm (Visible) | 7.0 mm² | 5 nA | 100 pF | $1.20 |
Biasing Modes: Photovoltaic vs. Photoconductive
Selecting how to bias your photodiode detector dictates its speed, noise floor, and linearity. You have two primary operation regions to choose from, depending on your application's bandwidth requirements.
| Parameter | Photovoltaic Mode (Zero Bias) | Photoconductive Mode (Reverse Bias) |
|---|---|---|
| Applied Voltage | 0V (Anode and Cathode at same potential) | -5V to -50V (Cathode more positive than Anode) |
| Typical Output Current | 10 nA to 50 µA | 10 nA to 50 µA (plus dark current) |
| Junction Capacitance | High (limits bandwidth) | Low (depletion region widens) |
| Response Speed | Slow (µs to ms range) | Fast (ns range) |
| Dark Current (Noise) | Zero (ideal for precision DC) | Higher (introduces shot noise) |
| Best Application | Light meters, solar sensors, DC precision | Fiber optics, IR remote decoding, LIDAR |
According to the All About Circuits semiconductor textbook, applying a reverse bias widens the depletion region within the silicon. This reduces the junction capacitance, which is the primary bottleneck for high-speed signal detection. However, reverse bias also increases 'dark current'—the tiny leakage current that flows even in total darkness—which adds thermal and shot noise to your signal.
Complete Transimpedance Amplifier (TIA) Application Circuit
Because a photodiode acts as a current source, measuring its output voltage directly across a resistor results in severe non-linearity and bandwidth limitations. The industry-standard solution is a Transimpedance Amplifier (TIA), which holds the photodiode at a virtual ground while converting the current to a voltage.
Below is a complete, breadboard-ready TIA circuit designed for a 3.3V microcontroller ADC, utilizing the Vishay BPW34 and the Texas Instruments OPA380 (a dedicated, low-noise TIA op-amp).
Circuit Specifications and Component Values
- U1 (Op-Amp): OPA380IDBV (SOT-23-5) or OPA380PA (DIP-8)
- D1 (Photodiode): Vishay BPW34
- Rf (Feedback Resistor): 1 MΩ (Sets the gain: Vout = I_ph × 1,000,000)
- Cf (Feedback Capacitor): 1.5 pF (Prevents high-frequency oscillation)
- R1 (Pull-down): 10 kΩ (Optional, for DC stability if AC coupled)
- Power Supply: 3.3V single supply (VCC to Pin 5, GND to Pin 2 for SOT-23)
- Wire the Photodiode: Connect the BPW34 Anode to the non-inverting input (Pin 3) and ground. Connect the Cathode to the inverting input (Pin 4). This places the diode in photovoltaic (zero-bias) mode. For photoconductive mode, move the Anode to a negative rail or virtual ground offset.
- Install the Feedback Network: Solder the 1 MΩ resistor (Rf) directly between the inverting input (Pin 4) and the output (Pin 1). Keep the leads as short as physically possible to minimize parasitic inductance.
- Add the Compensation Capacitor: Place the 1.5 pF ceramic capacitor (Cf) in parallel with Rf. As detailed in the Analog Devices Application Engineer series, this capacitor creates a zero in the feedback loop that cancels the pole created by the photodiode's 50pF junction capacitance, ensuring a stable phase margin.
- Power and Filter: Connect 3.3V to the VCC pin and GND to the ground pin. Place a 100 nF decoupling capacitor as close to the op-amp power pins as possible.
- Verify Output: Measure Pin 1 with your multimeter. In ambient room light, the BPW34 generates roughly 10 µA. With a 1 MΩ feedback resistor, your output should read approximately 10V (which will rail at 3.3V on a single supply). Shield the diode with your hand; the voltage should drop near 0V.
Failure Modes and Multimeter Testing
Photodiode detectors are remarkably robust, but they are not indestructible. Understanding how they fail will save you hours of debugging when your optical circuit suddenly stops responding.
Common Failure Modes
- Electrostatic Discharge (ESD): The reverse-biased junction is highly sensitive to ESD. A static shock can punch a microscopic hole through the depletion region, resulting in a massive increase in dark current (the diode becomes 'leaky').
- Reverse Voltage Breakdown: While designed for reverse bias, exceeding the maximum reverse voltage rating (typically 50V to 60V for standard silicon photodiodes) will cause avalanche breakdown, permanently shorting the junction.
- Thermal Runaway: If soldered with excessive heat or operated in high-ambient temperatures (>85°C), the dark current doubles roughly every 10°C. This increases internal power dissipation, leading to a thermal runaway loop that destroys the silicon lattice.
How to Test a Photodiode with a Multimeter
You can verify the health of a suspected dead photodiode using a standard DMM. Follow these exact steps:
- Forward Voltage Test: Set your DMM to 'Diode Test' mode. Place the red probe on the Anode and the black probe on the Cathode. A healthy silicon photodiode will display a forward voltage drop between 0.400V and 0.550V. If it reads 'OL' (open), the internal wire bond is broken. If it reads 0.00V, the junction is shorted.
- Reverse Leakage (Dark) Test: Switch the DMM to the highest resistance range (e.g., 20 MΩ). Swap the probes (black on Anode, red on Cathode). Cover the photodiode completely with your hand or a piece of black tape. The meter should read 'OL' or a value greater than 10 MΩ. A reading of a few kilo-ohms indicates ESD damage or junction degradation.
- Photocurrent Verification: Keep the DMM in DC millivolt (mV) mode. Connect the probes across the diode (red to Anode, black to Cathode). Shine a bright LED flashlight directly onto the epoxy lens. You should see the voltage jump by several millivolts (typically 10mV to 50mV depending on light intensity). If the voltage does not change, the optical window is blocked or the junction is dead.
Frequently Asked Questions About Photodiode Detectors
How do I choose the right feedback resistor for my photodiode detector?
The feedback resistor (Rf) sets the transimpedance gain of your circuit according to Ohm's Law: V_out = I_ph × Rf. First, estimate the maximum photocurrent your diode will generate under peak illumination (check the datasheet for 'Short Circuit Current' or 'Responsivity' in A/W). If your BPW34 generates a maximum of 20 µA in bright sunlight, and you are feeding a 3.3V microcontroller ADC, your maximum target voltage is 3.0V. Therefore, Rf = 3.0V / 20µA = 150 kΩ. Always choose a resistor value that leaves a 10% headroom below your ADC reference voltage to prevent op-amp rail saturation.
Why is my photodiode detector output noisy or oscillating?
Oscillation in a TIA circuit is almost always caused by the phase shift introduced by the photodiode's junction capacitance interacting with the op-amp's input capacitance. If your output looks like a high-frequency sine wave on an oscilloscope, your feedback capacitor (Cf) is too small or missing entirely. Calculate the required compensation capacitor using the formula: Cf = √(C_in / (2 × π × Rf × f_GBW)). As a practical rule of thumb for breadboarding, start with a 2.2 pF to 5 pF ceramic capacitor in parallel with your feedback resistor and trim downward until you achieve a fast step-response without ringing.
Can I use a standard rectifier diode as a photodiode detector?
Technically, yes, but practically, no. Every PN junction generates a small photocurrent when exposed to light. However, standard rectifier diodes (like the 1N4007) are encased in opaque black epoxy specifically to block light. If you scrape the epoxy off a 1N4148 switching diode, it will act as a terrible photodiode: it has a massive junction capacitance (slowing response to milliseconds), a tiny active area (low sensitivity), and no optical filter to reject ambient IR noise. Always use a dedicated photodiode with an optically clear window and anti-reflective coating.
What is the difference between a photodiode detector and a phototransistor?
A phototransistor is essentially a standard bipolar junction transistor (BJT) where light strikes the base-collector junction to generate base current, which is then amplified by the transistor's internal gain (hFE). This gives phototransistors massive sensitivity (outputting milliamps instead of microamps) without needing an external op-amp. However, this internal gain comes at the cost of speed; the Miller effect and high junction capacitance limit phototransistors to switching speeds in the microsecond range. Use a phototransistor for slow, high-gain applications like a simple beam-break sensor. Use a photodiode detector for high-speed, high-linearity applications like fiber optic data receivers or precision light metering.






