1、I 本科毕业设计说明书本科毕业设计说明书 基于单片机基于单片机的智能的智能寻迹小车寻迹小车设计设计 THE SYSTEM DESIGN OF THE TRACKING CAR BASED ON MCU 学院(部) :电气与信息工程学院 专业班级: 电子与信息工程 08-2 学生姓名: 指导教师: xx 讲师 2012 年 6 月 3 日 I 基于单片机的智能寻迹小车系统设计 摘摘 要要 本文以竞赛用智能车为研究对象,围绕着视觉导航中的道路识别和跟踪算法以及 系统的实现展开研究。在机械系统设计方面,根据汽车技术理论,讨论了机械系统参数 的调整方法,如主销后倾角、主销内倾角、车轮外倾和前束等,同时
2、为使左右前轮转向 一致, 讨论了转向系统的标定方法; 在控制系统硬件设计方面, 对整个系统的电源模块、 路径识别模块、测速模块和驱动模块的硬件、安装方式和外围接口电路进行了设计;在 控制系统软件设计和设计方面,对道路识别和跟踪算法以及车体 PID 控制算法的数学模 型进行了研究。 本课题的主要研究内容及成果包括以下几个方面: (1)为了克服外界环境光的干扰,设计了滤波电路,提出了相应的滤波算法。该滤 波电路耗电省,工作稳定,抗干扰性强,探测距离与灵敏度可通过电路中参数来调节。 (2)对摄像头采集及处理路径图像数据进行了研究,基于二值化算法,左侧边缘检 测法和跟踪边缘检测法的原理, 提出了改进型
3、二值化算法。 该算法在摄像头倾斜检测时, 对视频图像数据的去噪处理非常有效,具有较强的鲁棒性,能够提取出精确的路径特点 信息。 (3)通过对竞赛用智能汽车的转向舵机转角和行进速度所采用的基于路径形状信息 的参数自整定模糊 PID 控制算法的研究,提出了可应用于现代智能车转向和车速调节的 PID 控制算法数学模型。 (4)完成了我校竞赛用智能车全部软硬件的设计与制造。 关键词:智能竞赛汽车;摄像头;图像处理;路径识别;路径跟踪;PID 控 制; II THE SYSTEM DESIGN OF THE TRACKING CAR BASED ON MCU ABSTRACT This thesis ,
4、 taking intelligent competition car as the research object, focuses the research work on path identification, path tracking and the system implementation. In the aspect of mechanical system design, the adjutive methods of mechanical and structure parameters are discussed according to automobile tech
5、nical theory,such as caster angle, kingpin inclination , toe-in and camber of wheels.Meanwhile,the calibrated method of steering system is discussed in order to make two front tires achieve accordant turning. In the aspect of the hardware design of control system, hardware selections, interface circ
6、uits and installing pattern for the power module,path identification module,velocity measurement module and driving module are designed.In the aspect of software design of control system,the road identification and tracking algorithm an mathematic modeling of control algorithm for car body are studied. The main contents and contributions of this thesis are as follows: (1)In order to overcome the interference of environmental light to the infrared emitting diode and photodiode,