摘 要
随着我国经济的快速发展,交通运输车辆及私家用车的不断增加,不可避免的交通问题瞬时成为人们关注的问题。其中由于泊车事故发生的频率高,已引起了社会和交通部门的高度重视。泊车事故发生的原因是多方面的,造成泊车时的事故率远大于汽车正常行驶时的事故率,尤其是非职业驾驶员以及女性更为突出。而泊车事故给车主带来许多麻烦,不仅经济上,更有人身伤害,例如撞上别人的车,如果伤及儿童更是不堪设想,基于此基础,汽车高科技产品中,专为汽车泊位设置的“汽车泊车辅助系统”应运而生,汽车泊车辅助系统的加装可以解决司机的不少麻烦,大大降低了泊车事故的频率。
由于超声波指向性强,能量消耗缓慢,在介质中传播的距离较远,因而超声波经常用于距离的测量。利用超声波检测往往比较迅速、方便、计算简单、易于做到实时控制,并且在测量精度方面能达到工业实用的要求。本系统工作过程中超声波发射器发出一系列的脉冲信号,由单片机对接收的信号依据时间差进行处理,自动计算出车与障碍物之间的距离。超声波测距原理简单,成本低,制作方便,但其传输速度受天气影响较大,不能精确测距;因此大都用于汽车倒车雷达等近距离测距中本文根据声波在空气中传播反射原理,以超声波换能器为接口部件
该设计由超声波发射模块、信号接收模块、单片机处理模块、数码显示以及声光报警显示模块等部分组成,文中详细介绍了测距器的硬件组成、检测原理、方法以及软件结构。接收电路使用NE5532及LM311芯片对回波信号进行整波,对衰减后的信号进行了放大和整波,更好的实现了超声波的接受,对单片机提供外部中断信号。
关键词:超声波;报警;AT89S52;设计;调试
ABSTRACT
With the rapid development of our economy, transportation vehicles and private cars, inevitably increase traffic problems instantaneous become people concern. The accident happened because of high frequency meter has attracted social and communications departments are highly valued. Parking the cause of the accident is various, the accidents caused by parking when normally running far outweigh its car accident rates, especially the female driver and nonprofessional is more prominent. And parking accident brings a lot of trouble for owners, not only economically, more personal injury, such as hitting someone else's car, if injury and children is unimaginable, based on this foundation, car high-tech product, designed for car parking garages Settings "car auxiliary system" appeared, car parking auxiliary system can solve the driver with a lot of trouble, and greatly reduce the frequency of parking accident.
Due to the strong ultrasonic directivity slowly, and energy consumption in a medium transmission distance is farther, thus ultrasonic often used for distance measurement. Using ultrasonic detection tend to be quick, convenient, simple calculation, easy to achieve real-time control, and the precision in the measurement of industrial practical requirement can achieve. This system work process issued a series of ultrasonic pulse signal transmitter, by SCM according to receive the signal processing, automatic calculation lag between the distance between the car and the obstacles. Ultrasonic ranging principle, low cost, simple production convenient, but its transmission speed greatly influenced by the weather, not accurate location; So mostly used in automobile reverse radar etc close ranging according to airborne sound in ultrasonic transducer, reflected in the principle for interface components
This design by ultrasound module, the signal receiving module and single-chip microcomputer processing module, digital display and the acousto-optic alarm display module components, this paper introduces in detail the range finder hardware composition, measuring principle, method and software structure. Receiving circuit NE5532 and LM311 chips used to echo signal of the wave, the attenuation of signal amplifier and the whole wave, better realize the ultrasound accepted, the SCM provide external interrupt signal.
Keywords: ultrasonic; Alarm; AT89S52 devices; Design; debugging
目 录
摘要………………………………………………………………………………………I
Abstract…………………………………………………………………………………II
第1章 绪论………………………………………………………………………………1
1.1 课题的研究目的…………………………………………………………………1
1.2 课题的的研究现状………………………………………………………………2
1.3课题主要内容……………………………………………………………………3
第2章 汽车泊车辅助系统工作原理及硬件选择………………………………4
2.1 汽车泊车辅助系统工作原理……………………………………………………4
2.2超声波测距原理………………………………………………………………4
2.3单片机控制芯片………………………………………………………………5
2.4超声波发射与接收芯片……………………………………………………8
2.5本章小结…………………………………………………………………………10第3章 泊车辅助系统电路设计……………………………………………………11
3.1超声波发射电路…………………………………………………………………11
3.2超声波接收电路…………………………………………………………………11
3.3报警电路…………………………………………………………………………12
3.4显示电路…………………………………………………………………………13
3.5 本章小结…………………………………………………………………………14
第4章 软件设计………………………………………………………………………15
4.1汽车泊车辅助系统测距的算法及系统程序设计………………………15
4.2主程序…………………………………………………………………………16
4.3超声波发生子程序……………………………………………………………18
4.4超声波接收中断子程序…………………………………………………………19
4.5显示子程序………………………………………………………………………19
4.6本章小结………………………………………………………………………23
第5章 各硬件单元的焊接及系统整体测试与调整……………………………24
5.1系统硬件焊接………………………………………………………………24
5.2系统硬件的测试………………………………………………………………25
5.3系统软件调整……………………………………………………………………36
5.4 本章小结…………………………………………………………………………28
结论………………………………………………………………………………………29
参考文献…………………………………………………………………………………30
致谢………………………………………………………………………………………31
附录………………………………………………………………………………………32
附录A 英文文献与中文参考译文…………………………………………………32
附录B 整机原理图…………………………………………………………………39
附录C实物效果图…………………………………………………………………42
附录D材料清单……………………………………………………………………44
附录E 源程序………………………………………………………………………46
第1章 绪 论
1.1课题研究目的
随着我国经济的快速发展,交通运输车辆及私家用车的不断增加,不可避免的交通问题瞬时成为人们关注的问题。其中由于泊车事故发生的频率高,已引起了社会和交通部门的高度重视。泊车事故发生的原因是多方面的,造成泊车时的事故率远大于汽车正常行驶时的事故率,尤其是非职业驾驶员以及女性更为突出。而泊车事故给车主带来许多麻烦,不仅经济上,更有人身伤害,例如撞上别人的车,如果伤及儿童更是不堪设想,基于此基础,汽车高科技产品中,专为汽车泊位设置的“汽车泊车辅助系统”应运而生,汽车泊车辅助系统的加装可以解决司机的不少麻烦,大大降低了泊车事故的频率。由于存在视觉盲区,无法看清车附近状况,司机在泊车时很容易发生事故。为了减少带来的损失,需要有一种专门帮助司机安全泊车的装置。目前市场上用于辅助司机泊车的装置主要有:语音告警装置、后视系统以及倒车雷达等。语音告警装置用于播放提示语以提醒车后的行人注意避让正在泊车的汽车。这种装置价格便宜且使用方便,缺点是只能对车后的行人起告警作用,对于其他障碍物则不起作用,所以其应用范围有限。后视系统是由视频捕捉装置和视频播放装置组成,通过视频司机可以很直接地看到车后的障碍物。由于这类装置的价钱较高,目前还没有普及。
汽车泊车辅助系统,是汽车泊车安全辅助装置,能以声音或者后视镜的显示通告司机车附近的状况,解除了司机泊车和启动车辆时前后左右探视所引起的
