How to Use IR LED Components: Circuit Basics, Drive Setup and Wiring
Learning how to use an IR LED starts with a simple circuit, but reliable operation depends on more than connecting power to the device. Engineers must control forward current, confirm polarity, select the right wavelength and provide a suitable thermal path.
This guide explains how to connect an infrared LED, calculate a current-limiting resistor and choose between direct GPIO control, transistor switching and regulated LED drivers. It also covers the checks OEM designers should complete before approving a circuit for production.
What an IR LED Does Before You Wire It
An IR LED converts forward current into infrared light instead of visible light, which means every check you would apply to a visible LED still applies, plus one more: you cannot see the output. Common near-infrared parts emit around 850nm or 940nm, while extended-capability devices reach further into the infrared. HOUKEM builds infrared emitters across its wider infrared LED product family, where confirmed capability extends to 1900nm for applicable projects and the exact wavelength, power and package combination is confirmed per project.
Because infrared output is generally invisible to the human eye, choose a suitable verification method before testing the circuit. Some smartphone cameras can detect certain near-infrared emissions, but IR-cut filters and sensor characteristics may prevent a visible result.
For reliable engineering checks, use a compatible infrared detector or photodiode and follow the applicable measurement procedure. For detailed testing and troubleshooting, read our How to Test an IR LED guide.

The Basic IR LED Circuit
A basic circuit for a discrete, low-power IR LED can use a DC supply, the LED, and a current-limiting resistor connected in series.
The required resistance depends on the supply voltage, the LED's forward voltage at the intended operating current, and the target current.
R = (VS − VF) / IF
Where VS is the supply voltage, VF is the LED forward voltage, and IF is the target forward current.
Unlike a fixed resistor, an LED has a nonlinear current-voltage characteristic. Its forward voltage changes with current, temperature, and device construction.
Therefore, use the model-specific datasheet instead of assuming that all near-infrared LEDs have the same forward voltage.
For production designs, also check supply tolerance, resistor tolerance, forward-voltage variation, and the resistor's power rating.
| Circuit element | What it does | What to check before build |
|---|---|---|
| Supply rail | Provides the drive voltage | Headroom above the forward voltage at the target current |
| Current limiting resistor | Sets the operating current | Power rating, not only resistance value |
| IR LED | Converts current into infrared output | Wavelength, viewing angle and package fit |
| Return path | Closes the current loop | Track width and solder joint quality |
Two details deserve particular attention. First, resistor power dissipation depends on the voltage across the resistor and the actual circuit current. Engineers must calculate this loss and select a suitable power rating with margin.
Second, the IR LED viewing angle affects how much infrared energy reaches the target. Two emitters with similar total radiant output can produce different results at the receiver because their beam distributions differ.
IR LED Circuit Example With a Current-Limiting Resistor
A simple resistor-limited circuit is a useful starting point for understanding how to power a low-current infrared LED.
The following example demonstrates the calculation process using illustrative values. It does not represent the specifications of a particular HOUKEM IR LED.
Example: Powering an IR LED From a 5V Supply
Assume the following design conditions:
| Parameter | Example Value |
|---|---|
| DC supply voltage | 5V |
| IR LED forward voltage | 1.3V at 20mA |
| Target forward current | 20mA |
| Calculated resistor value | 185Ω |
| Selected standard resistor | 200Ω |
The required resistor is calculated as:
R = (VS − VF) / IF
R = (5V − 1.3V) / 0.02A = 185Ω
A 200Ω resistor is selected for this illustrative design, giving an approximate nominal current of:
IF = (5V − 1.3V) / 200Ω = 18.5mA
This value is only a nominal estimate. Actual current depends on forward-voltage variation, supply tolerance, resistor tolerance, and operating temperature.
Check Resistor Power Dissipation
At the calculated nominal operating point:
P = I² × R
P = 0.0185² × 200 ≈ 0.068W
The resistor must have an appropriate power rating with design margin for the expected operating conditions.
A design review should consider worst-case voltage and current conditions, not only the nominal calculation. For a conservative resistor check, evaluate the highest expected supply voltage, the lowest applicable LED forward voltage and the resistor's minimum tolerance value. Confirm the resulting current against the selected LED's limits and calculate resistor dissipation at that condition.
Basic IR LED Wiring Arrangement
A simple low-current circuit follows this sequence:
DC Supply (+) → Current-Limiting Resistor → IR LED Anode (+) → IR LED Cathode (−) → Supply Ground
The current-limiting resistor can be placed on either side of the LED in the same series path.
Always confirm the LED polarity using the manufacturer's datasheet and package drawing.
IR LED Circuit Diagram: What to Check Before Power-On
A basic IR LED circuit places the current-limiting resistor and emitter in series. The resistor can sit on either side of the LED because the same current flows through both components.
Before applying power, check the following connections:
-
Supply voltage: Confirm that the supply provides enough voltage for the LED and current-limiting element.
-
LED polarity: Connect the anode and cathode according to the package drawing.
-
Resistor value: Calculate the resistance using the intended forward current and the selected LED's forward-voltage specifications.
-
Return path: Verify that the circuit has a complete electrical path to ground or the supply return.
-
Current measurement: Measure the operating current during the initial test and compare it with the expected value.
For a low-current example, the connection sequence is:
DC Supply (+) → Current-Limiting Resistor → IR LED Anode → IR LED Cathode → Ground
The arrangement may change when a transistor, MOSFET or regulated driver controls the emitter.
Use the selected device's datasheet to confirm its pinout, electrical limits and any recommended protection components.
When Is a Resistor Not Enough?
For high-power infrared LEDs, multiple-LED arrays, or applications requiring controlled optical output, a regulated constant-current driver may be more suitable.
The required driver must be selected according to the LED's forward-current rating, voltage range, thermal requirements, and operating mode.
See our LED Driver Selection Guide for UV and IR LEDs for detailed driver-selection considerations.
Key takeaway: A series resistor can limit the current of a suitable low-power IR LED. High-power or precision applications usually require more detailed current regulation and thermal design.

How to Connect an IR LED to a Microcontroller
An infrared LED can be controlled by a microcontroller, but the GPIO pin must not be asked to supply more current than its published limits allow.
Direct GPIO Drive for Low-Current LEDs
For a compatible low-current IR LED, a microcontroller output may drive the LED through a suitable current-limiting resistor.
Before using this arrangement, confirm the GPIO output current, output-high or output-low voltage, total device current limits, and the LED's operating requirements.
Not all microcontrollers can drive an IR LED directly at the current required for the intended optical output.
Transistor or MOSFET Switching
When the required LED current exceeds the GPIO's capability, a transistor or MOSFET can provide a separate current path from the power supply.
In a common low-side N-channel MOSFET arrangement:
-
The IR LED and its current-limiting element connect to the positive supply.
-
The LED current path passes through the MOSFET to ground.
-
The microcontroller GPIO controls the MOSFET gate.
-
The MOSFET must be suitable for the available gate-drive voltage and expected current.
-
The required gate resistor and pull-down arrangement should be selected according to the circuit design.
For a bipolar transistor, base-drive requirements must also be calculated.
The microcontroller and external driver circuit should have compatible reference and grounding arrangements.
Pulse and PWM Operation
Microcontrollers may use pulse-width modulation or timed pulses to control IR LED emission.
However, peak forward current, pulse duration, duty cycle, and thermal limits must remain within the manufacturer's specified operating conditions.
A pulsed current rating must not be treated as a continuous current rating.
When to Use a Regulated LED Driver
For high-current or precision applications, a constant-current LED driver can provide better current control than a simple resistor-limited circuit.
The appropriate design depends on the LED's rated operating conditions, available supply voltage, required optical output, and switching frequency.
For detailed driver selection, refer to our How to Choose an LED Driver for UV and IR LEDs guide.
|
Drive Method |
Suitable Starting Point |
Important Check |
|---|---|---|
|
MCU GPIO with resistor |
Compatible low-current emitters |
GPIO current and voltage limits |
|
Transistor or MOSFET switching |
Pulsed emitters requiring a separate current path |
Switch ratings and current limiting |
|
Regulated constant-current driver |
Higher-power or tighter current-control requirements |
Output compliance range and thermal limits |
Choosing the Wavelength: 850nm or 940nm in Practice
850nm and 940nm are common choices for near-infrared emitters, but neither wavelength suits every application.
An 850nm emitter may produce a faint visible red glow under some conditions. A 940nm emitter generally appears less visible to the human eye, although actual appearance depends on the device and operating conditions.
Receiver compatibility matters more than wavelength alone. Compare the detector's spectral response, optical filter, required working distance and target conditions before selecting an emitter.
The best emitter-detector combination depends on the complete optical system, not simply whether the LED operates at 850nm or 940nm.
Where the application is sensing rather than illumination, the trade-offs are examined in IR LED applications across sensing and illumination.

IR LED Thermal Management and PCB Layout
Thermal management is important for infrared emitters, particularly when the LED operates at high current or inside a compact enclosure.
Part of the electrical input is converted into infrared radiation, while the remaining power is dissipated as heat.
The amount of heat depends on the LED's electrical input, optical efficiency, operating conditions, and package design.
Check Continuous Current and Thermal Limits
The permitted operating current may decrease as ambient or junction temperature increases.
Engineers should review the model-specific absolute maximum ratings, thermal resistance, operating temperature limits, and applicable derating curves.
A published peak pulse current must not automatically be used for continuous operation.
Review the PCB Heat Path
Depending on the package design, suitable thermal measures may include:
-
Recommended thermal pads and PCB footprints.
-
Adequate copper area for heat spreading.
-
Thermal vias where supported by the package design.
-
Suitable heat sinks or thermal interfaces for higher-power devices.
-
Appropriate clearance and ventilation within the enclosure.
The manufacturer's mounting and thermal recommendations should take priority over general layout assumptions.
Does Pulsed Drive Reduce IR LED Heating?
Reducing the average current or duty cycle may reduce average heat generation.
However, safe pulsed operation depends on the permitted peak current, pulse width, repetition rate, duty cycle, and thermal conditions.
Do not exceed the manufacturer's specified pulsed-current limits simply because the average current appears acceptable.
Why Does My IR LED Get Hot?
If the LED operates hotter than expected, check the measured forward current, forward voltage, thermal path, ambient temperature, and duty cycle.
Excessive temperature may reduce optical performance or shorten service life.
For a broader explanation, read our LED Thermal Management Fundamentals.
Engineering recommendation: Validate electrical and thermal performance at the expected production operating conditions before approving the final PCB design.
Frequently Asked Questions
What does an IR LED need to work?
A discrete IR LED requires a suitable power supply, correct polarity, and controlled forward current. A current-limiting resistor may be sufficient for a compatible low-current circuit, while high-power or precision applications may require a regulated LED driver. Always verify the electrical and thermal limits in the selected LED's datasheet.
How long does an IR LED last?
IR LED lifespan depends on junction temperature, forward current, operating duty cycle and environmental conditions. There is no single lifetime that applies to every device. Review the manufacturer's reliability data and expected operating conditions for the exact model before estimating service life.
Why does my IR LED get hot?
An infrared LED converts part of its electrical input into infrared light and dissipates the remaining power as heat. Excessive heating may result from high drive current, inadequate thermal design, elevated ambient temperature, or unsuitable pulsed operation. Check the actual electrical conditions and the manufacturer's thermal limits before changing the circuit.
Can a microcontroller pin drive an IR LED directly?
Yes, if the required LED current stays within the GPIO pin's electrical limits and the circuit includes suitable current limiting. Applications needing higher current should use an appropriate switching stage or regulated driver. Check the microcontroller's per-pin and total current ratings before finalizing the circuit.
How can I tell if an IR LED is working?
Some smartphone cameras can detect near-infrared emission, but camera filters and sensor characteristics affect the result. A dark camera image does not prove that an IR LED has failed. For engineering verification, check the drive circuit and use a suitable infrared detector or photodiode. See our How to Test an IR LED guide for testing methods.
Does HOUKEM support custom IR LED requirements?
HOUKEM offers IR LED components with different wavelength, power, and package options for OEM projects. Availability, technical specifications, customization feasibility, and warranty terms should be confirmed for the exact selected model before ordering.

Bringing the Design Together
Learning how to use IR LED parts well is less about the part and more about the three decisions around it: a resistor or driver sized for real continuous duty, a wavelength and viewing angle matched to the receiver, and a thermal layout that keeps the junction cool at production duty cycles. Projects that settle those three items early rarely meet infrared problems later.
If you are specifying an infrared emitter for a new design, share the wavelength, drive condition and enclosure constraints with the HOUKEM engineering team and send your IR LED requirement so the applicable configuration can be confirmed against your project.
How to Measure IR LED Output: A Practical Measurement Framework
LED UV Curing Systems for Printing: How to Specify Wavelength, Dose and Cooling