摘要传统的汽车照明系统主要由前照灯系统,信号照明系统,车内照明系统三大部分组成。随着科技的进步,传统的照明系统也不断的发展,但实际的使用中,传统的前照灯系统依然存在着诸多问题,在面对复杂的路况,特别汽车在夜间弯道行驶时,存在着巨大的安全隐患。因此,如何使传统汽车照明智能化,驾车更加安全就成为一个十分紧迫而又有重大现实意义的课题。针对传统的汽车照明灯夜间行驶在弯道时无法调节照明角度、在弯道内侧易出现盲区等情况,提出了一种前照灯弯道自适应照明控制系统,以提高夜间行车安全性。该系统是一种以单片机为核心设计的汽车自适应前照灯左右转向计算机控制系统,当单片机接收到车速信号和方向盘转角信号后,判断车灯是否应该转动,若需要转动,则查表运算,把处理后的信息传给驱动执行单元,控制执行机构做出相应动作。硬件主要由车速信号采集部分、转向信号采集部分、中央控制单元、驱动执行单元四部分组成,分别负责车速信号采集;方向盘转角信号采集;运算判断;控制车灯转角。软件部分,设计了车速信号采集模块,方向盘转角采集判断模块,步进电机控制模块,主程序模块,实现了一个可根据车速和方向盘转角信号左右转向的控制系统。关键词:自适应照明;单片机;车速;方向盘转角;盲区。ABSTRACTTraditionalautomotiveheadlamplightingsystemconsistsofsystem,signallighting,interiorlightingsystemhasthreemajorcomponents.Astechnologyadvances,thetraditionallightingsystemalsocontinuestodevelop,buttheactualuse,thetraditionalheadlampsystem,manyproblemsstillexist,inthefaceofacomplexroad,especiallywhenthecardrivingatnightturn,thereisahugesecurityrisk.Therefore,howtomakethetraditionalautomotivelightingintelligent,moresecuredrivinghasbecomeaveryurgentandhavegreatpracticalsignificanceoftheissue.Traditionalautomotivelightingfornightdrivinginthecornerscannotbeadjustedwhenthelightingangle,theinsideofthebendandsopronetoblindspots,alightingcontrolsystem,adaptiveheadlampsturninordertoenhancenightdrivingsafety.Thesystemisakindofautoadaptivedesignwithsingle-chipmicrocomputerasthecoreoftheheadlightturnedaroundthecomputercontrolsystem,whentheMCUreceivessignalofvehiclespeedandsteeringanglesignallights,judgeshouldturn,iftheneedtorotate,thenthetablesearchoperation,theprocessedinformationtodrivetheexecutionunit,controlactuatortomaketheappropriateaction.Thehardwareismainlycomposedofspeedsignalacquisitionpart,turnsignalacquisitionpart,acentralcontrolunit,drivetheexecutionunitiscomposedoffourparts,areresponsibleforthespeedsignalacquisition;steeringwheelanglesignalacquisition;operationaljudgment;controllightangle.Thepartofsoftware,thedesignspeedsignalacquisitionmodule,steeringwheelangleacquisitionjudgmentmodule,steppermotorcontrolmodule,mainprogrammodule,therealizationofasteeringwheelanglesignalaccordingtothespeedanddirectionofthecontrolsystem.Keywords:Adaptivelighting;MCU;Speed;Hand-WheelAngle;Blindzone.目录摘要..............................................................................................................IABSTRACT........................................................................................................II第1章绪论.......................................................................................................11.1汽车自适应前照灯的产生的背景..........................................................................11.2AFS的国内外发展趋势及现状...............................................................................11.3课题的主要研究内容..............................................................................................4第2章系统整体方案设计..............................................................................62.1系统的总体构成......................................................................................................62.2系统基本功能..........................................................................................................62.3系统的工作原理......................................................................................................62.4系统计算理论基础..................................................................................................72.5本章小结................................................................................................................12第3章系统硬件设计.....................................................................................133.1控制系统总体结构设计........................................................................................133.2硬件系统主要构件................................................................................................133.2.1嵌入式微处理器......................................................................................................133.2.2STC89C52芯片外围基本电路模块.....................................................................143.2.3电源模块....................................................................................................................153.2.4车速信号传感器模块.............................................................................................163.2.5AD转换模块..............................................................................................................163.2.6步进电机驱动模块..................................................................................................173.2.728BYJ-48步进电机................................................................................................183.3本章小结................................................................................................................18第4章系统软件设计.....................................................................................194.1软件系统总体结构................................................................................................194.2车速信号检测模块................................................................................................204.3步进电机执行模块..................