999精品在线视频,手机成人午夜在线视频,久久不卡国产精品无码,中日无码在线观看,成人av手机在线观看,日韩精品亚洲一区中文字幕,亚洲av无码人妻,四虎国产在线观看 ?

Design of car reverse anti- collision warningsystem based on AT89S52

2015-03-09 03:32:16YangshanTANGLinaGEDaohuaIAPeifeiYANG
機(jī)床與液壓 2015年6期
關(guān)鍵詞:汽車系統(tǒng)設(shè)計(jì)

Yang-shan TANG,Li-na GE,Dao-hua X IA,Pei-fei YANG

(1 Automobile& Transportation College,Liaoning University of Technology,Jinzhou 121001,China)

(2 ZhongDing Cushion Technologies Company Limited in Anhui Province,Anhui242300,China)

Design of car reverse anti- collision warningsystem based on AT89S52

Yang-shan TANG1*,Li-na GE1,Dao-hua X IA1,Pei-fei YANG2

(1Automobile& Transportation College,Liaoning University of Technology,Jinzhou 121001,China)

(2ZhongDing Cushion Technologies Company Limited in Anhui Province,Anhui242300,China)

In order to reduce the car scraping collision accidents caused by bad“rear view”when reversing,a car reverse anti-collision warning system is designed.This system takes AT89S52 single chip as themain control unit,and itadopts the HC-SR04 ultrasonic rangingmodule to realize the non-contact distancemeasurement.On the basis ofmatching the hardware,we designed the circuit and software,and carried out the test experiment,analyzed the ranging error.This system detection range can be 2~400 cm,ranging accuracy is up to 3mm,and it can satisfy the requirement of the early warning of a car when reversing in the narrow space.

Microcontroller,Anti-collision warning system,Ultrasonic

*Corresponding author:Yang-shan TANG,Professor.

E-mail:tysby_jz@163.com

1 In troduction

In recent years,with the rapid development of automobile industry and the continuous improvement of people’s living standard,the amount of automobiles increases rapidly in our country,which caused public places such as streets,parking lots,garages and other public places become more and more crowded,when reversing in the narrow place,the driver should not only look forward,but also look back,with little carelessness,an automobile tail scraping collision accident will happen[1].Related survey data statistics show that about15%of the reverse scraping collision accidentswere due to bad rear sight when reversing.Car reversing radar can use voice promptand distance displaying to alert driver the obstacles of automobile tail,it is convenient for drivers to back cars,but the detection range of back-draft radar on the currentmarket is shorter and the precision is not high[2],so they can’t advance the time for the driver to provide a larger reaction time,and they also have difficulty in helping the driver stop safety effectively within a small space.

In view of the above-mentioned facts,a new type of car reversing anti-collision warning system which has wider detection range and highermeasuring precision was designed in this paper.The whole system has the functions of distance display,light and sound alarm.

2 U ltrasonic ranging m odu les

The ultrasound refers to the waves with more than 20 kHz vibration frequency.As a kind of special sound wave,ultrasound has the characteristics of good direction,small attenuation,good penetration and reflection ability,etc.The underlying principle of ultrasonic ranging is:ultrasonic generator sends ultrasonic signals at a certainmoment,and the ultrasonic signals are reflected back after encountering obstacles in air,and then the echo signal is received by ultrasonic receiver[1].As long as we measure the time from launching ultrasonic signal to receiving echo signal,we can calculate the distance between obstacles to sound source,namely:

In the formula:d is thedistance between obstacles to sound source,s is the journey that ultrasonic wave goes there and back,c is the speed of ultrasonic in air,t is the time from launching ultrasonic signal to receiving the echo signal.

The HC-SR04 ultrasonic rangingmodule which this system adopts has relatively stable ranging performance,it has a highermeasurement accuracy,it can achieve the function of2-400 cm non-contact distance measurement,its ranging accuracy is up to 3 mm and comparable to foreign ultrasonic rangingmodule,such as SRF05,SRF02 and so on[3].Fig.1 is the physical figure of HC-SR04 ultrasonic ranging module,including ultrasonic transceiver and related control circuit.

Fig.1 Physical figure o f HC-SR04 u ltrasonic ranging m odu le

2.1 The basic operation principle

Use the Trig mouth to trigger range,the signal of high level signal to 10 ormore us is given.

The internal HC-SR04 automatically gives out8 periodic levels with 40 kHz,and automatically detects whether there is a echo signal;

If echo signal dose exist,a high levelwill be output by Echomouth,the duration of high level is the time from launch ultrasonic to return it.Therefore,according to formula(1),the measuring distance=(the duration of high level* sound velocity)/2.

2.2 Themain technical parameters

Themain technical parameters of the HC-SR04 ultrasonic rangingmodule is shown in Table 1.

2.3 The distance sequence diagram

As shown in Fig.2,we only need to provide a trigger pulse signalwhich is greater than or equal to 10us from Trigmouth,the internal HC-SR04 will automatically send outeight squarewaves of40 kHz and detect whether there is a echo signal.If HC-SR04 detects a echo signal,then a echo signal is output.Therefore,you can wait for the output of high level by Echo mouth,once it output the Echo signal,then open timer timing immediately,when the Echo turns into low electricity,it will shut down timer immediately,then read the value of the timer,this value is the time from launch ultrasonic to return it,according to the equation(1)to calculate the distancemeasurement.

Tab le 1 The m ain technical param eters of the HCSR04 ultrasonic ranging m odu le

Fig.2 Ranging sequence d iag ram o f u ltrasonic ranging m odu le

3 The circuit design of hardware system

The overall structure of the system is shown in Fig.3,which mainly composes 3 parts-the main control unit,the ultrasonic rangingmodule and alarm display module,and it is concretely divided into single chip microcomputer control circuit,ultrasonic transmitting and receiving circuit,digital tube display circuit,indicator light and buzzer alarm circuit and other parts.AT89S52 single-chip microcomputer is the core component of the whole system,it is used to coordinate and control each part of the circuit work[2];Ultra-sonic ranging module adopts HC-SR04 transmit-receive one-piece ultrasonic ranging sensors,itsworking frequency is 40 kHz.Digital tube display module is used to show measure distance;Indicator and buzzer alarm module are used to remind the driver the danger level at this time.

3.1 Design of a single chipmicrocomputerminimum system

The core component of themain control unit system adopts the AT89S52 single chip microcomputer which was produced by ATMEL Company of US.Some car reversing radar system uses AT89C51 and AT89C52 chip as main units[4-5].And this paper uses the AT89S52,which is kind of low power consumption,high performance CMOS8microcontroller,which has8 Kb in system programmable Flashmemory;it can provide faster storage and computing speed and improve the precision and the real-time performance of collision avoidance system effectively.AT89S52 devices use dual-in-line package(DIP)form which has 40 pins.In 40 pins,there are two pins dedicated to the pin ofmain power supply,two external crystals pins,four control pins and thirty-two I/O pins.AT89S52 has the following functions:Flash memory with 8 Kb,datamemory RAM with 256B,program memory ROM with 4 Kb,four 8-bit programmable I/O ports,watchdog timer,two data pointers,three 16-bit timer/counters,one level2 interrupt structure of 6 vector,a full-duplex asynchronous serial communication interface,piece inside crystals timely clock circuit.

Single chip microcomputer minimum system is the most basic circuit for the single-chip computer and its peripherals to run.Single chip microcomputer minimum system mainly consists of four parts,power supply circuit,crystals circuit,reset circuit and program download circuit.

Fig.3 General structure d iag ram o f reverse w arning system

3.1.1 Power supply circuit

Power supply circuit is primarily responsible for providing a stable power supply voltage for the main control unit,ensuring the normal operation of the system.It is responsible for distributing the 5 V supply voltage power which is applied between VCC and VSS pins to the single-chip microcomputer of each functional circuit.

3.1.2 Crystal oscillation circuit and reset circuit

Crystal oscillation circuit,or clock pulse generator,is the time benchmark of single chip microcomputer,and determines its working speed and efficiency and produces the required clock pulse and timing signal of the whole inside chip for normal operation of each functional circuit.One of the most common circuit connection methods is an external crystal oscillator XTAL and two external capacitors C1 and C2,grounded between XTAL1 and XTAL2 pins.Crystal’s circuit connection type is shown in Fig.4.

Reset circuit is used to determinework starting state of single chip microcomputer,such as initializing the state ofmachine to empty state,and thenmaking single chip microcomputer execute a program from the very beginning.The power on resetand hand resetare commonly used,this design uses the hand reset,and its circuit is shown in Fig.4.As long as you press the RESET button,the MCU will turn to RESET state.

Fig.4 Crystal oscillation circuit and reset circuit

3.1.3 Program download circuit

The program download circuit selects MAX232 as chip,which was produced by MAXIM Company.The role of MAX232 is to turn the output TTL level from chip microcontroller into 232 levels which can be received by PC,or to convert the output 232 level from PC into TTL level which can be received by single chip microcomputer.MAX232 chip adopts single power supply of+5 V,only a few external capacitances can finish the transformation from TTL to RS-232 levels[6].The typical RS-232 serial communication circuit is shown in figure 5,T1in and R1outare connected respectively with P3.1 and P3.2 pins of single chip microcomputer,it can achieve level conversion between MCU and PC,finally complete the asynchronous serial communication between the two[3].

Fig.5 Serial comm unication circuit

3.2 Ultrasonic emission circuit and receiving circuit

Ultrasonic transmission circuit is shown in Fig.6.Ultrasonic transmission circuit ismainly composed by the ultrasonic transducer and the reverser 74ALS04,etc.

Ultrasonic receiving circuit is shown in Fig.7.The ultrasonic receiving circuit is mainly composed of ultrasonic receiving probe part,signal amplifying circuit and waveform conversion circuit parts.

Fig.6 U ltrasonic transm itting circuit

Fig.7 The u ltrasonic receiving circuit

3.3 Digital tube display circuit

Distance display part adopts“four-in-one”shared anode digital tube to display,and a dynamic scanning way to drive the LED interface circuit of digital tube.The circuit connection is shown in Fig.8.

Fig.8 Digital tube disp lay circuit

3.4 Alarm circuit

As shown in Fig.9 and Fig.10,system alarm part adopts the combination of LED lightand buzzer alarm.LED warning light signs are divided into red,yellow,and green three colors,which are used to provide light alarm.Alarm buzzer can be divided into prolonged sound and short sound,and it is used to provide sound alarm.When backing distance is larger than 2 m,LED indicator gives a green light,buzzer dose not ring;When backing distance is between 1-2m,LED indicator gives a yellow light,the buzzer gives a long sound alarm at the same time;When backing distance is less than 1 m,the LED indicator gives a red light,the buzzer gives a shortness of alarm at the same time.

Fig.9 Light alarm circuit

Fig.10 Buzzer alarm circuit

4 The software design

System software part uses C programming language to write,and conductsmodular design,mainly including the main program,timer interrupt subroutine,external interrupt subroutine and alarm display subroutine,etc.The design of the application process is shown in Fig.11.

Fig.11 Programm er flow chart

5 Analysis of the experim enting result

Through many real vehicle tests,we found that HCSR04 ultrasonic ranging module realizes accurate range within the scope of30-400 cm,under the condition of random error is eliminated;themaximum error is less than 2%.Compared with other reversing radar,this paper design the back-draft radar and its measuring distance at least increased by more than 60%and the measurement precision has reached the millimeter,it canmeet the demand of the driver’s car reversing.The existence of the error ismainly affected by the influence of temperature ofmeasurement environment;therefore,temperature compensation measures should be used in the practical application to improve the range accuracy of results.The experimental results are shown in Table 2.

Tab le 2 The ranging experim en tal resu lt

Tab le 3 The m ain perform ance com parative experim en tal resu lts o f design p roduct and o ther brand reversing radar

6 Summ aries

In this paper,the design of automobile reverse collision warning system takes AT89S52 single chip microcomputer as main control chip,adopts the HC-SR04 ultrasonic rangingmodule to realize the non-contact distancemeasurement.Experimental results show that the system improves the measurement range and measurement accuracy and achieves expected effect of anti-collision alarm.The system has reasonable design,aswell as good market application value.

Acknow ledgem ents

This paper is supported by Program for Liaoning Excellent Talents in University(No.LJQ2012058).

[1]Zhu Lina.Study of Ultrasound Distance-Measurement Automobile-Reversing Rader Based on Microcontroller[J].Microcomputer Information,2007,23(23):110-111,73.

[2]Su Lin.Design of Ultrasonic Rangefinder Based on HCSR04[J].Science & Technology Information,2012(3):25.

[3]Wang Xingwei.The Research of Automobile’s Vertical Anti-Collision Warning technology based on DSP[D].Zibo:Dissertation for the Master’s Degree in Engineering of Shan Dong University of Technology,2011,6.

[4]Han Boqi.The research of Parking Distance Control System[D].Harbin:Harbin Institute of Technology,2006.

[5]Wu Lizhen,ZENG Yingshen.Design ofmulti-ultrasonic signal fusion system based on AT89C52[J].Microcomputer Information,2006,22(11):86-89.

[6]Wu Qiong,F(xiàn)ENGWeizhong,MAWenjie.Design and Implementation of the Automobile Reversing Radar System[J].Modern Electronics Technique,2009,5:1.

[7]Wang Xiao Li.Technical Study ofWireless Communication Module Based on nRF905 for Vehicle Anticollision.Advances in Information Sciences and Service Sciences,2013,6(5):749-757.

[8]Xinlu Ma,Yeren Liu,Jiang Cheng.Analytic and Heuristic Methods of Collision Detection for Curve-Moving Vehicle Based on Cooperative Collision Warning System[J].Journal of Convergence Information Technology,2013,2(8):244-253.

汽車倒車防撞的AT89S52微控制報(bào)警系統(tǒng)

唐陽(yáng)山1*,葛麗娜1,夏道華1,楊培菲2

1.遼寧工業(yè)大學(xué)汽車與交通工程學(xué)院,遼寧錦州 121001
2.安徽中鼎減震橡膠技術(shù)有限公司,安徽宣城 242300

汽車倒車防撞預(yù)警系統(tǒng)可以有效降低汽車倒車時(shí)發(fā)生刮擦碰撞事故的幾率。該系統(tǒng)以AT89S52微處理器為主控制器,采用HC-SR04超聲波測(cè)距傳感器實(shí)現(xiàn)倒車時(shí)后方空間的測(cè)距,在主控單元設(shè)計(jì)和測(cè)距模塊設(shè)計(jì)的基礎(chǔ)上,進(jìn)行了數(shù)據(jù)通信電路設(shè)計(jì),并設(shè)計(jì)了軟件系統(tǒng),最后進(jìn)行了測(cè)試實(shí)驗(yàn)。經(jīng)過實(shí)驗(yàn)數(shù)據(jù)分析,系統(tǒng)探測(cè)距離范圍在2~400 cm,測(cè)距精度達(dá)到3 mm。結(jié)果表明:該系統(tǒng)測(cè)距范圍較大,測(cè)距精度不會(huì)造成對(duì)汽車的損害,能夠滿足汽車在狹小空間內(nèi)的倒車預(yù)警要求。

微控制器;報(bào)警防撞系統(tǒng);超聲波傳感器

10.3969/j.issn.1001-3881.2015.06.007 Document code:A

U461.91

16 September 2014;revised 12 November 2014;accepted 21 December 2014

猜你喜歡
汽車系統(tǒng)設(shè)計(jì)
Smartflower POP 一體式光伏系統(tǒng)
WJ-700無人機(jī)系統(tǒng)
ZC系列無人機(jī)遙感系統(tǒng)
瞞天過海——仿生設(shè)計(jì)萌到家
汽車的“出賣”
連通與提升系統(tǒng)的最后一塊拼圖 Audiolab 傲立 M-DAC mini
設(shè)計(jì)秀
海峽姐妹(2017年7期)2017-07-31 19:08:17
有種設(shè)計(jì)叫而專
Coco薇(2017年5期)2017-06-05 08:53:16
汽車們的喜怒哀樂
3D 打印汽車等
決策探索(2014年21期)2014-11-25 12:29:50
主站蜘蛛池模板: 久久人与动人物A级毛片| 91精品国产91久无码网站| 亚洲精品日产精品乱码不卡| 亚洲人人视频| 精品久久久久久成人AV| 国产成人久视频免费| 亚洲精品天堂自在久久77| AV熟女乱| 欧美无遮挡国产欧美另类| 91小视频在线观看免费版高清| 国产精品一区二区久久精品无码| 亚洲欧美日本国产专区一区| 精品一区二区三区波多野结衣| 四虎影视库国产精品一区| 亚洲欧美在线精品一区二区| 亚洲欧洲日韩综合| 国产自在线播放| 视频一区视频二区中文精品| 91无码网站| 高清国产va日韩亚洲免费午夜电影| 国产成人亚洲无码淙合青草| 亚洲免费福利视频| 国产无码制服丝袜| 亚洲午夜久久久精品电影院| 亚洲午夜福利精品无码不卡 | 亚洲国产无码有码| 国产美女精品一区二区| 亚洲乱码视频| 伊人欧美在线| 亚洲首页在线观看| 亚洲AV一二三区无码AV蜜桃| 亚洲av无码成人专区| 日韩一区精品视频一区二区| 色欲色欲久久综合网| 国产乱人伦偷精品视频AAA| 在线精品自拍| 99尹人香蕉国产免费天天拍| 99久久精品视香蕉蕉| 日本手机在线视频| 国产成人一区| 国产在线麻豆波多野结衣| 成人精品午夜福利在线播放| 亚洲无线国产观看| 91久久大香线蕉| 国产成人精品一区二区不卡| 欧美亚洲国产视频| 欧美精品啪啪一区二区三区| 成人午夜精品一级毛片| 狠狠色香婷婷久久亚洲精品| 亚洲第一黄片大全| 欧美日韩免费在线视频| 国产拍在线| Jizz国产色系免费| 亚洲免费人成影院| 久久综合成人| 免费久久一级欧美特大黄| 欧美中文字幕一区| 国产成人h在线观看网站站| 欧美国产视频| 亚洲一区二区三区国产精品| 97在线视频免费观看| 中国成人在线视频| 伊人久久婷婷| 久久久久中文字幕精品视频| a欧美在线| 九九热在线视频| www.91在线播放| 深夜福利视频一区二区| 亚洲欧美在线综合一区二区三区| 国产精品不卡永久免费| 日韩大片免费观看视频播放| 第一区免费在线观看| 中文字幕在线观| 成·人免费午夜无码视频在线观看| 色网站在线免费观看| 网久久综合| 在线免费亚洲无码视频| 亚洲伊人电影| 国产性生大片免费观看性欧美| 国产色婷婷视频在线观看| 免费无码AV片在线观看中文| 毛片免费网址|