

Infrared (IR) components are electronic devices designed to transmit and receive infrared light, which is electromagnetic radiation with wavelengths longer than visible light but shorter than microwaves. These components are widely used in applications such as remote controls, proximity sensors, object detection, and wireless communication systems. IR components are essential in enabling non-contact communication and sensing in a variety of consumer electronics, industrial systems, and IoT devices.
Common applications include:








| Parameter | Value |
|---|---|
| Wavelength Range | 700 nm to 1 mm (Infrared spectrum) |
| Operating Voltage | 2.7V to 5.5V (varies by component) |
| Current Consumption | Typically 10-50 mA |
| Communication Protocols | Modulated IR signals (e.g., 38 kHz) |
| Transmission Range | Up to 10 meters (depending on power) |
| Pin Number | Name | Description |
|---|---|---|
| 1 | Anode (+) | Connect to the positive terminal of the power supply. |
| 2 | Cathode (-) | Connect to ground. |
| Pin Number | Name | Description |
|---|---|---|
| 1 | VCC | Connect to the positive terminal of the power supply. |
| 2 | GND | Connect to ground. |
| 3 | OUT | Outputs the detected signal (digital or analog). |
Below is an example of using an IR transmitter and receiver with an Arduino UNO to detect obstacles:
// IR Obstacle Detection Example
// Connect IR LED to pin 3 and IR receiver OUT to pin 2
const int irLedPin = 3; // Pin connected to IR LED
const int irReceiverPin = 2; // Pin connected to IR receiver OUT
void setup() {
pinMode(irLedPin, OUTPUT); // Set IR LED pin as output
pinMode(irReceiverPin, INPUT); // Set IR receiver pin as input
Serial.begin(9600); // Initialize serial communication
}
void loop() {
digitalWrite(irLedPin, HIGH); // Turn on IR LED
delay(10); // Short delay to stabilize the signal
int irSignal = digitalRead(irReceiverPin); // Read IR receiver output
if (irSignal == LOW) {
// LOW indicates an obstacle is detected
Serial.println("Obstacle detected!");
} else {
// HIGH indicates no obstacle
Serial.println("No obstacle.");
}
delay(500); // Wait before the next reading
}
IR Receiver Not Detecting Signals
Short Transmission Range
False Detections
Q: Can I use an IR component outdoors?
A: Yes, but ambient sunlight can interfere with the IR signal. Use modulated signals and shield the receiver for better performance.
Q: What is the typical range of an IR transmitter and receiver?
A: The range depends on the power of the IR LED and the sensitivity of the receiver. Typical ranges are 5-10 meters indoors.
Q: Can I use an IR receiver with a TV remote?
A: Yes, most TV remotes use modulated IR signals (e.g., 38 kHz), which are compatible with standard IR receivers.
By following this documentation, you can effectively integrate IR components into your projects for reliable infrared communication and sensing.