本科毕业论文基于飞思卡尔16位单片机电磁型智能小车的设计BASEDONFREESCALE16-BITMICROCONTROLLERSMARTCARDESIGN学院(部):机械工程学院专业班级:机设09-12学生姓名:项先亮指导教师:刘齐更老师2013年月日基于飞思卡尔16位单片机电磁型智能小车的设计摘要本文是以飞思卡尔智能车竞赛为背景设计的一个智能小车运行系统。本系统是以飞思卡尔MC9S12XS128单片机为核心通过传感器识别道路的智能车控制系统。本文着重阐述了道路信息的获取,处理和识别过程,并设计出PID控制器,运用有效的控制算法对智能小车进行控制,使智能小车能准确快速地对道路进行跟踪。该系统通过光电传感器获取当前道路信息,通过有效的数字图像处理算法对原始图像进行处理,对主要的有用信息进行分析和提取。在智能小车运动的控制中,对小车的转向和速度采用PID控制算法,控制表来对智能小车进行转向和速度控制。关键词:单片机,智能小车,PID控制算法BasedonFreescale16-bitmicrocontrollersmartcardesignAbstractItisbasedonfreescaleintelligencecarcompetitionasthebackgrounddesignofasmartcarrunningsysteminthisarticle.ThissystemisbasedonfreescaleMC9S12XS128single-chipmicrocomputerasthecorethroughthesensorstoidentifyroadintelligentcarcontrolsystem.Thearticlefocusesontheacquisition,processingandrecognitionofthetargetpathinformation.TheFuzzycontrollerusinganeffectivecontrollingalgorithmforintelligentvehiclecontrolmakesthesmartcartracktheroadfastandaccurate.WiththeCCDcamerathesystemobtainsthecurrentroadinformationanddealwiththeoriginalimage,themainusefulanalysisandinformationextractionthrougheffectivedigitalimageprocessingalgorithms.Accordingtothemotionrulesoftheintelligentvehicle,fuzzycontrolalgorithmandfuzzyPIDalgorithmcanbeappliedtocontrolthesteeringandspeedoftheintelligentvehicleseparately.Fuzzycontrolrulescanbegeneratedaccordingtotherequirementofthepathtracking,whichisfollowedbythegenerationofthefuzzycontroltable,thenthesteeringandmotionspeedoftheintelligentvehiclecanberegulatedafterqueryingthefuzzycontroltableaccordingtothepathinformationwhichisalreadyinquired.KEYWORDS:mcu,smartcar,PID,目录摘要(中文)------------------------------------------------------------------------------I摘要(外文)-----------------------------------------------------------------------------II1、绪论-------------------------------------------------------------------------------------11.1智能汽车赛事概况-------------------------------------------------------------11.2课题研究现状-------------------------------------------------------------------11.3本课题的研究内容-------------------------------------------------------------22、智能车原理----------------------------------------------------------------------------32.1直立行走任务分解-------------------------------------------------------------32.2车模直立控制-------------------------------------------------------------------42.3车模速度控制-------------------------------------------------------------------82.4车模方向控制------------------------------------------------------------------102.4.1道路电磁中心线的偏差检测----------------------------------------102.4.2电机差动控制----------------------------------------------------------102.5车模倾角测量------------------------------------------------------------------112.5.1加速度传感器----------------------------------------------------------112.5.2角速度传感器-陀螺仪------------------------------------------------123、智能车硬件设计与软件设计------------------------------------------------------163.1...