本科生毕业论文(设计)51单片机实现车辆超速报警器设计1目录中文摘要.......................................................................................................................2英文摘要.......................................................................................................................3引言..............................................................................................................................41.设计方案的选择.......................................................................................................51.1设计要求........................................................................................................51.2方法选择.........................................................................................................52.测速传感器的确立....................................................................................................62.1测速传感器的选择.........................................................................................62.2测速传感器的工作原理.................................................................................63.系统硬件设计............................................................................................................93.1系统总体方框图.............................................................................................93.1.1电源单元..............................................................................................93.1.2光电耦合器单元................................................................................103.1.3蜂鸣报警单元...................................................................................103.2电路的连接...................................................................................................113.2.1测速传感器与单片机连接................................................................113.2.2单片机与报警器连接........................................................................113.2.3单片机与显示电路连接....................................................................123.2.4单片机与按键电路的连接................................................................134.系统软件设计.........................................................................................................144.1系统流程图...................................................................................................144.2主程序...........................................................................................................154.3初始化程序...................................................................................................154.4按键扫描程序...............................................................................................16结束语..........................................................................................................................17参考文献.....................................................................................................................18致谢..............................................................................................................................19附录..............................................................................................................................20251单片机实现车辆超速报警器设计摘要:近年来,随着现代汽车控制技术和高速公路的飞速发展,在世界各国特别是发达国家,无论是运输业还是个人,汽车都已成为长距离运输的主要交通工具。在高速公路上长时间高速行驶时,驾驶员长时间操纵加速踏板而得不到活动,容易造成疲劳。在限速路段总会出现超速现象,对他人和自己都造成安全隐患。本设计就是为了解决这一问题而诞生的。本设计从驾驶员自身安全角度出发,设计了一种检测车辆超速的报警系统。该报警系统允许驾驶员通过自带键盘设置本车辆安全行驶的最高速度,当车辆处于行驶状态中,该系统通过速度传感器时刻监测机动车辆速度。当发现车辆速度超过驾驶员设置的最高值时,蜂鸣器开始报警,提醒驾驶员减速。在实时检测和自动控制的单片机应用系统中,单片机往往是作为一个核心部件来使用。此设计就是一种利用51单片机对机动车超速行驶情况进行蜂鸣报警和灯光报警的系统。该系统结构简单,可靠性高,操作方便,可广泛应用于摩托车、汽车等机动车辆。该设计详细介绍了系统的总体设计方案,给出了界面模块与89C51接口电路,系统硬件电路及外围设计电路,最后介绍了软件设计方法度程序流程图。通过LED显示出来。关键字:单片机;汽车超速;传感器;报警;LED显示3TheDesignoftheIntelligentAlarmSysteminControllingtheAutomobileSpeedAbstract:Inrecentyears,withtherapiddevelopmentofmodernautomotivecontroltechnologyandhighway,inthewholeworldespeciallydevelopedcountries,whetheritistransportorpersonal,vehicleshavebecomeamajormodeoftransportforlongdistancetransport.Inalongtimeathighspeedonthehighway,thedriverforalongtimetomanipulatetheacceleratorpedaltobedeprivedoftheactivitieslikelytocausefatigue.Speedingphenomenoninthespeedlimitsectionmaycausesecurityrisk.Thisdesigncouldsolvethisphenomenonwell.Thisdesignisamicroprocessorcontrolledspeedalarmsystem.Alarmsystemstodetectspeedingvehiclesfromthedriver'sownsafetypointofview.Thealarmsystemallowsthedrivertosetthemaximumspeedofthisvehiclesafedrivingwhenthevehicleisinrunningstateusekeyboard.Whenthevehiclespeedexceedsthehighestvaluesetbythedriver,thebuzzeralarmtoalertthedrivertoslowtoachievethepurposeofproactive.Inreal-timedetectionandautomaticcontrolofmicrocomputerapplicationsystem,themicro-controllerisoftenusedasacorecomponentto.Thisdesignisa51MCUmotorvehiclespeedingalarmbuzzerandlightalarmsystem.Thesystemissimplestructure,highreliability,easyoperation,canbewidelyusedinmotorcycles,carsandothermotorvehicles.Thedesigndescribestheoveralldesignofthesystem,giventhe89C51MCUinterfacemoduleandinterfacecircuit,thesystemhardwarecircuitandtheexternaldesignofthecircuit,andfinallyintroducedtheprogramflowchartoftheso