The Infrared Receiver is a device designed to detect and decode infrared (IR) signals. It is commonly used in remote control applications to receive commands from an IR transmitter, such as a TV remote. The receiver converts the modulated IR light signal into an electrical signal that can be processed by a microcontroller or other digital systems.
Below are the key technical details of a typical Infrared Receiver:
Parameter | Value |
---|---|
Operating Voltage | 2.7V to 5.5V |
Operating Current | 0.4mA to 1.5mA |
Carrier Frequency | 30kHz to 56kHz (commonly 38kHz) |
Reception Distance | Up to 10 meters (depending on IR LED strength) |
Reception Angle | ±45° |
Output Signal Type | Digital (active low) |
Response Time | Typically < 100µs |
The Infrared Receiver typically has three pins. Below is the pinout and description:
Pin | Name | Description |
---|---|---|
1 | VCC | Power supply pin (connect to 3.3V or 5V) |
2 | GND | Ground pin (connect to circuit ground) |
3 | OUT | Digital output pin (active low, connects to microcontroller) |
Below is an example of how to use the Infrared Receiver with an Arduino UNO to decode IR signals from a remote control.
#include <IRremote.h> // Include the IRremote library
const int RECV_PIN = 2; // Define the pin connected to the IR receiver
IRrecv irrecv(RECV_PIN); // Create an IRrecv object
decode_results results; // Create a variable to store decoded results
void setup() {
Serial.begin(9600); // Initialize serial communication
irrecv.enableIRIn(); // Start the IR receiver
Serial.println("IR Receiver is ready to receive signals.");
}
void loop() {
if (irrecv.decode(&results)) { // Check if a signal is received
Serial.print("Received IR code: ");
Serial.println(results.value, HEX); // Print the received code in HEX format
irrecv.resume(); // Prepare to receive the next signal
}
}
IRremote
library in the Arduino IDE before uploading the code.No Signal Detected:
Unstable or Incorrect Output:
Short Reception Range:
Library Issues:
IRremote
library is installed and up to date.Q: Can I use the Infrared Receiver with a 3.3V microcontroller?
A: Yes, most Infrared Receivers operate within a voltage range of 2.7V to 5.5V, making them compatible with 3.3V systems.
Q: How do I know the carrier frequency of my remote control?
A: Check the remote control's datasheet or use an oscilloscope to measure the frequency of the transmitted signal.
Q: Can the Infrared Receiver detect signals through obstacles?
A: No, IR signals require a clear line of sight between the transmitter and receiver.