飞思卡尔智能车摄像头组技术报告 (2)

  • 格式:doc
  • 大小:11.12 MB
  • 文档页数:51

第十届“飞思卡尔”杯全国大学生智能汽车竞赛技术报告

第十届“飞思卡尔”杯全国大学生

智能汽车竞赛

技 术 报 告

第十届“飞思卡尔”杯全国大学生智能汽车竞赛技术报告

摘要

本文设计的智能车系统以K60微控制器为核心控制单元,基于CCD摄像头的图像采样获取赛道图像信息,提取赛道中心线,计算出小车与黑线间的位置偏差,采用PD方式对舵机转向进行反馈控制。使用PID控制算法调节驱动电机的转速,结合特定算法分析出前方赛道信息实现对模型车运动速度的闭环控制。为了提高模型车的速度和稳定性,我们用C++开发了仿真平台、蓝牙串口模块、SD卡模块、键盘液晶模块等调试工具,通过一系列的调试,证明该系统设计方案是确实可行的。

第十届“飞思卡尔”杯全国大学生智能汽车竞赛技术报告

关键词:K60,CCD摄像头,二值化,PID控制,C++仿真,SD卡

Abstract

In this paper, we will design a intelligent vehicle system based on

MC56F8366 as the micro-controller unit. using the CCD image sensor

sampling to the track image information to extract the track line center, to

calculate the positional deviation between the car with the black line, the

use of PD on the rudder. The machine turned to the feedback control. We

use PID control algorithm to adjust the speed of the drive motor, combined

with specific algorithms to achieve closed-loop control of the movement

speed of the model car in front of the track. In order to improve the speed

and stability of the model car, we use the C++ to develop a simulation

platform, Bluetooth serial module, SD card module, keyboard, LCD

modules, debugging tools. Through a series of debugging, the system

design is feasible.

第十届“飞思卡尔”杯全国大学生智能汽车竞赛技术报告

Key words: K60,CCD_camera, binaryzation, PID control, C++ simulation,

SD card

目 录

第1章 引言 ................................................................................... - 1 -

第2章 系统总体设计 ................................................................ - 2 -

2.1 系统分析 ..................................................................................... - 2 -

2.2 车模整体布局 ............................................................................. - 3 -

2.3 本章小结....................................................................................... - 4 -

第3章 系统机械设计及实现 ................................................... - 5 -

3.1 前轮定位的调整 ......................................................................... - 5 -

3.1.1主销内倾 ..............................................................................- 6 -

3.1.2 后倾角 .................................................................................- 6 -

3.1.3 内倾角 .................................................................................- 7 -

3.2 舵机安装....................................................................................... - 8 -

3.2.1 左右不对称问题的发现与解决 ........................................- 10 -

3.3 编码器的安装 ............................................................................ - 10 -

3.4 摄像头安装 .................................................................................- 11 -

3.4.1 偏振镜的使用......................................................................- 12 -

3.4.2 摄像头的标定......................................................................- 12 -

3.5 摄像头的选用 .............................................................................- 13 -

3.6 红外接收装置 .............................................................................- 14 -

第十届“飞思卡尔”杯全国大学生智能汽车竞赛技术报告

3.7 防止静电复位 .............................................................................- 15 -

3.8 本章小结.......................................................................................- 15 -

第4章 硬件电路系统设计及实现 ...................................... - 16 -

4.1 硬件设计方案 ............................................................................- 16 -

4.2 电源稳压......................................................................................- 17 -

4.3 电机驱动......................................................................................- 18 -

4.4 图像处理部分 ............................................................................- 19 -

4.4.1 摄像头升压电路 .............................................................- 19 -

4.4.2 视频分离电路 .................................................................- 19 -

4.4.3 硬件二值化 .....................................................................- 19 -

4.5 灯塔电路......................................................................................- 21 -

4.6 本章小结......................................................................................- 21 -

第5章 系统软件设计 .............................................................. - 22 -

5.1 软件流程图 ...............................................................................- 22 -

5.2 算法新思路 ...............................................................................- 23 -

5.2.1中心线提取 .......................................................................- 23 -

5.2.2 直角检测........................................................................... - 24 -