




版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
1、Infrared remote control decoder microcontrollerAbstractRemote easy to use, features and more. Has been widely used in TV sets, VCD, DVD, air conditioning and other household appliances, and the price is cheap, very easy to buy on the market. If you can set a lot of buttons on the remote control deco
2、ded. SCM system for the input.It is to solve the conventional matrix keypad circuit board is too large, complex wiring, occupy I / O port too many ills. And through the use of remote control operation can be the separation of man and equipment, which is more convenient to use. In addition ,the syste
3、m has 16 key, which can be used to extend the control other appliances. This design scheme based on the demand of the market, combined with infrared remote control design, simple, cheap, easy characteristics.Keywords: infrared remote control 、infrared 、codes1 Infrared Technology1.1 InfraredIR (Infra
4、red rays) is a light, because of its wavelength than red light (750nm) is longer, than the human eye can identify the (visible light) range, so we can not see it, also known as infrared radiation , usually 0.75 1000m wavelength of light are called infrared. Generally use infrared communication withi
5、n the infrared band near infrared,wavelengths between 0.75m to 25m. Infrared is a wireless communication means for wireless data transmission1.2 Application of infraredExtremely wide range of infrared applications, can be widely used in medicine, biology, electronics, telecommunications and other in
6、dustries. In modern electrical engineering applications, the IR is often used as a close line of sight communications carrier, the most typical application is the TV remote control. Done using the infrared signal carrier has many advantages: low cost, scope and direction of propagation and distance
7、can be controlled (not through the wall, on the impact of television next door), does not produce electromagnetic radiation, but also disturbed and so on. With infrared technology become more sophisticated, increasing the standard specification, the application of infrared in the newsletter also inc
8、reasing.1.3 Infrared remote control form Mainly the remote control transmitter, integrated receiver, microcontroller, interface circuit. Remote control remote control code used to generate pulses to drive infrared emission control infrared remote control signal output, remote control receiver to com
9、plete the remote signal amplification, detection, shaping, demodulation of the remote control code pulses. Coded pulse is a set of remote serial binary code, infrared remote control system for the general, this serial code input to the micro-controller, remote control by the internal CPU to complete
10、 the instruction decode, and execute the corresponding remote control. Using the remote control as the control system input, need to address the following key issues: how to receive infrared remote control signal; how to identify the infrared remote control signals, and decoding software design, con
11、trol program design.2 encoding format2.1 0 and 1 encodingRemote control signal emitted by the binary string of O's and 1's code. Different chip encoding of 0 and 1 are different. Manchester encoding and usually pulse width encoding. TC9012's O and 1 encoded using PWM method, the pulse wi
12、dth modulation, the O code and 1 yard as shown in Figure 1 (the remote control receiver output waveform as an example.) O is supplied by O. 56ms combination of low and high 0.56ms. Pulse width of 1.12ms. 1 yard from the 0.56ms and 1.69ms high low combination. Pulse width of 2.25ms. Decoding procedur
13、e in the preparation. By determining the pulse width can be 0 or 1.2.2 The encoding key When we press the remote control button, the remote control will send a string of binary code in Figure 2, we call it a frame of data. According to the function of each part. They can be
14、divided into five parts, namely, boot code, address code, address code, data code, data counter code. Remote control transmitter code. Are low in the former. High in the post. Figure 2 can be obtained from the analysis. High boot code for the 4.5ms, low as 4.5ms. When receiving this code. That the s
15、tart of a frame of data. SCM can be ready to receive the following data. 8-bit binary address code formed by a total of 256. The figure re-issued an address code. Are to enhance the reliability of the remote control. If the two address code is not the same. Is illustrated in the frame wrong. Should
16、be discarded. Different devices can have a different address codes. So. The same encoding settings as long as the address of the remote control code is different and will not interfere with each other. The address map for the hexadecimal code 0EH (note least significant bit first.) In the same remot
17、e control. All keys issued by the address code is the same. 8-bit data code, and encoded 256 state, on behalf of the actual key pressed. Anti-code data is the data you find anti-code, code and data by comparing the data against code. Can determine the received data is correct. If the data code and d
18、ata between anti-code does not meet the opposite relationship. The remote control receiver is wrong. Data should be discarded. In the same remote control. The data of all key codes are not the same. In Figure 2, the data as hexadecimal code 0CH, anti-code data in hexadecimal 0F3H (note least signifi
19、cant bit first.) Of both and should be 0FFH. 3 single chip remote control receiver circuit Infrared remote control receiver infrared receiver diode can be added earlier infrared processing circuit dedicated approach. If CXA20106, circuit complexity of this method, it is
20、 generally not used. Better integration of the receiver is to use infrared receiver, infrared receiver diodes will, amplification, demodulation, plastic and other circuits do together, only three pins. Are the +5 V power supply, the signal output. Common form of integration and the pin receiver show
21、n in Figure 3 and Figure 4.Infrared receiver of the signal output connected microcontroller INTO or INTl feet. A typical circuit is shown in Figure 5. The figure increased by a PNP-type transistor to amplify the output signal4 remote control signal decoding algorithms and programming
22、60; When no key is pressed the remote control, infrared emitting diodes do not send a signal, the output signal a remote receiver. A key is pressed. O and 1-encoded reverse-phase high by remote control after the first output signal O. As connected with the microcontroller interrupt pin will ca
23、use an interrupt microcontroller (MCU pre-set for the falling edge). Microcontroller used in the interrupt timer 0 or timer 1 starts. To the next pulse arrives, the interrupt again, the first time the value out. Clear time value and then start the timer. By judging each interrupt with the previous t
24、ime interval between interruption. They will know that the boot code is received, or O and 1. If the time is 9ms. Boot code is received, if the time value is equal to 1.12ms, received a code O. If the timer value is equal to 2 25ms. Received a code 1. In determining the time, consideration should be
25、 given a certain error. Because of the different parameters of the remote control causes the crystal, transmitting and receiving time there will be a small error. To receive the TC9012 remote control codes, for example, decoding method is as follows: (1) Let the external inte
26、rrupt 0 (or 1) for the falling edge interrupt, timer 0 (or 1) for the 16-bit timer. The initial values are 0. (2) After the first break into the remote control to start timing. (3) into the remote control from the second break, the first stop the clock
27、. And the value of saving time, and then re-timing. If the timer value is equal to the preamble of the time, the establishment of a preamble symbol. Ready to receive the data following a remote control, if the time value is not equal to the preamble of the time, but the previously received preamble,
28、 the judge is O or 1 remote data. (4) continue to receive the following address code, data code, data counter code. (5) When 32-bit data is received, indicating that a data reception is completed. Time to stop the timer at this time, and determine the validity of this recei
29、ver. If the same address code and equal to twice the system address, data, code and data and is equal to anti-yards 0FFH, is receiving valid data code of the frame. Otherwise, discard this received data. (6) has been received, initialization data received this time, ready for the next r
30、emote control receiver. 5 code remote control code conversion with the keyboard In the application system, with remote control equipment generally with keys. And both feature the same. Will be converted into the standard remote button key value. Bulk transfer form remot
31、e control button to switch the keyboard loose form reuse. Conversion method can look-up table. Look-up table. The key value of the remote control unit keyboard, the value of the switching costs. In this way, you can use the key operation, you can also use the remote control, and the corresponding pr
32、ocess is very simple.6 Comparison of infrared and Bluetooth6.1 Characteristics of infrared technology Infrared communication technology for low-cost, cross-platform, point to point high-speed data connections, especially in embedded systems. The main application of infrared technology: equipment, co
33、nnectivity and information gateway. Equipment after completion of different devices connected within the document and information exchange. Information gateway is responsible for connecting information terminals and the Internet. Infrared communication technology has been around the world supported
34、by many hardware and software vendors and the use of, the current mainstream software and hardware platforms offer support for it. Infrared technology has been widely used in mobile computing and mobile communications devices. 6.2 Bluetooth features Bluetooth technology is used as a "cable repl
35、acement" technology proposed by the development of today has evolved into a personal information network technology. Bluetooth chip embedded devices will interconnect together to provide voice and data access services, to achieve the automatic exchange and processing of information. Bluetooth m
36、ainly for three categories of applications: voice / data access, peripherals, Internet and personal area network. Voice / data access is one computing device over a secure wireless link to connect to a communication device, complete with wide-area communication network interconnection. Peripheral Co
37、mponent Interconnect refers to a variety of peripherals via a Bluetooth link to connect to the host. The main application is the personal area network personal networks and information sharing and exchange. Bluetooth technology has been the response of the two thousand companies, which have huge dev
38、elopment and production capacity. Bluetooth has a very high reputation, consumers are very interested in this technology the cost of the end of the infrared, and Bluetooth transfer speeds much faster than many, and infrared technology to the current technology is mature, so it further popularity wil
39、l be a lot of space. Conclusion Through this infrared system design, so I basically mastered the IR knowledge.Infrared system with infrared transmitter, infrared receiver, the interface module, display module, etc. put together. Infrared technology generated by the industrial applications ranging fr
40、om medical care, testing, aviation to military and other fields have a wide range of applications. I learned to make full use of library resources and network resources for independent study and research on the function of the common integrated circuit device and pin connection have a better underst
41、anding and awareness. It made me understand the importance of reading to find documents, usually more than the accumulation of knowledge and to use real time, so questions will be handy.Through this infrared system design, I greatly hadthe harvest. Get topics to find information from the, from the a
42、djustment of the circuit board to fail again after all start again. In this challenging with setbacks, with passion with a blow to the process, I think a lot, it has not only is one of my four years learning knowledge and my application practice ability of inspection, and still to my spirit, in the face of difficult mentality, of doing things the perseverance and patience to the test. I'm in the process o
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 跨境艺术品运输与专业包装设备租赁专项合同
- 未成年人犯罪矫正中心探视权调整服务协议
- 物流公司供应链总监职位竞聘与任职资格合同
- 建筑企业电工劳务派遣与现场施工监督合同
- 电疗设备研发与市场调研分析服务合同
- 明星肖像权授权与商业合作全面协议
- 烘焙产品配方共享保密补充协议
- 股权代持与公司内部控制制度协议
- 房地产项目客服团队派遣服务协议
- 网红烧烤品牌区域代理权及市场开发合作协议
- 2025至2030中国鸭脖子市场营销策略与发展前景趋势研究报告
- 山东省德州市陵城区2024-2025学年下学期期中考试七年级数学试题(含答案)
- 2025广东高考:历史必考知识点总结
- 剪辑考试试题及答案
- 火锅店服务员接待流程解析
- 2025年上半年福建福州广播电视台招聘重点基础提升(共500题)附带答案详解
- 高中政治经济主观题材料对应术语总结
- 2025年金融数学考试试题及答案
- 2024年安徽省公务员【申论】考试真题及答案-(A卷+B卷+C卷)三套
- 浙江国企招聘2024温州市公用事业发展集团有限公司招聘8人笔试参考题库附带答案详解
- 研发月报工作总结
评论
0/150
提交评论