Designing and Understanding Infrared Schematic Diagrams for Circuit Prototypes

Start by selecting the right IR emitter-receiver pair. For short-range applications (under 5 meters), Vishay TSAL6400 emits at 940 nm with a 20° angle, while the TSOP38238 receiver detects 38 kHz signals at ±45° sensitivity. Match components to avoid signal bleed–opt for emitters with narrow spectral bandwidth (≤70 nm) and receivers with integrated demodulation to filter ambient noise.
Place the IR components on opposite sides of the PCB with clear line-of-sight alignment. Maintain a minimum spacing of 3 mm between emitter and receiver to prevent crosstalk. Use ground planes between traces carrying IR signals and high-speed digital lines to reduce inductive coupling. Copper pours around IR pathways should be stitched with vias spaced no farther than 5 mm apart to suppress EMI.
Route IR signal traces with controlled impedance, targeting 50 Ω for single-ended paths. Keep trace lengths under 15 cm to minimize signal attenuation–exceeding this risks voltage drop below the receiver’s 0.3 V threshold. For differential IR pairs, maintain 120 Ω impedance and symmetrical lengths with ≤1 mm mismatch. Add RC filters (1 kΩ resistor + 10 nF capacitor) at the receiver’s input to eliminate high-frequency transients.
Test IR path integrity with an oscilloscope before final assembly. Pulse the emitter at 38 kHz with a 50% duty cycle and measure receiver output–expected swing is 3.3 V to 0 V for logic-compatible designs. Verify rise/fall times stay below 2 µs to ensure compatibility with fast modulation schemes. If signal integrity falters, adjust trace geometry or add shielding vias around critical sections.
Building Precise IR Receiver Circuits

Select a photodiode with a peak sensitivity around 940–950 nm to maximize signal fidelity from common IR remotes. Pair it with a transimpedance amplifier using a low-noise op-amp like the LM358 or OPA380 to convert current into voltage with minimal distortion. Include a 10 kΩ feedback resistor for standard remote protocols (NEC, RC-5) and reduce it to 1 kΩ if capturing high-speed data from custom transmitters. Add a 100 nF decoupling capacitor directly across the op-amp’s power pins to suppress high-frequency noise.
Filter out ambient interference with a 38 kHz bandpass filter constructed from a 1 nF capacitor and a 4.7 kΩ resistor, tuned to the carrier frequency of most consumer IR devices. For microcontroller integration, connect the output to an interrupt-capable pin (e.g., PB2/INT0 on ATmega328) and configure edge-triggered detection to decode pulses reliably. Avoid ceramic capacitors near the input; their piezoelectric effects can introduce false signals under mechanical stress.
Test the circuit with an IR transmitter emitting a known 32-bit NEC code at 50 cm distance. Validate the waveform on an oscilloscope–expect clean 560 µs pulses with 1.69 ms spacing–or adjust the feedback resistor if the signal clips. For battery-powered designs, use a TPS62743 buck converter to extend runtime, as linear regulators waste excessive power in low-dropout scenarios.
Key Components of an IR Transmitter and Receiver Circuit

Select an IR LED with a wavelength between 850–950 nm for optimal compatibility with most consumer electronics. OSRAM SFH 4545 or Vishay TSAL6400 deliver 100 mA continuous current and 20° beam angle, ensuring focused transmission over 5–10 meters without additional lenses. Avoid wavelengths below 800 nm; they risk interference from ambient daylight.
Use a 38 kHz modulation frequency for the carrier signal–this balances power consumption and noise immunity. Generate the signal with a 555 timer in astable mode (R₁=10 kΩ, R₂=100 kΩ, C=1 nF) or a microcontroller (Arduino’s tone() function). For noise-prone environments, increase frequency to 56 kHz to reduce false triggers from CFL bulbs.
Pair the IR LED with a current-limiting resistor: 150 Ω for 5 V supplies, 100 Ω for 3.3 V. Higher currents (>50 mA) shorten range; pulse widths under 20 μs preserve battery life in portable designs. Add a 100 μF capacitor across the LED supply to smooth transients during switching.
Choose a photodiode with high responsivity at the LED’s wavelength. Vishay BPW34 or Everlight EL-817 offer 0.6 A/W sensitivity at 940 nm, detectable at 0.1 mW/cm². Reverse the diode’s bias (cathode to Vcc, anode to ground) for photoconductive mode–this boosts gain by 10–100x versus photovoltaic mode.
Amplify the photodiode output with a single-transistor stage (e.g., BC547, 10 kΩ collector load) or a dedicated IC like the VSOP38238 (38 kHz bandpass, integrated AGC). For narrowband applications, add a 1 kΩ variable resistor in the feedback loop to tune gain and reject harmonics. Shield the receiver section with grounded copper foil to block EMI from motors or relays.
Decoding pulses requires precise timing. Use a microcontroller with edge-triggered interrupts (attachInterrupt() on Arduino) or an LM567 tone decoder (adjust R₁=10 kΩ, C₁=10 nF for 38 kHz lock range). Store reference pulse sequences in EEPROM–NEC protocol uses 9 ms leader pulses; RC-5 uses 1.778 ms. Implement hysteresis in software: typical noise margins are 20–30% of pulse width.
Critical component pairings:
- LED + Resistor: TSAL6400 (940 nm) + 120 Ω for 5 V/40 mA.
- Photodiode + IC: BPW34 + TSOP31238 (56 kHz variant for noisy environments).
- MOSFET Driver: IRLZ44N for LEDs >100 mA, protecting GPIO pins.
- Regulator: AMS1117-3.3 V for stable photodiode bias in lithium-powered devices.
Avoid plastic-encased photodiodes in high-temp applications; metal TO-18 packages dissipate heat better. For directional control, collimate the LED beam with a 3 mm focal-length lens (e.g., Edmund Optics #45-495) to extend range to 20 meters. Test with an oscilloscope: valid signals show
Step-by-Step Wiring for a Basic IR Sensor Module
Connect the IR sensor’s VCC pin to a 3.3V or 5V power supply, ensuring stable voltage matches the module’s specifications. Incorrect voltage risks damage or unreliable readings. Use a multimeter to verify supply output before wiring. Ground the sensor’s GND pin to the power source’s ground–poor grounding causes interference, weakening signal accuracy. For optimal performance, route power and ground wires away from noisy components like motors or relays.
Attach the sensor’s OUT pin to a digital input on your microcontroller (e.g., Arduino’s D2 or Raspberry Pi’s GPIO17). Add a 10kΩ pull-down resistor between OUT and GND if the module lacks internal pull-ups. This prevents floating signals, ensuring clean high/low transitions. Avoid long wires over 30cm without shielding–IR signals degrade quickly with distance. If extension is necessary, use twisted-pair cables with a grounded shield.
Test the setup by powering the circuit and placing an object within 10cm of the sensor. The OUT pin should toggle between 0V (no obstacle) and supply voltage (obstacle detected). Fine-tune sensitivity using the onboard potentiometer if available. For ambient light rejection, cover the sensor’s photodiode with opaque tubing to block stray IR sources like sunlight or LED bulbs.
Common Pinouts and Voltage Requirements for IR LEDs

Most IR LEDs operate at a forward voltage (VF) of 1.2V to 1.6V for standard 5mm and 3mm types, with a current rating of 20mA to 50mA. For high-power models (e.g., 850nm or 940nm emitters in SMD packages), check datasheets–some require 1.8V to 2.5V at 100mA to 1A. Always pair the LED with a current-limiting resistor: for a 5V supply, use 180Ω to 330Ω for 20mA operation; for 12V, 560Ω to 1kΩ is typical.
Standard through-hole IR LEDs (e.g., Vishay TSAL6400, Everlight IR333C) have a cathode marked by a flat notch or shorter lead–connect this to ground or the negative side of the circuit. SMD variants (e.g., Osram SFH 4230, Kingbright KA-3528SURC) follow industry conventions: the cathode is often indicated by a green dot, beveled edge, or longer pad on the PCB footprint. Reverse polarity can damage the LED; verify pinouts with a multimeter in diode mode (IR LEDs typically show ~0.7V to 1.2V in forward bias).
Critical Variations by Wavelength

Wavelength affects voltage drop: 850nm LEDs (e.g., Osram SFH 4550) usually need 1.3V to 1.5V, while 940nm models (e.g., Vishay TSAL5100) may require 1.5V to 1.7V. Longer wavelengths (e.g., 950+ nm) can demand up to 2.0V. Pulse operation (e.g., for remote controls) allows higher currents–300mA to 1A for brief durations–but ensure the duty cycle stays below 10% to prevent overheating. For pulsed circuits, use a MOSFET driver (e.g., IRLML6401) instead of a resistor to maintain efficiency.
Common IR LED packages and their pinout exceptions:
- TO-18/TO-46 metal can (e.g., Hamamatsu L1323): Cathode is the case, anode is the single lead.
- T-1 3/4 (5mm): Cathode lead is shorter; some models have a ring-shaped anode lead.
- PLCC-2 SMD (e.g., Avago HIRL5010): Cathode is pin 1; confirm with datasheet–some reverse this.
Avoid exceeding the absolute maximum ratings: most IR LEDs tolerate 3V to 5V reverse voltage and 100°C junction temperature. For long-range applications (e.g., >10m), use lens-equipped emitters (e.g., Vishay TEFT4300) with 30° to 60° viewing angles and higher radiant intensity (50–150mW/sr). Pair with a complementary phototransistor (e.g., BPW77N) or PIN diode (e.g., Osram BPW34) with matching spectral sensitivity to optimize detection.