A pn photodiode is a semiconductor device that converts incident photons into electrical current. Unlike solar cells designed for power generation, a pn photodiode is optimized for linearity, speed, and precision sensing. Whether you are building an optical encoder, a pulse oximeter, or a high-speed IR communication link, treating a photodiode like a standard rectifier will lead to noisy, unstable circuits. To get usable data, you must match the diode's active area to your light source, choose the correct biasing topology, and interface it with a low-noise transimpedance amplifier (TIA).

The PN Photodiode at a Glance: Symbol, Pinout, and Safe Defaults

Before wiring anything, you need to identify the terminals. The standard schematic symbol for a pn photodiode is identical to a regular diode (a triangle pointing toward a vertical bar), but with two arrows pointing inward toward the junction to represent incoming light. The triangle side is the Anode (A), and the bar side is the Cathode (K).

In physical through-hole packages like the standard 5mm or epoxy-flat top, the cathode is typically marked by a shorter lead, a flat edge on the plastic housing, or a small red dot. For surface-mount devices (SMD), refer to the silkscreen dot or the datasheet's mechanical drawing, as polarity markings vary by manufacturer. Reversing the physical orientation in a reverse-bias circuit won't destroy the part immediately, but it will forward-bias the junction, clamping your signal to roughly 0.5V and ruining your measurement.

Bench Tip: If you inherit an unmarked photodiode, use your multimeter's diode-test mode. The orientation that yields a forward voltage drop of ~0.4V to 0.5V indicates the red probe is on the Anode and the black probe is on the Cathode.

Choosing the right part number prevents the common mistake of buying a high-speed, tiny-area diode for a low-light, wide-beam application. Below are the industry-standard safe defaults for general-purpose and precision prototyping.

Table 1: Safe Default PN Photodiode Part Numbers (2026 Selections)
Part Number Manufacturer Peak Wavelength Active Area Dark Current (Typ) Best Application
BPW34 Vishay / OSRAM 900 nm (NIR) 7.5 mm² 2 nA @ 5V General purpose, IR remote decoding, wide-beam sensing
SFH203 P OSRAM 850 nm (NIR) 1.0 mm² 5 nA @ 5V High-speed data comms, optical encoders
BPW21R Vishay 565 nm (Green) 7.5 mm² 1 nA @ 5V Visible light metering, RGB color matching (human eye response)
S1337-33BQ Hamamatsu 960 nm (NIR) 5.8 mm² 0.05 nA @ 10V Precision analytical instruments, ultra-low light UV-Vis spectroscopy

Operation Regions: Photovoltaic vs. Photoconductive Bias

How you bias a pn photodiode dictates its speed, noise floor, and linearity. You have two distinct operating regions to choose from based on your application requirements.

Photovoltaic Mode (Zero Bias)

In photovoltaic (PV) mode, the anode and cathode are held at the same DC potential (0V bias). The incident light generates a small voltage across the junction, which is measured by a high-impedance buffer. Because there is no external reverse voltage, the dark current is exactly zero. This eliminates shot noise associated with dark current, making PV mode the undisputed choice for high-precision, low-frequency DC light measurements (like laboratory lux meters). The trade-off is speed: the junction capacitance remains at its maximum, severely limiting bandwidth to a few kilohertz.

Photoconductive Mode (Reverse Bias)

In photoconductive (PC) mode, a reverse voltage (typically 3V to 30V) is applied across the diode. This widens the depletion region, which drastically reduces the junction capacitance and accelerates the transit time of the electron-hole pairs. The result is a massive increase in bandwidth, allowing PC mode to handle megahertz or even gigahertz signals (essential for fiber optic receivers). However, the reverse bias introduces dark current, which generates shot noise and limits your low-end resolution.

Table 2: Photodiode Operation Regions and Selection Criteria
Parameter Photovoltaic (Zero Bias) Photoconductive (Reverse Bias)
External Bias Voltage 0V (Anode = Cathode) 3V to 30V (Cathode > Anode)
Junction Capacitance High (e.g., 60 pF) Low (e.g., 10 pF)
Response Speed / Bandwidth Slow (kHz range) Fast (MHz to GHz range)
Dark Current & Shot Noise Zero (Ultra-low noise) Present (Limits low-light resolution)
Linearity Range Excellent at low light Excellent across wide dynamic range
Choose This When... Measuring steady ambient light, spectrophotometry Decoding IR remotes, optical encoders, LiDAR

Application Circuit: Transimpedance Amplifier (TIA) Design

A photodiode outputs current, not voltage. To interface it with an Arduino, ESP32, or oscilloscope, you must convert that current into a usable voltage. The standard topology is the Transimpedance Amplifier (TIA). Below is a complete, bench-tested circuit using the ubiquitous BPW34 and a modern, low-noise CMOS op-amp.

Component List

  • Photodiode: Vishay BPW34 (or equivalent)
  • Op-Amp: Microchip MCP6002 (Dual, 5V rail-to-rail, low input bias current of 1 pA)
  • Feedback Resistor (Rf): 1 MΩ (0.1% tolerance metal film)
  • Feedback Capacitor (Cf): 10 pF (C0G/NP0 ceramic)
  • Voltage Divider: Two 10 kΩ resistors (to create a virtual ground)

Wiring and Pin Mapping

  1. Virtual Ground Setup: Connect the two 10 kΩ resistors in series across your 5V supply and GND. The midpoint provides a stable 2.5V reference. Connect this 2.5V node to the Non-Inverting Input (Pin 3) of the MCP6002.
  2. Photodiode Biasing: Connect the BPW34 Cathode (short lead/flat edge) directly to the +5V rail. Connect the Anode to the Inverting Input (Pin 2) of the op-amp. This applies a 2.5V reverse bias across the diode (5V at cathode, 2.5V virtual ground at anode).
  3. Feedback Network: Connect the 1 MΩ resistor between the op-amp's Output (Pin 1) and the Inverting Input (Pin 2). In parallel with this resistor, solder the 10 pF capacitor.
  4. Output: The op-amp output (Pin 1) is your signal. Feed this into your microcontroller's ADC.
Why the 10 pF Capacitor? The feedback capacitor ($C_f$) is not optional. The photodiode's internal junction capacitance interacts with the op-amp's input capacitance to create a pole in the feedback loop, causing high-frequency oscillation. The 10 pF capacitor introduces a zero that compensates for this, ensuring a stable, flat frequency response. For a 1 MΩ resistor and a 60 pF diode capacitance, 10 pF to 15 pF is the mathematical sweet spot for a Butterworth response.

Calculating the Output: The gain of this TIA is set entirely by $R_f$. With a 1 MΩ resistor, the circuit produces 1 Volt of output for every 1 µA of photocurrent. If your light source generates 500 nA (0.5 µA) of current, the op-amp output will sit at 2.5V (virtual ground) + 0.5V = 3.0V. As light intensity increases, the output voltage rises toward the 5V rail.

Failure Modes and Multimeter Testing

Photodiodes are generally robust, but they are not indestructible. Understanding how they fail and how to verify them on the bench saves hours of debugging a perfectly good TIA circuit.

Common Failure Modes

  • Shunt Degradation (High Dark Current): Often caused by moisture ingress through a cracked epoxy package or ESD damage. The junction develops a microscopic parallel resistance. The diode still responds to light, but the baseline 'dark' voltage in your TIA creeps up, destroying your dynamic range.
  • Catastrophic Short: Caused by accidentally applying a forward voltage exceeding the diode's power dissipation limit, or a massive reverse voltage spike that punches through the depletion zone. The multimeter will read 0.00V in diode mode.
  • Open Circuit: The internal gold bond wire connecting the silicon die to the external lead snaps due to mechanical stress (bending the leads too close to the epoxy body). The diode reads 'OL' (overload) in both directions.

Step-by-Step Multimeter Verification

Follow this sequence to definitively test an unknown or suspected faulty pn photodiode using a standard digital multimeter (DMM).

  1. The Forward Bias Check (Diode Mode): Set your DMM to the diode test setting (usually indicated by a diode symbol). Place the red probe on the Anode and the black probe on the Cathode. A healthy silicon pn photodiode will display a forward voltage drop between 0.35V and 0.55V. If it reads 'OL', the bond wire is broken. If it reads 0.00V, the junction is shorted.
  2. The Reverse Bias Check (Dark Current Limitation): Swap the probes (red on Cathode, black on Anode). The meter should read 'OL'. Note: A standard DMM cannot measure the 2 nA dark current of a healthy BPW34. If your DMM reads anything other than 'OL' in this direction, the diode has severe shunt degradation and must be discarded.
  3. The Photovoltaic Generation Test (mV Mode): This is the ultimate bench proof-of-life. Set your DMM to DC millivolts. Connect the probes across the diode (red to Anode, black to Cathode). Shield the diode with your hand; the reading should be near 0 mV. Now, shine a high-intensity white LED flashlight or direct sunlight onto the epoxy face. A healthy BPW34 will instantly generate an open-circuit voltage between 100 mV and 350 mV. If you see this voltage swing, the semiconductor junction is intact and actively converting photons to electron-hole pairs.

By mastering the biasing topology and verifying the junction health before soldering, you eliminate the most common variables in optical sensor design. Always consult the manufacturer's datasheet for the exact junction capacitance at your chosen reverse voltage, as this single parameter will dictate the stability of your transimpedance amplifier.