1、 I 电动智能小车 摘 要 80C51 单片机是一款八位单片机, 他的易用性和多功能性受到了广大使用者的 好评。本系统采用 80C51 单片机为控制核心,主要完成了超声波检测避障模块, 反射式红外光电检测黑白跑道模块,里程检测模块,LED 显示模块,电机驱动等 模块的设计。设计采用左右独立的传动模式行驶,利用超声波传感器,检测道路 上的障碍,控制电动小汽车的自动避障;采用 PWMPWM 技术实现电动机的快慢调速行 驶以及自动停车;并由测速与显示模块自动记录时间、里程和速度;并可通过光 电、红外、传感器实现自动寻迹和寻光功能。最后,通过汇编语言编程控制 51 单 片机系统来决策智能车的行驶状态。
2、整个系统的电路结构简单,可靠性能高。实 验测试结果满足要求,本文着重介绍了该系统的硬件设计方法及测试结果分析。 关键词: 80C51 单片机、光电检测器、PWM 调速、电动小车 II Design and create an intelligence electricity motive small car Abstract 80C51 is a 8 bit single chip computer. Its easily using and multi-function suffer large users. This article introduces the CCUT graduati
3、on 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 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 reco
4、rd 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 a
5、doption of technique as: Keywords: 80C51 single chip computer, light electricity detector, PWM speed adjusting, Electricity motive small car III 目 录 前 言 1 第 1 章 系统整体设计 3 1.1 直流调速系统. 3 1.2 检测系统 3 1.3 显示电路 9 1.4 系统原理图. 9 第 2 章 硬件设计 .10 2.1 2.1 80C5180C51 单片机硬件结构10 2.2 最小应用系统设计. 11 2.3 前向通道设计.12 2.4 后向
6、通道设计.14 2.5 显示电路设计.17 第 3 章软件设计 .20 3.1 主程序设计.20 3.2 显示子程序设计.23 3.3 避障子程序设计.24 3.4 软件抗干扰技术.25 3.5“看门狗”技术26 3.6 可编程逻辑器件.28 第 4 章测试数据、测试结果分析30 4.1 测试方法及仪器.28 4.2 测试数据及测试结果分析.28 附录 A 程序清单 33 附录 B 硬件原理图 .41 外文资料翻译 .42 1 前 言 我设计的题目是电动智能小车,随着社会的发展汽车行业越来越与人 们的日常生活密切相关,全国电子大赛和省内电子大赛几乎每次都有智能 小车这方面的题目,全国各高校也都很重视该题目的研究。可见其研究意 义很大。本设计就是在这样的背景下提出的,指导教师已经有充分的准备。 本题目是结合科研项目而确定的设计类课题。设计的智能电动小车应该能 够实时显示时间、速度、里程,具有自动寻迹、寻光、避障功能,可程控 行驶速度、准确定位停车。 根据题目的要求,确定如下方案:在现有玩具电动车的基础上,加装 光电、红外线、超声波传感器及金属探测器,实现对电动车的速度、位置、 运行状况