Skip to content
If this is your first visit, please click here to learn about shipping and delivery.
If this is your first visit, please touch here to learn about shipping and delivery.
SFH203P Photodiode - 10 Pack

Building a Photodiode Light Detector: Gain, Ambient Light and Repeatable Measurements

A photodiode turns light into a small electrical current. Turning that current into a reliable measurement requires more than connecting the device to an analogue input: you need a suitable current-to-voltage circuit, an optical arrangement and a clear definition of what the reading means.

This guide uses the SFH203P photodiode as a concrete example from the photodiode collection. It focuses on a practical light-detection workflow, from choosing the sensor to separating a useful signal from ambient-light changes.

Begin with the light you want to detect

Decide whether you need a relative brightness reading, a beam-interruption detector, a modulated optical signal or a calibrated measurement. These tasks impose different requirements for wavelength response, speed, noise and optical geometry.

The ams OSRAM SFH 203 P datasheet specifies a typical sensitivity range of 400–1100nm and a typical peak at 850nm. It also gives a wide angular response, with a typical half-angle of 75 degrees. Those figures describe the specified part under stated conditions; they do not make it an eye-response light meter.

Suffixes matter. Similar part numbers can use different optical filtering or packaging. Confirm the complete marking rather than assuming every SFH203 variant responds to visible and infrared light identically.

A raw photodiode reading is not automatically lux

A detector responds according to its spectral sensitivity and the light reaching its active area. Two lamps that appear equally bright to a person can produce different electrical readings if their spectra differ.

For a relative experiment, that may be acceptable. You can compare the same lamp at different settings while keeping geometry fixed. For a lux measurement, you need an appropriate spectral response and calibration method; multiplying an arbitrary ADC count by one constant does not establish a general-purpose lux meter.

Write the intended result clearly in the project notes. “Relative beam level compared with the clear-path baseline” is a meaningful description for an interruption detector. Calling the same number “light intensity in lux” without calibration introduces an unsupported claim.

Convert current to a useful voltage

A transimpedance amplifier uses an operational amplifier and feedback network to convert photodiode current into voltage. In the appropriate operating region, the change in output voltage is related to photocurrent multiplied by the feedback resistance. The sign and reference level depend on the circuit arrangement.

Texas Instruments' photodiode-amplifier brief explains the basic topology and the need to account for photodiode capacitance in stability. The feedback capacitor is a design component, not an optional decoration to add only after the output oscillates.

Choose an op amp whose supply range, input behaviour, bias current and output swing suit the design. Also keep the resulting voltage within the ADC's permitted input range. A schematic drawn for a different supply voltage cannot be assumed suitable without checking those limits.

Choose gain from the brightest expected condition

High gain makes small currents easier to observe, but it also reduces the available headroom for bright light. If ambient illumination drives the amplifier into saturation, a small wanted signal may disappear even though the photodiode is working.

As a hypothetical first estimate, 2µA through a 100kΩ feedback resistance corresponds to a 0.2V output change. The same current through 1MΩ corresponds to 2V. These calculations show the trade-off; they are not a complete amplifier design or a prediction of the SFH203P current in your room.

TI's photodiode-amplifier design discussion addresses gain together with input and output range limits. Start with a conservative usable range, then improve sensitivity after establishing the actual dark and bright readings.

Make the optical arrangement repeatable

Useful controls for a light-detection experiment
Variable How to control it
Source position Use a fixed mount rather than holding it by hand
Detector position Keep distance and angle recorded
Ambient light Compare shaded and normal-room conditions
Source setting Keep drive and operating mode consistent
Optical path Document windows, tubes, lenses or filters
Electronics Keep supply, gain and sample timing unchanged

For a classroom beam-break demonstration, mount a suitable low-power light source and detector on opposite sides of a small gap. Record the clear-path level, then insert an opaque card. Repeat several times and compare the separation between the two groups of readings.

Use ordinary safe light sources appropriate to the activity. Do not introduce an exposed laser merely to make alignment look easier. Mechanical alignment and shading are often more useful than increasing optical power.

Separate ambient light from the wanted change

Begin by recording the detector with the source off, then on, without moving the setup. The difference provides evidence of the source contribution under those conditions. Repeat near a window or under different room lighting to see whether the threshold remains useful.

For more demanding systems, modulating the source and measuring in synchronised intervals can help distinguish its contribution from slowly changing ambient light. The amplifier and sampling system must have adequate bandwidth and settling time; rapid switching alone does not guarantee rejection of interference.

Do not choose a threshold from a single reading. Collect enough samples to see variation, then leave margin between the clear and blocked states. A small hysteresis band can prevent chatter when readings hover near the decision boundary.

Validate the complete sensor

Inspect the photodiode orientation using the manufacturer's package drawing. Keep sensitive amplifier input connections short and clean, and avoid assuming a solderless breadboard will represent the final low-current circuit accurately.

Test the brightest expected condition for saturation and the darkest relevant condition for noise. Record the optical arrangement and electronics alongside the results. A dependable photodiode project is a controlled optical measurement system, even when its final output is simply “beam present” or “beam interrupted”.

Previous article Battery Power for Arduino Projects: Voltage Range, Runtime and Regulator Heat