【正文】
ared remote control is also a wireless, noncontact control technology, but it has a strong antiinterference ability, reliable information transmission, low power consumption, cheaper easy to implement and other significant advantages. So it widely used in many electronic devices which especially household appliances and more and more applications used into the puter system. This paper introduces the remote control car control system based on infrared remote control technology, with STC89C52RC singlechip microputer as the core, the use of infrared remote control to control the direction and speed of the car. The hardware part of the system is mainly posed of single chip microputer minimum system module, infrared launch the independent type keyboard circuit, infrared emission circuit, infrared, infrared receiving circuit, control circuit at the receiving end, etc. Used C language programming software part, the infrared emission is the main program, keyboard scanning subroutine, the infrared coding subroutine, ir main program at the receiving end, the infrared decoding subroutine, the car control subroutine, etc. When independent type keyboard has a key press, single chip microputer scan and confirm which keys are pressed, and the key corresponding to the coding operation after launch out by infrared emission circuit, infrared receiving circuit to receive after the operation code, single chip microputer to decode, and code corresponding operation to control circuits, motors, lights began to work, so as to realize the control of the car. Keyword: STC89C52RC singlechip microputer infrared emission infrared receive I 目 錄 1 前言 ........................................................................................................................................ 1 設計背景 ............................................................................................................................. 1 設計內容及意義 ................................................................................................................. 1 單片機概述 ......................................................................................................................... 1 紅外技術概述 ..................................................................................................................... 2 紅外簡介 .......................................................................................................................... 2 紅外遙控 .......................................................................................................................... 2 2 方案確定及原理分析 ............................................................................................................ 3 設計原理 ............................................................................................................................. 3 紅外發(fā)射端原理 ................................................................................................................. 3 紅外接收端原理 ................................................................................................................. 3 3 系統(tǒng)設計 ................................................................................................................................ 4 單片機最小系 統(tǒng)設計 ......................................................................................................... 4 STC89C52RC 單片機簡介 .............................................................................................. 4 時鐘電路設計 ................................................................................................................ 6 復位電路設計 ................................................................................................................ 6 穩(wěn)壓電路設計 .................................................................................................................. 7 紅外發(fā)射端設計 ................................................................................................................. 8 獨立式鍵盤電路設計 ...................................................................................................... 8 紅外發(fā)射電路設計 .......................................................................................................... 8 紅外接收端設計 ................................................................................................................. 9 紅外接收芯片介紹 .......................................................................................................... 9 紅外接收電路設計 ........................................................................................................ 10 電機驅動芯片介紹 ........................................................................................................ 10 電機驅動電路設計 ........................................................................................................ 11 指示燈電路設計 ............................................................................................................ 12 軟件設計 ......................................................................................................................... 13 紅外編碼介紹 .............................................................................................................. 13 II 紅外發(fā)射端軟件設計 .................................................................................................... 14 紅外接收端軟件設計 .................................................................................................... 15 4 系統(tǒng)測試 .............................................................................................................................. 17 硬件測試 .................