1、 基于单片机遥控小汽车的设计 (硬件部分) 学 院:机电与自动化学院 专 业:电气自动化技术 0803 姓 名: 学 号: 指导教师: 2011 年 6 月 2 基于 89C51 遥控小汽车的设计 (硬件部分) Based on 89C51 Remote control cars design (Hardware part) I 摘 要 根据题目要求,本设计采用 AT89C2051 单片机构成主从式的控制系统,双机采 用串行接口通信。红外遥控部分采用遥控车模专用编、解码芯片 TX-2/RX-2,提高控 制的可靠性。采用红外传感器进行里程检测;超声波传感器进行障碍识别;感光电 阻辅以步进电机控制
2、的转动机构进行光源方向的检测,并能用软件控制小车行驶到 光源附近。采用步进电机对小车的转向进行精确的控制,同时用红外传感器对转向 的角度进行校正。此外,采用四位 LED 数码管和若干 LED 发光二极管显示时间、行 进的里程以及小车的各种状态;采用 AT89C2051 串行 EEPROM 记录小车的行驶轨迹, 并能按照所记录的轨迹自动行驶。 本次设计基于完备的软硬件系统,很好的实现了红外遥控功能,启动和停止, 自动或手动;前或后直线行进;任意曲线行进;测距避障功能;显示行进距离;精 确查找光源等一些功能。 关键词:单片机 超声波传感器 发射装置 接收装置 红外遥控。 II Abstract A
3、ccording to the topic, my design needs to adopt two AT89C51 to form a control system of principal and subordinate. The communication between the two MCU is to adopt the serial port. Meanwhile, launch end join with insult male genital 61 sound recognition system that board make remotely, can finish t
4、he remote control function of the pronunciation, and it adopts the infrared sensor to measure the mileage; The ultrasonic sensor carries on the obstacle to discern; Sensitization resistance complement in order to walk into whom electrical machinery control rotate organization carry on measuring, direction of the light source, The small car can go to the adjacent place of the light source with the software .The design adopts serial EEPROM of AT24C08 to write down the orbit of the car ,