1、 基于单片机的超声波测距倒车雷达设计基于单片机的超声波测距倒车雷达设计 The design of Ultrasonic ranging reverse radar based on Singlechip 系(院)名称: 专业班级: 学生姓名: 学生学号: 指导教师姓名: 指导教师职称: 2011 年 5 月 目目 录录 摘 要 . Abstract . 引 言 .1 第一章 方案论证及选择 .2 1.1 微处理器选择 2 1.2 测距传感器选择 . 2 1.3 语音报警器的选择 . 3 1.4 显示子系统的设计 . 3 第二章 超声波测距雷达工作原理 4 2.1 超声波传感器介绍 . 4 2
2、.1.1 超声波传感器的特性 6 2.2 超声波测距的原理及实现 7 第三章 硬件设计.8 3.1 系统总体结构框图 . 8 3.2 AT89C51 单片机. 8 3.3 电源电路 11 3.4 时钟电路 12 3.5 复位电路 12 3.6 超声波测距模块 HC-SR04 . 13 3.7 74HC573 芯片 15 3.8 数码管显示及报警电路设计 16 第四章 系统软件设计 . 19 4.1 系统主程序的设计 . 19 4.2 中断处理程序的设计 . 21 4.3 测距模块的设计 . 22 4.4 显示及报警模块的设计 . 22 结 论 . 24 致 谢 . 25 参考文献 26 附 录
3、 . 27 附录 A:系统总电路图 . 27 附录 B:部分源程序 . 28 I 基于单片机的超声波测距倒车雷达设计基于单片机的超声波测距倒车雷达设计 摘要摘要:随着我国经济飞速发展,越来越多的人拥有了自己的汽车,同时由泊车和倒车所引 发的事故也越来越多。这些事故常常给驾驶员带来许多麻烦,因此,有助于驾驶员泊车和 倒车的倒车雷达应运而生。倒车雷达,是汽车泊车安全辅助装置,能以声音或者更为直观 的显示告知驾驶员周围障碍物的情况。本文设计了一种利用超声波测距原理研究的高性价 比倒车雷达,它可以提醒驾驶员进入警戒区域,同时进行声光报警。无须占用司机的视觉 资源,使司机可以把全部注意力用于观察车前及车
4、旁的路况。超声发射部分由 AT89C51 单片机产生 10us 的高电平信号,触发测距模块;系统接收部分由接收探头拾取反射回来的 信号,当接收电路接收到反射信号就中断 AT89C51 计数器停止计数,从而得到超声波从发 射到接收信号的时间差,进而计算出车与后方障碍物之间的距离,指导司机安全倒车。 关键词关键词:倒车雷达 超声波 单片机 声光报警 II The design of Ultrasonic ranging reverse radar based on Singlechip Abstract:Along with the rapid development of economy of
5、our country, more and more people have their own cars, as well as the parking and reversing the accident caused will be increasingly. These accidents often bring many troubles to drivers, so, the reverse radar of help drivers parking and of reversing arise at the historic moment. Reverse radar, the
6、automobile parking safety auxiliary devices, more intuitive to told the driver of around obstacles by voice or display. This paper designs a kind of using ultrasonic ranging principle research high performance-to-price ratio reverse radar;it can remind drivers entered exclusionary area, simultaneously the acousto-optic alarm. The radar need not occupy the drivers visual resources, and can make the driver putting the whol