基于单片机的自动往返小车的设计 毕业论文 好!.doc
文本预览下载声明
基于单片机的自动往返
小车的设计
摘要
89S52单片机是一款八位单片机,他的易用性和多功能性受到了广大使用者的好评。这里介绍的是如何用89S52单片机来实现成都理工大学工程技术学院的毕业设计,该设计是结合科研项目而确定的设计类课题。本系统以设计题目的要求为目的,采用89S52单片机为控制核心,利用超声波传感器检测道路上的障碍,控制电动小汽车的自动避障,快慢速行驶,以及自动停车,并可以自动记录时间、里程和速度,自动寻迹和寻光功能。整个系统的电路结构简单,可靠性能高。实验测试结果满足要求,本文着重介绍了该系统的硬件设计方法及测试结果分析。
采用的技术主要有:
通过编程来控制小车的速度;
传感器的有效应用;
新型显示芯片的采用
关键词 :80C52单片机、电动小车、光电检测器、PWM调速
Abstract
89S52 is a 8 bit single chip computer. Its easily using and multi-function suffer large users. This article introduces the Engineeringtechnical College of Chengdu University of Technology graduation design with the 89S52 single chip computer. This design combines with scientific research object. This system regards the request of the topic, adopting 89S52 for 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. Experiment test result satisfy the request, this text emphasizes introduced the hardware system designs and the result analyze.
The adoption of technique as:
Reduce the speed by program the engine;
efficient application of the sensor;
The adoption of the new display chip.
Keywords :80C52 single chip computer、Electricity motive small car、light electricity detector、PWM speed adjusting
目录
摘要 I
Abstract II
目录 III
前言 - 1 -
1 方案设计与论证 - 2 -
1.1 电动小车 - 2 -
1.2 控制模块 - 3 -
1.3 电机控制模块 - 3 -
1.4 直流调速系统 - 3 -
1.5 电机驱动模块 - 5 -
1.6 信号检测模块 - 5 -
1.7 行车距离检测 - 7 -
1.8 系统原理 - 9 -
2 硬件设计 - 10 -
2.1 AT89S52单片机硬件结构 - 10 -
2.2 最小应用系统设计 - 11 -
3 软件设计 - 13 -
3.1 主程序设计 - 13 -
3.2 显示子程序设计 - 15 -
3.3 避障子程序设计 - 15 -
3.4 软件抗干扰技术 - 15 -
3.4.1数字滤波技术: - 15 -
3.4.2开关量的软件抗干扰技术: - 16 -
3.4.3指令冗余技术: - 16 -
3.4.4软件陷阱技术: - 17 -
3.4.5程序区 - 18 -
3.5 “看门狗”技术 - 18 -
3.6 可编程逻辑器件 - 20 -
4 测试数据、测试结果分析及结论 - 21 -
致 谢 - 23 -
参 考 文 献 - 24 -
附录1 程序清单 - 25 -
附录2 硬件原理图 - 34 -
前言
随着汽车工业的迅速发展,关于汽车的研究也就越来越受人关注。
显示全部