1、 I 基于单片机的电动智能小车设计 The design of an intelligence electricity motive small car for single chip computer 院 系:自动化系 专 业/班 级:电气工程及其自动化 0804 班 学 号: 学 生 姓 名: 指 导 教 师: (讲师) 2012 年 6 月 II 摘 要 80C51 单片机是一款八位单片机, 他的易用性和多功能性受到了广大使用者 的好评。这里介绍的是如何用 80C51 单片机来实现沈阳工业大学工程学院的毕 业设计,该设计是结合科研项目而确定的设计类课题。本系统以设计题目的要 求为目的,采
2、用 80C51 单片机为控制核心,利用超声波传感器检测道路上的障 碍,控制电动小汽车的自动避障,快慢速行驶,以及自动停车,并可以自动记 录时间、里程和速度,自动寻迹和寻光功能。整个系统的电路结构简单,可靠 性能高。实验测试结果满足要求,本文着重介绍了该系统的硬件设计方法及测 试结果分析。 采用的技术主要有: (1)通过编程来控制小车的速度; (2)传感器的有效应用; (3)新型显示芯片的采用. 关键词:关键词:80C51 单片机;光电检测器;单片机;光电检测器;PWM 调速;电动小车调速;电动小车 III Abstract 80C51 is a 8 bit single chip comput
3、er. Its easily using and multi-function suffer large users. This article introduces the Institute of project of shenyang universitys design with the 80C51 single chip computer. This design combines with scientific research object. This system regards the request of the topic, adopting 80C51 for cont
4、rolling core, super sonic sensor for test the hinder. It can run in a high and a low speed 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. Exp
5、eriment test result satisfy the request, this text emphasizes introduced the hardware system designs and the result analyze. The adoption of technique as: (1)Reduce the speed by program the engine; (2)Efficient application of the sensor; (3)The adoption of the new display chip. Keywords : 80C51 sing
6、le chip computer; light electricity detector; PWM speed adjusting; Electricity motive small car IV 目 录 摘 要 II ABSTRACT III 第 1 章 绪 论 .1 第 2 章 方案设计与论证 .2 2.1 直流调速系统 .2 2.2 检测系统 .3 2.2.1 行车起始、终点及光线检测 3 2.2.2 行车距离检测 8 2.3 显示电路 .9 2.4 系统原理图 .9 第 3 章 硬件设计 . 11 3.1 80C51 单片机硬件结构 11 3.2 最小应用系统设计 .12 3.2.1 时钟电路 13 3.2.2 复位电路 13 3.3 前向通道设计 .14 3.3.1 前向通道的含义 14 3.3.2 前向通道的设计 15 3.4 后向通道设计 .17 3.4.1 脉宽调制原理 19 3.4.2 逻辑延时环节 19 3.4.3 电源的设计 20 3.5 显示电路设计 .20 第 4 章 系统软件设计说明 .23 4.1 主程序设计 .23 4.2