(整理)英文翻譯—單片機解碼的紅外遙控器(20210430213948)_第1頁
(整理)英文翻譯—單片機解碼的紅外遙控器(20210430213948)_第2頁
(整理)英文翻譯—單片機解碼的紅外遙控器(20210430213948)_第3頁
(整理)英文翻譯—單片機解碼的紅外遙控器(20210430213948)_第4頁
(整理)英文翻譯—單片機解碼的紅外遙控器(20210430213948)_第5頁
已閱讀5頁,還剩4頁未讀, 繼續(xù)免費閱讀

下載本文檔

版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請進行舉報或認領(lǐng)

文檔簡介

1、精品文檔In frared remote con trol decoder microc on trollerAbstractRemote easy to use, features and more. Has bee n widely used in TV sets, VCD, DVD, air con diti oning and other household applia nces, and the price is cheap, very easy to buy on the market. If you can set a lot of butt ons on the remote

2、 con trol decoded. SCM system for the in put.It is to solve the conven ti onal 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 equipme nt, which is more convenient to use. In a

3、dditi on ,the system has 16 key, which can be used to extend the control other appliances. This design scheme based on the dema nd of the market, comb ined with in frared remote con trol desig n, simple, cheap, easy characteristics.Keywords: infrared remote control 、infrared 、codes精品文檔1 Infrared Tec

4、hnology1.1 In fraredIR (In frared rays) is a light, because of its wavele ngth tha n red light (75 Onm) is Ion ger, tha n the huma n eye can ide ntify the (visible light) ran ge, so we can not see it, also known as in frared radiati on , usually 0.75 1000 nwavele ngth of light are called in frared.

5、Gen erally use in frared com muni cati on within the in frared band n ear infrared,wavelengthsbetween0.75 to 25 卩 m. Infraredis a wirelesscom muni catio n means for wireless data tran smissi on1.2 Applicati on of inf raredExtremely wide range of in frared applicati ons, can be widely used in medic i

6、ne, biology, electr oni cs, telecom muni cati ons and other in dustries. In moder n electrical engineering applications, the IR is often used as a close line of sight com muni catio ns carrier, the most typical applicati on is the TV remote con trol. Done using the infrared signal carrier has many a

7、dvantages: low cost, scope and direct ion of propagati on and dista nee can be con trolled (not through the wall, on the impact of television next door), does not produce electromagnetic radiation, but also disturbed and so on. With in frared tech no logy become more sophisticated, increasing the st

8、andard specification, the application of infrared in the newsletter also in creas ing.1.3 In frared remote con trol formMainly the remote control transmitter, integrated receiver, microcontroller, in terface circuit. Remote con trol remote con trol code used to gen erate pulses to drive in frared em

9、issi on con trol in frared remote con trol sig nal output, remote con trol receiver to complete the remote signal amplification, detection, shaping, demodulati on of the remote con trol code pulses. Coded pulse is a set of remote serial binary code, infrared remote control system for the general, th

10、is serial code in put to the micro-c on troller, remotecon trol by the in ternal CPU to complete theinstruction decode, and execute the corresponding remote control. Using the remote con trol as the con trol system in put, n eed to address the followi ng key issues: how to receive in frared remote c

11、on trol sig nal; how to ide ntify the in frared remote con trol sig nals, and decod ing software desig n, con trol program desig n.2 en cod ing format2.1 0 and 1 en cod ingRemote control signal emitted by the binary string of Os and 1s code. Differe nt chip en codi ng of 0 and 1 are differe nt. Man

12、chester en codi ng and usually pulse width en cod ing. TC9012s O and 1 en coded using PWM method, thepulsewidth 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 comb in ati on of low and high 0.56ms. Pulse wi

13、dth of 1.12ms. 1 yard from the 0.56ms and 1.69ms high low comb in ati on. Pulse width of 2.25ms. Decod ing procedure in the preparatio n. By determ ining the pulse width can be 0 or 1.1 9 Jt2.2 The en cod ing keyWhen we press the remote con trol butt on, the remote con trol will send a stri ngof bin

14、ary code in Figure 2, we call it a frame of data. According to the function of each part. They can be divided into five parts, n amely, boot code, address code, address code, data code, data coun ter code. Remote con trol tran smitter code. Are low in the former. High in the post. Figure 2 can be ob

15、tained from the analysis. High boot code for the 4.5ms, low as 4.5ms.When receiving this code. That the start of a frame of data. SCM can be ready to receive the followi ng data. 8-bit bi nary address code formed by a total of 256. The figure re-issued an address code. Are to enhance the reliability

16、 of the remote control. If the two address code is not the same. Is illustrated in the frame wrong. Should be discarded. Different devices can have a different address codes. So.The same en cod ing sett ings as long as the address of the remote con trol code is different and will not interfere with

17、each other. The address map for the hexadecimal code OEH (n ote least sig nifica nt bit first.) In the same remote con trol.All keys issued by the address code is the same. 8-bit data code, and en coded 256 state, on behalf of the actual key pressed. Anti-code data is the data you find an ti-code, c

18、ode and data by compari ng the data aga inst code. Can determ ine the received data is correct. If the data code and data between anti-code does not meet the opposite relati on ship. The remote con trol receiver is wrong. Data should be discarded. In the same remote con trol. The data of all key cod

19、es are not the same. In Figure 2, the data as hexadecimal code 0CH, anti-code data in hexadecimal 0F3H (note least significant bit first.) Of both and should be 0FFH.弓t導(dǎo)碼 地址碼地址碼 數(shù)據(jù)碼 : 數(shù)據(jù)反碼 :wnnnmnnnMumnmnnmnnnr3 sin gle chip remote con trol receiver circuitInfrared remote control receiver infrared r

20、eceiver diode can be added earlier infrared processing circuit dedicated approach. If CXA20106, circuit complexity of this method, it is gen erally not used. Better in tegrati on of the receiver is to use infrared receiver, infrared receiver diodes will, amplification, demodulation, plastic and othe

21、r circuits do together, only three pins. Are the +5 V power supply, the sig nal output. Common form of in tegratio n and the pin receiver show n in Figure 3 and Figure 4.In frared receiver of the sig nal output conn ected microc on troller INTO or INTIfeet. A typical circuit is show n in Figure 5. T

22、he figure in creased by a PNP-typetran sistor to amplify the output sig nal4 remote con trol sig nal decod ing algorithms and program mingWhen 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-e ncoded

23、reverse-phase high by remote con trol after the first output sig nal O. As conn ected with the microc on trollerin terrupt pin will cause an in terruptmicrocontroller (MCU pre-set for the falling edge). Microcontroller used in the interrupt timer 0 or timer 1 starts. To the next pulse arrives, the i

24、nterrupt again, the first time the value out. Clear time value and then start the timer. By judging each interrupt with the previous time 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

25、 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 given a certa in error. Because of the differe nt parameters of the remote con trol causes the crystal, transmitting and receiving time there will be a small error.T

26、o receive the TC9012 remote con trol codes, for example, decod ing method is as follows:(1) Let the external interrupt 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 con trol to start timi ng.(3) into th

27、e remote control from the second break, the first stop the clock. And the value of sav ing time, and the n re-timi ng. If the timer value is equal to the preamble of the time, the establishment of a preamble symbol. Ready to receive the data followi ng a remote con trol, if the time value is not equ

28、al to the preamble of the time, but the previously received preamble, the judge is O or 1 remote data.(4) continue to receive the following address code, data code, data counter code.(5) Whe n 32-bit data is received, in dicati ng that a data recepti on is completed. Time to stop the timer at this t

29、ime, and determ ine the validity of this receiver. If the same address code and equal to twice the system address, data, code and dataand is equal to anti-yards OFFH, is receiving valid data code of the frame. Otherwise, discard this received data.(6) has bee n received, in itializati on data receiv

30、ed this time, ready for the n ext remote con trol receiver.5 code remote con trol code con vers ion with the keyboardIn the applicati on system, with remote con trol equipme nt gen erally with keys. And both feature the same. Will be conv erted into the sta ndard remote butt on key value. Bulk tran

31、sfer form remote con trol butt on to switch the keyboard loose form reuse. Con versi on method can look-up table. Look-up table. The key value of the remote con trol unit keyboard, the value of the switchi ng costs. In this way, you can use the key operati on, you can also use the remote con trol, a

32、nd the corresp onding process is very simple.6 Comparis on of in frared and Bluetooth6.1 Characteristics of i nfrared tech no logyIn frared com muni cati on tech no logy for low-cost, cross-platform, point to point high-speed data connections,especially in embedded systems. The mainapplicati on of i

33、n frared tech no logy: equipme nt, conn ectivity and in formatio n gateway. Equipment after completion of different devices connected within the document and information exchange. Information gateway is responsible for connecting in formatio n termi nals and the In ternet.In frared com muni cati on

34、tech no logy has bee n around the world supported by many hardware and software ven dors and the use of, the curre nt mai nstream software and hardware platforms offer support for it. In frared tech no logy has bee n widely used in mobile comput ing and mobile com muni cati ons devices.6.2 Bluetooth

35、 featuresBluetooth tech no logy is used as a cable replaceme nt tech no logy proposedby the development of today has evolved into a personal information network tech no logy. Bluetooth chip embedded devices will in terc onnect together to provide voice and data access services, to achieve the automa

36、tic excha nge and process ing of information. Bluetooth mainly for three categories of applications: voice / data access, peripherals, Internet and pers onal area n etwork. Voice / data access is one comput ing device over a secure wireless link to conn ect to a com muni cati on device, complete wit

37、h wide-area com muni catio n n etwork in terc onnection.PeripheralComponent 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 n etworks and in formati on shari ng and excha nge. Bluetooth tech no lo

38、gy has bee n the resp onse of the two thousa nd compa ni es, which have huge developme nt and production capacity. Bluetooth has a very high reputation, consumers are very in terested in this tech no logy the cost of the end of the in frared, and Bluetooth tran sfer speeds much faster tha n many, an

39、d in frared tech no logy to the curre nt tech no logy is mature, so it further popularity will be a lot of space.Con clusi onThrough this infrared system design, so I basically mastered the IR kno wledge .In frared system with in frared tran smitter, i nfrared receiver, the in terface module, displa

40、y module, etc. put together. In frared tech no logy gen erated by the in dustrial applicati ons ranging from medical care, testi ng, aviati on to military and other fields have a wide range of applicatio ns. I lear ned to make full use of library resources and network resources for independent study

41、 and research on the function of the com mon in tegrated circuit device and pin connection have a better un dersta nding and aware ness. It made me un dersta nd the importa nee of readi ng to find docume nts, usually more tha n the accumulatio n of kno wledge and to use real time, so questi ons will

42、 be han dy.Through this in frared system desig n, I greatly hadthe harvest. Get topics to find in formatio n from the, from the adjustme nt of the circuit board to fail again after all start again In this challenging with setbacks, with passi on with a blow to the process, I think a lot, it has not only is one of my four years lear ning kno wledge and my applicatio n practice ability of in spect ion, and still to my spirit, in the face of difficult men tality, of doing things the persevera nee and patienee to the test. rm in the process of deep feeling to do the meani

溫馨提示

  • 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
  • 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
  • 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
  • 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
  • 5. 人人文庫網(wǎng)僅提供信息存儲空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負責。
  • 6. 下載文件中如有侵權(quán)或不適當內(nèi)容,請與我們聯(lián)系,我們立即糾正。
  • 7. 本站不保證下載資源的準確性、安全性和完整性, 同時也不承擔用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。

評論

0/150

提交評論