The Keyestudio IR Receiver (Part ID: IR Receiver) is a compact and efficient device designed to detect infrared (IR) signals. It is commonly used in remote control applications to receive commands from IR transmitters, such as TV remotes or other IR-based controllers. The IR receiver converts the incoming infrared light signals into electrical signals, which can then be processed by a microcontroller or other electronic circuits.
The Keyestudio IR Receiver is designed to operate efficiently in a variety of electronic projects. Below are its key technical details:
Parameter | Value |
---|---|
Operating Voltage | 2.7V to 5.5V |
Operating Current | ≤ 1.5mA |
Carrier Frequency | 38 kHz |
Reception Distance | Up to 18 meters (depending on IR transmitter strength) |
Reception Angle | ±45° |
Output Signal | Digital (active low) |
Dimensions | 7.5mm x 5.8mm x 3.1mm |
The IR receiver typically has three pins, as described in the table below:
Pin | Name | Description |
---|---|---|
1 | VCC | Power supply pin. Connect to a voltage source (2.7V to 5.5V). |
2 | GND | Ground pin. Connect to the ground of the circuit. |
3 | OUT | Digital output pin. Outputs a low signal when an IR signal is detected. |
Connect the Pins:
Place the IR Receiver:
Add a Pull-Up Resistor (Optional):
Below is an example of how to use the Keyestudio IR 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 at 9600 baud
irrecv.enableIRIn(); // Start the IR receiver
Serial.println("IR Receiver is ready to decode 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 hexadecimal
irrecv.resume(); // Prepare to receive the next signal
}
}
IRremote
library must be installed in the Arduino IDE. You can install it via the Library Manager.No Signal Detected:
Unstable Output Signal:
Short Reception Range:
Q: Can the IR receiver work with any remote control?
A: The IR receiver is compatible with most remote controls that operate at a carrier frequency of 38 kHz. However, some proprietary remotes may use different protocols.
Q: Can I use the IR receiver outdoors?
A: While the IR receiver can be used outdoors, direct sunlight or strong ambient light may interfere with its operation. Consider using it in shaded areas or with an IR filter.
Q: What is the output signal when no IR signal is detected?
A: When no IR signal is detected, the output pin remains high (logic 1). It goes low (logic 0) when an IR signal is detected.
By following this documentation, you can effectively integrate the Keyestudio IR Receiver into your projects and troubleshoot any issues that arise.