文档介绍:第七届“飞思卡尔”杯全国大学生
智能汽车竞赛
技术报告
学校:安徽大学
队伍名称:飞跃队
参赛队员:刘杨胡维轩郭乾丽
带队教师:刘永斌阎庆
关于技术报告和研究论文使用授权的说明
本人完全了解第七届“飞思卡尔”杯全国大学生智能汽车竞赛关保留、使用技术报告和研究论文的规定,即:参赛作品著作权归参赛者本人,比赛组委会和飞思卡尔半导体公司可以在相关主页上收录并公开参赛作品的设计方案、技术报告以及参赛模型车的视频、图像资料,并将相关内容编纂收录在组委会出版论文集中。
参赛队员签名:
带队教师签名:
日期:
摘要
本文介绍了安徽大学摄像头组“飞跃队”在准备参加第七届“飞思卡尔杯”全国智能车大赛获得的成果和创新。智能车的车模采用大赛组委会统一提供的A型车模,以飞思卡尔公司的16位单片机MC9S12G128为核心控制器,选择CodeWarrior IDE 。通过一个CMOS摄像头检测模型车的运动位置和运动方向,光电编码器检测模型车的速度,PID控制算法调节驱动电机的转速和舵机的方向,完成对模型车运动速度和运动方向的闭环控制。实验结果表明,系统设计方案可行。
关键词:MC9S12G128,CMOS摄像头,PID
Abstract
This article describes the Anhui University on optical team of "Flying" of JUST in preparing for the sixth "Freescale Cup" smart car racing. We are using A-car model as the car model which is provided mittee, and Freescale's 16-bit microcontroller MC9S12G128 as the core controller, selecting the CodeWarrior IDE as the software development environment. The micro-controller use a Cmos image sensor to botain lane iage information,then adjusts the model car`s moving position and direction. An inferred sensor measure the car`s moving speed. We use PID control mathod to adjust,the rotate speed of driving electromotor and direction of steering ,plete the closed-loop control to the speed and result of experiment indicate that the design scheme of system is doable
KEYBOARD: MC9S12G128,CMOS image sensor,PID
目录
摘要 III
ABSTRACT IV
目录 2
引言 1
概述 1
1
1
第二章系统设计 2
系统方案概述 2
2
第三章机械结构设计 3
车体机械建模 3
3
舵机S3010内部结构 4
5
7
7
车高 7
7
前轮倾角的调整 7
7
8
测速的实现与固定 8
模型车外形 8
第四章硬件电路设计 10
12
12
12
第五章系统软件设计 13
软件设计概要 13
各功能模块设计 14
15
模块 15
、脉冲累加器模块 16
16
16
18
20
20
控制 20
参数的整定 20
速度控制 21
转角控制 22
5