1、基于基于 MCSMCS- -5151 单片机汽车倒车雷达设计单片机汽车倒车雷达设计 摘摘 要要 随着汽车技术的发展,汽车的性能在不断的提高,人们对它的安全性要求也越来越 高。为了提高汽车的倒车安全性,本文设计了一种基于 MCS-51 单片机的超声波倒车雷 达系统。 本系统以芯片 AT89S51 为核心,包括超声波发射模块、超声波接收模块、LED 显示 模块、扬声器报警模块。工作时,超声波发射器不断发射出一系列连续脉冲,给测量逻 辑电路提供一个短脉冲,最后由信号处理装置对接收的信号依据时间差进行处理,自动 计算出车与障碍物之间的距离。LED 实时显示距离,扬声器根据距离的大小发出不同频 率的声音
2、报警,这样汽车距离障碍物的情况清楚的展现在驾驶员眼前。从而提高了汽车 的倒车安全性。 关键词关键词:超声波 倒车雷达 AT89S51 LED The Design of Vehicles Parking Distance Control System Abstract With the development of automobile technology,Vehicles performance is better than ever,the requirements of safety what people want is higher and higher .In order to
3、improve the safety of reversing car,This paper design a Parking Distance Control based on MCS-51 This system used AT89S51 as the core, it includes the circuit of launching ultrasonic、 the circuit of receiving ultrasonic、the circuit used to display and the circuit used to alarm by speakerThe ultrason
4、ic transmitter continuously emits a series of consecutive pulses to the measurement of logic circuits to provide a short pulse. Finally, signal processing devices based on the received signal for processing the time difference, automatic calculation of turnout and the distance between obstacles. LED
5、 real-time displaying the distance,the speaker according to distance rang to alarm,so it clearly shows the distance between car and obstaclesThus the safety of reversing car has improved Key word:ultrasonic Parking Distance Control AT89S51 LED 目录目录 1 引言 1 1.1 问题的提出 1 1.2 倒车雷达简介和发展 . 1 1.3 任务与分析 2 2
6、系统方案设计 3 2.1 倒车雷达系统方案设计 3 2.2 方案对比与选择. 3 3 系统硬件设计 4 3.1 芯片及主要元件的选择 4 3.2 芯片简介. 4 3.3 外围电路设计 7 3.4 超声波电路 . 8 3.4.1 超声波发射电路设计 . 8 3.4.2 超声波接收电路设计 10 3.5 显示电路设计.11 3.6 报警电路设计.11 4 系统软件设计 .12 4.1 主程序设计 .12 4.2 初始化程序设计13 4.3 显示程序设计 .14 4.4 报警程序设计 .15 4.5 中断程序设计 .16 5 系统调试 18 5.1 电路调试.18 5.1.1 布板原则 18 5.1.2 电路板测试 .18 5.2 Proteus 电路调试 .19 5.3 程序调试.19 5.4 Proteus 仿真调试 .20 5.5 实物调试22 结论 23 参考文献 .25 致谢 26 附录 27 1 1 1 引言引言 1.1 1.1 问题的提出问题的提出 随着汽车技术的发展,近年汽车数量急剧增加,据相关调查统计,15的汽车碰撞 事故是因倒车时汽车的后