文档详情

基于stc12c5a60s2单片机智能小车【毕业设计论文】.doc

发布:2017-08-16约1.83万字共35页下载文档
文本预览下载声明
基于STC12C5A60S2单片机智能小车 目 录 摘 要 1 Abstract 2 引言 3 1、课题背景及意义 3 2、国内外研究及现状 3 1 绪论 5 1.1智能小车概述 5 1.2设计任务和功能要求 7 1.2.1 基本要求 7 1.2.2 发挥部分 7 2 硬件电路设计 8 2.1主控芯片选型 8 2.1.1 单片机 STC12C5A60S 性能介绍 8 2.1.2 最小系统 12 2.2循迹探测模块 12 2.3电机驱动模块 15 2.4超声波测速模块 16 2.5 无线通信模块 17 2.6系统模块的最终方案 18 2.7 最终PCB板图 18 3、系统调试 19 3.1 循迹探测模块调试 19 3.2 蓝牙通信模块调试 19 3.3 超声波测距模块 20 4、软件设计 21 4.1 程序设计说明及流程图 21 4.1.1系统软件设计说明 21 4.1.2程序流程图 21 4.2程序设计 23 4.2.1驱动程序设计 23 4.2.2寻迹子程序设计 25 5、测试数据、测试结果分析及结论 29 5.1测试方法与仪器 29 5.1.1测试仪器 29 5.1.2测试方法 29 5.2测试数据及测试结果分析 29 5.3心得体会 29 致谢 31 参考文献 32 智能小车的研究、开发和应用涉及传感技术、电气技术、单片机控制、通信技术等学科,是一门综合技术,当代研究十分活跃,应用日益广泛的领域。智能作为现代社会的新产物,是以后的发展方向,它可以按照预先设定的模块在一个特定的环境里自动的运行,可运用于科学勘探等用途,无需人为的管理,便可以完成预期所要达到的或更高的目标,智能小车就是其中的一种。智能小车的发展主要在自动化领域,很多高校都鼓励学生去从事这方面的学习与研究。智能小车在以后必将有其广阔的应用前景。本设计是以简易的三轮小车(一个万向轮,两个普通的直流电机)为车体,硬件是基于STC12C5A60S2单片机为主控芯片,配合直流电动机、红外传感器、超声波传感器、蓝牙无线传感器,L298N驱动芯片等器件构成。通过相应的软件代码控制小车循迹、加减速等动作;完成小车在起跑线同时启动,在超车区实现超车;之后两车交替超车领跑的各个功能。经过多次实验表明,两小车较好地实现了循迹超车并交替领跑的功能。 关键字 智能小车;电气技术;单片机控制;通信技术;单片机 STC12C5A60S; Intelligence is an important direction for the future development as a new product of modern society. It can operate automatically in a specific environment according to the predetermined pattern and will be able to complete the intended target without user’s management. This excogitation mainly reflects multi-function car intelligent mode, the design of theory scheme and analytical method, features and innovations etc. which have some reference value on the design and popularity of semiautomatic robot automatically such as intelligent robots, intelligent household appliances. This dissertation discusses mainly on the design of the intelligent car in single-chip processor as the control core. To realize the car moving around and transform. the mode of the small car function, it uses wireless remote control; to realize the small car obstacle-avoidance function and comprehensively car tracing function, it uses the infrared sensor. This excogitation adopts the research methods of
显示全部
相似文档