1、摘 要 - I - 摘 要 80C52单片机是一款八位单片机,它的易用性和多功能性受到了广大使用者的 好评。这里介绍的是如何使用80C52单片机来实现智能小车的设计,该设计是结合 科研项目而确定的设计类课题。本系统以设计题目的要求为目的,采用80C52单片 机作为控制核心,采用红外传感器检测道路面上的障碍,控制智能小车的自动避 障,快慢速行驶,按键开车停车,并可以实现自动记录行驶时间,自动避障,自 动寻线功能。最终完成智能车设计需要综合单片机编程、模数电、Protel 设计、 电路焊接、自动控制算法设计等多方面内容。整个系统的电路结构简单,可靠性 能高。实验测试结果满足要求,本文着重介绍了该系
2、统的硬件设计方法及测试结 果分析。 采用的技术主要有: (1) 通过编程来控制小车的速度; (2) 传感器的有效应用; (3) 显示译码管的使用。 关键词关键词: 80C52单片机;光电检测器;PWM调速;智能小车 ABSTRACT - II - Design and create an intelligence electricity motive small car Abstract 80C52 is a 8 bit single chip computer. Its easily using and multi-function benefit large users. This art
3、icle introduces the UESTC graduation design with the 80C52 single chip computer. This design combines with scientific research object. This system regards the request of the topic, adopting 80C52 for controlling core, infrared reflection sensor for test the hinder. It can run in a high and a low spe
4、ed or stop automatically. It also can record the time, distance and the speed or searching light and mark automatically the electric circuit construction of whole system is simple, the function is dependable. Experiment test result satisfy the request, this text emphasizes introduced the hardware sy
5、stem designs and the result analyze. The adoption of technique as: (1) Speed control by program the engine; (2) Efficient application of the sensor; (3) The adoption of the new display chip. Keywords 80C52 single chip computer; light electricity detector; PWM speed adjusting;Electricity motive small
6、 car 目 录 - 3 - 目 录 第一章 引 言 6 第二章 方案设计与论证 . 8 2.1 微处理器(MCU)和场可编程逻辑门阵列(FPGA)的选择 . 8 2.2 直流电机和步进电机的选择 . 10 2.3 舵机和万向轮的选择 . 11 2.4 最终元器件选择 . 12 第三章 硬件设计 14 3.1 课题的方案论证 14 3.1.1 主要任务 14 3.1.2 功能要求 14 3.1.3 性能指标 14 3.2 课题工作 14 3.3 系统整体框图 15 3.4 电源模块设计 15 3.5 单片机最小系统设计 15 3.6 红外探测模块设计 17 3.7 后轮电机驱动模块设计 18 3.8 测速模块设计 22 3.9 发光二级管电路的设计 23 3.10 七段译码管电路的设计 . 24 3.11 蜂鸣器电路的设计 . 26 3.12 外接排针模块的设计 . 26 3.13 液晶显示屏电路的设计 . 27 3.14 DS1302 模块的设计 27 3.15 M24C02BN6 模块的设计 . 27 3.16 巡线模块的设计 . 27 3.17 火焰传感器的设计 . 28 第四