Infrared transmitter module
This is their specific physical map
First, the introduction of This time we want to introduce an infrared transmitter and receiver modules, in fact, they are now in our daily life plays Important role in who is now on a lot of household appliances are used in such a device, such as air conditioning, TV, DVD, etc., It is based on wireless sensing, but also can be more remote control, very easy to use, then we today Day it is necessary to study the fundamentals and how to use. Second,
Products
- infrared emission control, also known as infrared emitting diode, it belongs to two Tube can be directly converted into electrical energy near-infrared lightAnd a light emitting device can radiate out, its structure, with the general principle of the light emitting diode similar, but with a semiconductor Different materials;
- the infrared receiver is set to receive, amplify, demodulate one of the devices, which has been completed within the demodulation IC output Is a digital signal;
- the principle of infrared communication Let's look at the structure of the infrared receiver: infrared receiver inside there are two important elements, namely the IC andPD. IC is a receiver processing elements, mainly composed of silicon crystals and circuits, is a highly integrated device, the main To function as a filter, shaping, decoding, zoom and other functions. Photodiode PD is, the main function is to receive the optical signal Number.
The following is a brief schematic work The modulated infrared emitting diode signal emitted, infrared receiver after receiving, decoding, filtering, and a series of operations After the signal for recovery;
Notes
- infrared emitting diodes: clean, good condition; various parameters during operation must not exceed limit values (positive To the current 30 ~ 60 mA, Pulse Forward Current 0.3 ~ 1 A, reverse voltage 5 V, power dissipation 90 mW, the working temperature Range -25 ~ +80 ℃, storage temperature range of -40 ~ +100 ℃, soldering temperature of 260℃) infrared emission tube and then Closed head should be paired with, otherwise it will affect the sensitivity;
- the infrared receiver: in a low humidity environment storage and use; Please pay attention to protect the infrared receiver receiving surface, Contamination or wear will affect reception, and do not touch the surface; Do not wash this; polluting gas in Body or the sea (salty) environment storage and use; without any external pressure, and affect the quality of the environment
Use
We first look at the diagram, to understand the infrared transmitter and receiver module specific connection with the Arduino Note: The above circuit is based on our above that kind protel schematic structures, and meet the specific pin assignment Shown in the schematic. Well, the test circuit there, look at the code under test right now This time we use to two Arduino control board, a main transmitter (Master), one as a slave receiver (Slave), Own specific set. We can according to the above schematic wiring and fixed infrared transmitter and receiver modules, here I We can work together to test it.
Hardware Requirements
- Arduino controller × 1
- USB data cable × 1
- the infrared transmitter module × 1
- the infrared receiver module × 1
Here follow the above means to build our test circuit Well, the whole test code is not long, we understand the code for those specific function of usage, then a Cut will become simpler, Come. Another point I must say is: we see the physical map will know, this used a two Arduino Board, the above code in the download time do to make it clear which is the launch, which was received? The program also Have noted, if the download is wrong, is not getting the results! Code download is complete, we open the Serial Monitor window, if you can see the following data show that It shows you are successful, ^ _ ^ From the receiving part of the code
Exaple Code
# Include <IRremote.h> int RECV_PIN = 11; / / define input pin on Arduino IRrecv irrecv (RECV_PIN); decode_results results; void setup () { Serial.begin (9600); irrecv.enableIRIn (); / / Start the receiver } void loop () { if (irrecv.decode (& results)) { Serial.println (results.value, HEX); irrecv.resume (); / / Receive the next value } } Main emission part of the code: # Include <IRremote.h> IRsend irsend; void setup () { Serial.begin (9600); } void loop () { for (int i = 0; i <50; i + +) { irsend.sendSony (0xa90, 12); / / Sony TV power code delay (40); } }
Arduino KY-005 Infrared emission sensor module
- Product Code: sensor
- Availability: 5
-
45 LE