QB001/QB073+QB053 Infrared Remote Control Module
1.Product Introduction
Infrared remote control module is an electronic module that receives and sends infrared signal to realize wireless remote control function. It usually consists of an infrared transmitting module (infrared remote control) and an infrared receiving module.
As the transmitting part, the infrared remote control can emit infrared light signal. Infrared light signal is a kind of electromagnetic wave, its wavelength is long, the human eye can not see. When the button in the infrared remote control is pressed, the infrared remote control will emit a specific infrared light signal, and each key corresponds to a specific infrared code.
The infrared receiving module has an integrated infrared receiving component that can detect infrared light about 38kH, and can receive the infrared signal emitted by the infrared remote control. When the infrared signal is received, it is parsed into a specific infrared code by the decoder according to the communication protocol.
Application reference: remote control, game control, etc.
2.Parameter Specification
(1)Parameters of the infrared receiver module
Parameter |
Value/Representation |
---|---|
Operating voltage |
3.3V~5V |
Operating temperature |
-20°C~+80°C |
Frequency |
38KHz |
Receiving Angle |
±35° |
Receiving distance |
15m |
Output signal |
Digital signal |
Size |
3.16cm*2.38cm |
(2)Corresponding coding value of infrared transmitting module
3.Wiring Diagram
Humidifier Module |
UNO |
---|---|
VCC |
5V |
GND |
GND |
S |
Digital Pin 11 |
4.Sample Code
1#include "IRremote.h"
2int receiver = 11; //The signal pin of the infrared receiver is connected to pin 11 of the arduino
3IRrecv irrecv(receiver); //Create IRrecv infrared receiver objects to receive infrared signals
4void setup() {
5 Serial.begin(9600); //Set the baud rate of the serial port to 9600
6 irrecv.enableIRIn(); //Start infrared decoding
7}
8void loop() {
9 if (irrecv.decode()) //Check whether an infrared signal is received
10 {
11 if (!irrecv.decodedIRData.flags) //If the decoding succeeds
12 {
13 Serial.print("IR code:0x"); //Serial print string "IR code:0x"
14 Serial.println(irrecv.decodedIRData.decodedRawData, HEX);//Convert the infrared remote decoded data into hexadecimal display
15 }
16 irrecv.resume(); //Wait for the next infrared signal
17 }
18}
5.Test Result
After uploading the code to the motherboard, open the serial port monitor of the Arduino IDE and set the baud rate to 9600.
When we press the remote control key, the serial port returns the hexadecimal code value of the key.
Hint
If the light in the surrounding environment is strong and interferes with the data reception of the infrared receiver, you can block the strong light with your hand at an appropriate distance above the receiver.
6.Related Resources
7.Get One Now
B2B Business: info@acebott.com