Photodiodes are semiconductor devices that convert incident light into electrical current. Unlike photoresistors, which change resistance slowly and non-linearly, photodiodes offer microsecond response times and highly linear current output proportional to light intensity. For general-purpose visible and near-infrared (NIR) sensing, the BPW34 (Vishay) or SFH203 (ams OSRAM) are the safe default choices, typically costing between $0.50 and $1.50 each. To get a usable voltage from these components, you must wire them in either photovoltaic mode (zero-bias) for ultra-low noise DC measurements, or photoconductive mode (reverse-biased) paired with a transimpedance amplifier (TIA) for high-speed signal extraction.
Photodiode Basics: Symbol, Pinout, and Safe Default Part Numbers
Before wiring a circuit, you need to identify the terminals and select a diode matched to your target wavelength. The standard schematic symbol for a photodiode is a typical diode triangle pointing toward a vertical line (the cathode), with two or more inward-pointing arrows indicating incoming photons.
Pinout Identification
- Cathode (K): On through-hole packages (like the BPW34), the cathode is the shorter lead. On SMD packages, it is marked by a dot, a chamfered corner, or a printed stripe. In a reverse-bias circuit, the cathode connects to the positive voltage rail.
- Anode (A): The longer lead on through-hole parts. The anode connects to ground or the inverting input of your op-amp.
Safe Default Part Numbers and Ratings
Do not buy generic, unbranded photodiodes from bulk marketplaces if you need predictable dark current and capacitance specs. Stick to these proven manufacturer part numbers:
| Part Number | Manufacturer | Peak Wavelength | Junction Capacitance | Typical Price | Best Application |
|---|---|---|---|---|---|
| BPW34 | Vishay / ams OSRAM | 900 nm (NIR) | 65 pF (at 0V) | $0.80 | General ambient light, pulse oximetry, IR remotes |
| SFH203 | ams OSRAM | 850 nm (NIR) | 11 pF (at 0V) | $1.20 | High-speed optical comms, fast encoders |
| BPW21R | Vishay | 560 nm (Green) | 40 pF | $2.50 | Colorimetry, visible-only light metering |
| S1223 | Hamamatsu | 960 nm (Broad) | 20 pF | $15.00 | Precision analytical instruments, UV-VIS-NIR |
Biasing Modes: Photovoltaic vs. Photoconductive Operation
Selecting the right biasing mode is the most critical decision in photodiode circuit design. The bias voltage dictates the width of the internal depletion region, which directly controls junction capacitance and dark current.
1. Photovoltaic Mode (Zero Bias)
In this mode, the photodiode is connected directly across the inputs of an op-amp with no external voltage applied. The diode generates its own tiny voltage (the photovoltaic effect). Because there is zero bias, there is zero dark current. This mode is ideal for ultra-precision, low-frequency DC light metering where you cannot tolerate the thermal noise and shot noise introduced by dark current. The trade-off is speed; without a reverse field to sweep charge carriers, the junction capacitance remains high, limiting bandwidth to a few kilohertz.
2. Photoconductive Mode (Reverse Bias)
Here, a positive voltage is applied to the cathode relative to the anode. This widens the depletion region, drastically lowering the junction capacitance and allowing the diode to respond to nanosecond light pulses. However, reverse bias introduces dark current—a small leakage current that flows even in total darkness, which increases with temperature and bias voltage. Use this mode for IR remote decoding, optical tachometers, and high-speed data links.
Operation Regions and Typical Parameters
| Operating Region | Bias Voltage | Typical Dark Current | Junction Capacitance | Primary Use Case |
|---|---|---|---|---|
| Photovoltaic (Zero) | 0 V | < 1 pA | High (e.g., 65 pF) | Precision DC lux meters, medical sensors |
| Low Reverse Bias | 1 V to 5 V | 1 nA to 5 nA | Medium (e.g., 30 pF) | General ambient sensing, audio optical links |
| High Reverse Bias | 10 V to 50 V | 5 nA to 20 nA | Low (e.g., 5 pF) | High-speed fiber optics, IRDA, LIDAR |
Building a Transimpedance Amplifier (TIA) Circuit for Photodiodes
A photodiode outputs current, not voltage. If you simply place a resistor in series, the voltage drop across the resistor changes the bias voltage across the diode, causing severe non-linearity. The solution is a Transimpedance Amplifier (TIA), which uses an op-amp to hold the diode at a constant virtual ground while converting the current to voltage. For a deep dive into TIA stability compensation, refer to Texas Instruments Precision Hub guidelines.
Component Selection
- Op-Amp: MCP6001 (Single-supply, rail-to-rail I/O, low input bias current of ~1 pA). Do not use a generic LM741; its high input bias current will swamp the photodiode signal.
- Photodiode: BPW34.
- Feedback Resistor ($R_f$): 1 MΩ. This sets the transimpedance gain: $V_{out} = I_{pd} \times 1,000,000$. (1 µA of light yields 1V output).
- Feedback Capacitor ($C_f$): 10 pF. This is mandatory to prevent high-frequency oscillation caused by the BPW34's 65 pF input capacitance interacting with the 1 MΩ resistor.
Wiring Steps (Photoconductive Mode)
- Connect the MCP6001 VCC to +5V and GND to system ground. Place 100 nF bypass capacitors across the power pins.
- Connect the non-inverting input (Pin 3) to a voltage divider creating a +2.5V virtual ground reference (or tie directly to GND if using a dual +/- 5V supply).
- Connect the BPW34 Anode to the inverting input (Pin 2) of the op-amp.
- Connect the BPW34 Cathode to the +5V rail (this applies a 2.5V reverse bias relative to the virtual ground).
- Solder the 1 MΩ feedback resistor and the 10 pF capacitor in parallel between the inverting input (Pin 2) and the output (Pin 6).
- Measure the output (Pin 6). In total darkness, it should sit near your virtual ground voltage (2.5V). Shine a flashlight on the diode; the voltage will swing upward toward 5V proportional to light intensity.
Troubleshooting: How Photodiodes Fail and Multimeter Testing
Photodiodes are robust, but they are not invincible. The most common failure modes are electrostatic discharge (ESD) during handling, which can puncture the thin silicon junction, and thermal runaway if subjected to high-intensity focused laser light while heavily reverse-biased, causing the junction to melt and short. Occasionally, the epoxy package itself degrades under UV exposure, turning yellow and attenuating incoming light.
How to Test a Photodiode with a Digital Multimeter (DMM)
Follow this diagnostic sequence to verify a suspected dead component:
- Forward Bias Test (Diode Mode): Set your DMM to the diode symbol. Place the red probe on the Anode and the black probe on the Cathode. A healthy silicon photodiode will read between 0.350 V and 0.550 V. If it reads 0.00 V, the junction is shorted. If it reads 'OL' (Open Loop), the internal bond wire is broken.
- Reverse Bias Test (Resistance Mode): Set the DMM to the highest resistance range (e.g., 20 MΩ). Swap the probes (Red to Cathode, Black to Anode). The meter should read OL (infinite resistance). Any reading below 5 MΩ indicates a leaky, degraded junction.
- The Photovoltaic Flashlight Test (Voltage Mode): Set the DMM to DC millivolts (mV). Connect Red to Anode, Black to Cathode. Shine a bright white LED or laser pointer directly onto the active area. A healthy BPW34 will generate 50 mV to 300 mV open-circuit voltage. If the voltage remains at 0.0 mV under intense light, the device is dead.
Frequently Asked Questions About Photodiodes
What is the difference between photodiodes and photoresistors (LDRs)?
Photoresistors (Cadmium Sulfide cells) change their bulk resistance when exposed to light. They are slow, with response times in the tens of milliseconds, and exhibit severe non-linearity and temperature drift. Photodiodes generate current directly via the photoelectric effect, offering microsecond response times, high linearity, and stable temperature characteristics. Use LDRs for simple night-lights; use photodiodes for data transmission, precision metering, and fast pulse detection. For advanced sensor comparisons, consult the Hamamatsu Photonics optical sensor guides.
Can I use a standard LED as a photodiode?
Yes, any standard PN junction LED will act as a photodiode, but with major caveats. An LED is only sensitive to wavelengths equal to or shorter than the light it emits. A red LED will detect blue or green light, but will be completely blind to infrared. Furthermore, LEDs have a microscopic active area compared to a BPW34, resulting in extremely low current output (usually nanoamps) and high susceptibility to noise. They are fine for a quick-and-dirty optical isolation test on a breadboard, but useless for precision sensing.
Why is my photodiode circuit oscillating or picking up 60Hz hum?
A TIA circuit with a 1 MΩ feedback resistor has massive gain and high input impedance, making it an excellent antenna for mains hum and RF interference. 60Hz/50Hz hum is almost always caused by capacitive coupling from nearby AC wiring. Fix this by enclosing the photodiode and TIA op-amp in a grounded metal enclosure (like a diecast aluminum box) and using shielded coaxial cable if the diode must be remotely located. High-frequency oscillation (ringing on an oscilloscope) means your feedback capacitor ($C_f$) is too small to compensate for the photodiode's junction capacitance. Increase $C_f$ from 10 pF to 22 pF or 47 pF until the ringing stops.
How do I calculate the exact feedback resistor value for my TIA?
The feedback resistor ($R_f$) determines your maximum output voltage before the op-amp saturates. Use the formula: $R_f = V_{out(max)} / I_{pd(max)}$. First, find the maximum expected light current ($I_{pd(max)}$) from the photodiode datasheet's irradiance graph. If your BPW34 outputs 40 µA under maximum expected sunlight, and your MCP6001 is powered by a 5V single supply (meaning max usable swing is about 4.5V), then $R_f = 4.5V / 40\mu A = 112,500 \Omega$. Choose the nearest standard value, which is 110 kΩ. If you use a 1 MΩ resistor in this scenario, the op-amp will clip and saturate at just 4.5 µA of light, rendering it blind to brighter conditions.






