In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-22 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/03 Report--
This article mainly explains "what is the serial port control type of infrared remote control". The content of the explanation in this article is simple and clear, and it is easy to learn and understand. let's go deep into the train of thought of the editor. Let's study and learn what is the serial port control type of infrared remote control.
Introduction to the function of the module
1. The module has the functions of infrared decoding and infrared coding transmitting and remote control, and is compatible with infrared remote control function.
Capable electrical appliances, such as air conditioners, televisions, set-top boxes, electric fans, audio equipment, projectors, CD,
DVD players, satellite machines and other equipment
2. After receiving the instruction through the serial port, the module enters the learning state, and then the infrared remote control signal can be decoded.
The decoded data can be transmitted and the infrared waveform can be displayed synchronously by special software.
3. The decoded infrared signal is internally converted to specific coding and output through the serial port (serial baud rate 115200).
The maximum length of data coding is 242 bytes, which basically meets the coding length of all infrared equipment.
4. long-distance control, the distance is up to 6 meters.
5. Infrared emission, the operation is very simple, as long as the original code is sent back to the module, the correspondence can be realized.
The control of infrared equipment.
6. Combined with the central control system and intelligent home system, the trouble of using multiple remote controllers can be abandoned to realize intelligent control.
Second, common application schemes of modules
1. USB to serial port + IR_01 module-> to realize computer control of infrared equipment
2. Single-chip microcomputer + IR_01 module-> realize multi-connection mode to control household appliances
3. WIFI wireless module + IR_01 module-> realize remote control of infrared equipment
4. Bluetooth wireless module + IR_01 module-> realize remote control of infrared equipment
Third, computer special infrared analysis software (use of supporting modules)
1. Install USB to TTL serial module driver. Serial chips such as CH340 can be installed. Enter the device manager to check whether the driver has been installed.
4. Press the acquisition button on the analysis software to send infrared data acquisition instructions, instruction code: FF 11 11 FE
Infrared data acquisition button on the interface
4. Module serial communication protocol (baud rate is 115200 bps, can be customized and modified)
1. The module learns instructions and sends hexadecimal numbers to the serial port:
Learning instruction FF 11 11 FE
2. After the module receives the learning instruction, the status light on the module will always be on, waiting for the infrared remote controller to press the button to decode.
After pressing the button, the decoded data will be output through the serial port, at the same time, the status light will be off, and the serial port will receive the data format:
The fixed format of the frame header is FF xx 01 FD, and xx represents the number of valid data digits
The middle infrared code x1 x2 x3 x4. The specific number corresponds to xx.
The fixed format of the trailer is 16.
3. When transmitting infrared, you only need to send the received decoded data back to the module (including frame header and trailer) to restore it.
Give the corresponding infrared signal, so as to control the infrared equipment, and the status light will flash once when the infrared is emitted.
Special note: do not decode in strong light. An infrared button is best decoded in two different waveform display channels.
Compare the two decoding to see if the data waveforms are consistent.
Fifth, module interface description
RX-> TX connected to other devices (such as computer, central control, wireless module, etc.)
TX-> RX connected to other devices (such as computer, central control, wireless module, etc.)
Ground-- > the place where other devices are connected
5v-> module power supply voltage is 5v
VI. Description of work and control status
1. After the module is powered on, the green working light is always on.
2. enter the infrared learning state, the red state light is always on, and go out at the end of infrared learning.
3. Launch status, red status light flashes once
Thank you for your reading. the above is the content of "what is the serial port control type of infrared remote controller". After the study of this article, I believe you have a deeper understanding of what is the serial port control type of infrared remote control. the specific use of the situation also needs to be verified by practice. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.