Fork me on GitHub

Project Notes

#800 IR Photodiodes

Investigating and testing infrared (IR) transmission between IR LEDs and IR photodiodes.

Build

Notes

Infrared transmitters (LEDs) and receivers (photodiodes) are widely available in 3mm and 5mm through-hole tuned for 850nm or 940nm for example from this aliexpress seller.

See also The Art of Electronics 12.6.1 Photodiodes and phototransistors (3rd Edition).

IR LEDs (Infrared Light-Emitting Diodes)

What they do:

  • Emit light in the infrared spectrum (typically 850–950 nm).
  • Similar to visible LEDs but optimized for IR output.
  • Can be clear or tinted; clear lenses allow more efficient IR emission.

Key points:

  • Forward-biased → emits IR photons
  • Narrow spectral range, often centered near ~940 nm
  • Very fast switching (tens of MHz for good emitters)
  • Used as transmitters in sensing or communication systems

IR Photodiodes

What they do:

  • Detect IR light and convert it into an electrical signal.
  • Photodiodes operate in photovoltaic (solar-cell-like) or photoconductive (reverse-biased, fast) mode.
  • Phototransistors are more sensitive but slower (because of internal gain).

Key points:

  • Reverse-biased → produces current proportional to incident IR light
  • Spectral response typically matches IR LED wavelengths (850–950 nm)
  • Clear packages maximize sensitivity
  • Phototransistor variants provide higher gain at the cost of speed

Summary

Feature IR LED IR Photodiode IR Phototransistor
Function Emit Detect Detect (amplified)
Biasing Forward Reverse Reverse
Speed Very fast Very fast Moderate
Sensitivity N/A Low–Medium High
Use as detector? Yes (weak) Yes Yes

Typical applications

  • remote controls
  • IR data communication (IrDA, legacy systems)
  • Proximity sensors
  • Break-beam detectors
  • IR interlocks
  • Night-vision illumination (CCTV, security cameras)
  • Optical encoders (quadrature disks, motor feedback)
  • Line-following robots
  • Gesture sensors
  • Optical flame and smoke detectors
  • Barcode scanners

Circuit Design

The test circuit is a simple setup between transmitter and receiver:

  • a square wave generator drives an IR LED
  • the voltage across the IR Photodiode is traced with an oscilloscope

Designed with Fritzing: see ir-photodiodes.fzz.

bb

schematic

Testing on a breadboard:

  • the clear component is the IR LED transmitter. It is used like other LEDs.
  • the black component is the IR photodiode receiver. It is used “reverse-biased”.

bb_build

Testing with 5mm Components

build-5mm

The following scope traces show test results at varying frequencies:

  • CH1 (Yellow) - input square wave
  • CH2 (Blue) - IR photodiode voltage response

At 100Hz, we see a perfect reproduction at the receiver:

ir-5mm-100

At 1kHz, we see some slew appearing at the receiver:

ir-5mm-1k

At 20kHz,the received signal is significantly distorted:

ir-5mm-20k

Testing with 3mm Components

build-3mm

The following scope traces show test results at varying frequencies:

  • CH1 (Yellow) - input square wave
  • CH2 (Blue) - IR photodiode voltage response

At 100Hz, we see a perfect reproduction at the receiver:

ir-3mm-100

At 1kHz, we see some slew appearing at the receiver:

ir-3mm-1k

At 20kHz,the received signal is significantly distorted:

ir-3mm-20k

Credits and References

About LEAP#800 IRPhotodiode

This page is a web-friendly rendering of my project notes shared in the LEAP GitHub repository.

Project Source on GitHub Return to the LEAP Catalog
About LEAP

LEAP is my personal collection of electronics projects - usually involving an Arduino or other microprocessor in one way or another. Some are full-blown projects, while many are trivial breadboard experiments, intended to learn and explore something interesting.

Projects are often inspired by things found wild on the net, or ideas from the many great electronics podcasts and YouTube channels. Feel free to borrow liberally, and if you spot any issues do let me know or send a pull-request.

NOTE: For a while I included various scale modelling projects here too, but I've now split them off into a new repository: check out LittleModelArt if you are looking for these projects.

Project Gallery view the projects as an image gallery Notebook reference materials and other notes Follow the Blog follow projects and notes as they are published in your favourite feed reader