摘要当今时代,经济的快速发展提高了人民生活水平,汽车成为日常生活中必需的代步工具。汽车数量的增多导致了各种交通事故。保持汽车行车的安全距离是避免交通事故的有效手段。因此本系统设计了一款汽车行车安全距离监测系统。本次设计的汽车行车安全距离监控系统主要是以STC89C52为主要核心,整合其他硬件设施,实现单片机通过超声波测距模块测得距离,将距离显示在屏幕上。用户可以通过按键设置安全距离阈值,一旦实测距离小于了预设阈值,那么系统就会驱动报警,提醒安全行车。这次设计是将高精尖技术生活化的一次尝试,在整个作品的设计、制作、调试过程中,对单片机又有了进一步的理解,对超声波测距、蜂鸣器等也有了更深入的了解。经过调试本系统具有较好的实用性,可以满足实际需求。关键词:汽车行车安全距离;单片机;超声波测距;报警ABSTRACTNowadays,withtherapiddevelopmentofeconomy,people'slivingstandardhasbeenimproved.Theincreaseinthenumberofcarsleadstoallkindsoftrafficaccidents.Keepingasafedistanceisaneffectivewaytoavoidtrafficaccidents.SothissystemThedesignofthevehiclesafetydistancemonitoringsystemismainlybasedonSTC89C52asthemaincore,theintegrationofotherhardwarefacilities,therealizationofsinglechipmicrocomputerthroughtheultrasonicrangingmodulemeasureddistance,distancedisplayonthescreen.Userscansetthesafedistancethresholdbypressingthebutton.Oncethemeasureddistanceislessthanthepresetthreshold,thesystemwilldriveanalarmtoremindsafedriving.Thisdesignisanattempttoturnthehigh-precisiontechnologyintolife.Inthedesign,productionanddebuggingprocessofthewholework,Ihaveafurtherunderstandingofthesingle-chipmicrocomputerandhaveadeeperunderstandingofultrasonicrangingandbuzzer.Afterdebuggingthesystemhasgoodpracticability,canmeettheactualneeds.Keywords:safedrivingdistance;Singlechipmicrocomputer;Ultrasonicranging;alarm目录摘要.............................................................................................................................................IABSTRACT..............................................................................................................................II1绪论.........................................................................................................................................11.1研究背景.........................................................................................................................11.2研究意义.........................................................................................................................11.3研究内容.........................................................................................................................12系统方案选择与整体设计.....................................................................................................12.1系统方案选择.................................................................................................................12.2系统整体设计.................................................................................................................43系统硬件设计.........................................................................................................................53.1单片机系统设计.............................................................................................................53.2超声波模块设计.............................................................................................................73.3按键模块设计....................................