1、 本科毕业论文本科毕业论文 ( (设计设计) ) 学 院: 成教学院 专 业: 电气工程及其自动化 课 题: 基于单片机控制的智能电动小车 学 号: 姓 名: 指导教师: 职 称: 年年 月月 日日 I 基于单片机控制的智能电动小车基于单片机控制的智能电动小车 摘 要 智能电动小车,是一个集环境感知、规划决策、自动行驶等功能于一体的综合系 统。它集中地运用了计算机、传感、信息、通信、导航、人工智能及自动控制等技术, 是典型的高新技术综合体1。 本文以 80C51 单片机为核心,80C51 单片机是一款八位单片机,他的易用性和多 功能性受到了广大使用者的好评。本设计题采用 80C51 单片机为控
2、制核心,利用超声 波传感器检测道路上的障碍,控制电动小汽车的自动避障,快慢速行驶,以及自动停 车,并可以自动记录时间、里程和速度,自动寻迹和寻光功能。整个系统的电路结构 简单,可靠性能高。实验测试结果满足要求,本文着重介绍了该系统的硬件设计方法 及测试结果分析。 采用的技术主要有: (1) 通过编程来控制小车的速度; (2) 传感器的有效应用; (3) 新型显示芯片的采用. 关键词关键词 80C51 单片机、光电检测器、PWM 调速、电动小车 II Design and create an intelligence electricity motive small car Abstract 8
3、0C51 is a 8 bit single chip computer. Its easily using and multi-function suffer large users. This article introduces the CCUT graduation 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
4、 controlling 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
5、. Experiment 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. KeyKeywordswo
6、rds 80C51 single chip computer, light electricity detector, PWM speed adjusting, Electricity motive small car III 目 录 第一章 前 言 . 1 第二章 方案设计与论证 2 一 直流调速系统 2 二 检测系统 3 三 显示电路 8 四 系统原理图 8 第三章 硬件设计 9 一 80C51 单片机硬件结构 . 9 二 最小应用系统设计 . 10 三 前向通道设计 . 11 四 后向通道设计 . 14 五 显示电路设计 . 16 第四章 软件设计 . 20 一 主程序设计 . 20 二 显示子程序设计 . 24 三 避障子程序设计 . 25 四 软件抗干扰技术 . 26 五 “看门狗”技术 . 28 六 可编程逻辑器件 . 29 第五章 测试数据、测试结果分析及结论 . 30 致 谢 31 参 考 文 献 . 32 附录 A 程序清单 33 附录 B 硬件原理图 41 1 第