Research and design of reversing radar system based on ultrasonic detection

Publisher:EtherealLightLatest update time:2009-08-31 Source: 今日电子 Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere

The full name of Car Reversing Aid Systems is "reversing collision avoidance radar", also known as "parking aid system". It is a car parking safety auxiliary device that can inform the driver of the surrounding obstacles by sound or more intuitive display, eliminating the trouble caused by the driver looking around when parking and starting the vehicle, and helping the driver eliminate blind spots and blurred vision, thereby improving safety.

How the system works

The reversing radar only needs to work when the car is reversing to provide the driver with information behind the car. Since the car is moving slowly when reversing, it can be considered as stationary compared to the speed of sound, so the influence of the Doppler effect can be ignored in the system. Among many ranging methods, the pulse ranging method only needs to measure the round-trip time between the ultrasonic wave measuring point and the target, which is simple to implement, so this system adopts this method.

As shown in Figure 1, after the driver turns the handle to the reverse gear, the system starts automatically, and the ultrasonic transmitting module emits a 40kHz ultrasonic signal backward. After being reflected by the obstacle, it is collected by the ultrasonic receiving module, amplified and compared. The single-chip microcomputer AT89C2051 sends this signal to the display module and triggers the voice circuit to issue a synchronous voice prompt. When the distance to the obstacle is less than 1m, 0.5m, and 0.25m, different alarm sounds are issued to remind the driver to stop.

Figure 1 System working principle block diagram

Figure 2 Ultrasonic transmission module circuit

Hardware Design

1 Ultrasonic transmission module design

The ultrasonic transmitter consists of two parts: the ultrasonic generating circuit and the ultrasonic transmitting control circuit. The ultrasonic probe (also known as "ultrasonic transducer") uses CSB40T, which can generate ultrasonic waves by software generation method and hardware generation method. The former uses software to generate 40kHz ultrasonic signals, which are input to the driver through the output pin, and then driven by the driver to drive the probe to generate ultrasonic waves. The characteristics of this method are that it makes full use of software and has good flexibility, but it is necessary to design a driving circuit with a driving current of more than 100mA. The second method is to use an ultrasonic special generating circuit or a general generating circuit to generate ultrasonic signals, and directly drive the transducer to generate ultrasonic waves. The advantage of this method is that it does not require a driving circuit, but it lacks flexibility.

This design uses the first method to generate ultrasonic waves, and the circuit design is shown in Figure 2. The 40kHz ultrasonic wave is generated by oscillating the 555 time base circuit. The oscillation frequency is calculated as f=1.43/((R 9 +2·R 10 )·C 5 ). The purpose of designing R 10 as an adjustable resistor is to adjust the signal frequency to make it consistent with the 40kHz natural frequency of the transducer. In order to ensure that the 555 time base has sufficient driving ability, a +12V power supply is preferably used. CNT is the ultrasonic emission control signal, which is controlled by the single-chip microcomputer.

Figure 3 Ultrasonic receiving module circuit

2 Ultrasonic receiving module design

The ultrasonic receiver consists of three parts: ultrasonic receiving probe, signal amplification circuit and waveform conversion circuit. The ultrasonic probe must be of the same model as the transmitting probe. The key is that the frequency must be consistent. This design uses CSB40R, otherwise the reception effect will be affected due to the inability to generate resonance, or even no reception. Since the sinusoidal electrical signal after the probe conversion is very weak, it must be amplified by the amplifier circuit. The sinusoidal signal cannot be directly received by the microcontroller and must be converted into a waveform. According to the principles discussed above, the microcontroller only needs the moment of the first echo. The design of the receiving circuit can be implemented using a dedicated receiving circuit or a general circuit, as shown in Figure 3.

When ultrasonic waves propagate in the air, the attenuation of their energy is proportional to the distance, that is, the closer the distance, the stronger the signal, and the farther the distance, the weaker the signal, usually between 1mV and 1V. Of course, there are differences in the output signal strength of different receiving probes. Due to the large range of the input signal, two requirements are put forward for the gain of the amplifier circuit: one is that the amplification gain should be large to meet the needs of small signals; the other is that the amplification gain should be variable to meet the needs of a large signal change range. In addition, since the input signal is a sine wave, the amplifier circuit must be designed as an AC amplifier circuit. In order to reduce the use of negative power supply, the amplifier circuit is powered by a single power supply. A LM324 general-purpose operational amplifier is used for signal amplification and conversion. The first three stages are designed as amplifiers, and the last stage is designed as a comparator. LM324 can work with both dual power supplies and single power supplies, so it can meet the use requirements. In order to meet the needs of AC signals, each stage of the amplifier uses a resistor-capacitor circuit for level shifting, that is, C7, C21, C22 and C24 in Figure 3, with a capacity of 10μF, to achieve amplification of AC signals under single power supply conditions. For AC signals, the capacitor is short-circuited, so the gain of the first three amplifier circuits is 10. When the distance is close, the gain of the two-stage amplification can output a signal of sufficient strength, and the third stage may be saturated, but when the distance is far, three-stage amplification must be used. Reasonable adjustment of potentiometer R27 and selection of comparison reference voltage can make the measurement more accurate and stable.

Figure 4 Voice circuit

3 Voice Circuit Design

Voice alarm means that when the distance detected by the reversing radar is less than the set safety value, a sound is emitted to remind the driver. The voice circuit design is shown in Figure 4. M3720 is a single-sound and flashing alarm sound effect integrated circuit. An alarm sound effect is stored in the chip, which can directly drive the buzzer to sound or drive the speaker to play through an external power amplifier transistor, and can also drive an LED to flash. The functions of each pin of the chip are: 5-pin VDD; 1-pin VSS are the power input terminal and the negative terminal respectively, and the VDD voltage is 3~3.5V; 8-pin X and 1-pin Y are the external oscillation resistors of the chip respectively; 6-pin TG is the trigger control terminal, and the low level trigger is effective; 3-pin BZ and 2-pin BB are the alarm sound effect output terminals respectively, which can directly connect to an external piezoelectric ceramic buzzer. If the speaker is driven, it is led out from the 3-pin BZ terminal; 4-pin L is the flash light output terminal, which can directly drive the LED to emit light.

Software Design

AT89C2051 single-chip microcomputer and its development and application system have many advantages, such as concise language, good portability, strong expression ability, structured design, direct control of computer hardware, high quality of generated code, and easy use. The main program of the system is in key-controlled cycle working mode. When the handle is turned into reverse gear, the main program starts to call the measurement subroutine, display subroutine and voice prompt subroutine to complete the entire detection prompt process, as shown in Figure 5.

Conclusion

The reversing radar system designed in this paper is an auxiliary system to ensure the safety of car reversing. It emits ultrasonic waves through ultrasonic probes, uses high-speed single-chip microcomputers to calculate distances, and adds temperature compensation circuits to improve the accuracy of distance calculations. The LCD display installed in the system can intuitively display temperature and distance, providing convenience for the driver. When reversing, when the distance between the car and the obstacle is less than the safe distance we set, the system will issue an alarm through the voice integrated circuit to remind the driver to prevent collisions or scratches of the car, which is very practical.

Reference address:Research and design of reversing radar system based on ultrasonic detection

Previous article:Design and implementation of digital instrument for vehicle based on 51 single chip microcomputer
Next article:Using PC104 control module and C51 single chip microcomputer to realize AD detection board

Recommended ReadingLatest update time:2024-11-16 20:31

Wireless Monitoring System Based on AT89C2051 and nRF401
introduction At present, doctors often use nighttime sleep breathing multiple physiological monitors to diagnose sleep apnea, recording a whole night's sleep cycle, including the number of apneas and shallow breathing, patterns, hypoxia index, number of times, changes in electrocardiogram, oral and nasal airflow, ch
[Microcontroller]
Wireless Monitoring System Based on AT89C2051 and nRF401
Digital voltmeter circuit composed of 74ls138 and AT89C2051
We use AD574 and ATMEL's low-priced and high-performance microcontroller AT89C2051 to form a high-precision digital voltmeter. The electrical schematic diagram is shown in Figure 1. AD574 is a 12-bit sequential comparison A/D converter with a total of 12 data lines. AT89C2051 P1 is directly connected to the high 8-bit
[Microcontroller]
Digital voltmeter circuit composed of 74ls138 and AT89C2051
AT89C2051 controls the voice chip recording and playback system circuit
This article introduces the computer voice system composed of Flash single-chip microcomputer AT89C2051 and digital voice chip ISD2560. The hardware circuit of the system is designed, and the practical source program for recording and playing is given. At present, the application of voice system based on single-chip mi
[Microcontroller]
AT89C2051 controls the voice chip recording and playback system circuit
Latest Microcontroller Articles
  • Download from the Internet--ARM Getting Started Notes
    A brief introduction: From today on, the ARM notebook of the rookie is open, and it can be regarded as a place to store these notes. Why publish it? Maybe you are interested in it. In fact, the reason for these notes is ...
  • Learn ARM development(22)
    Turning off and on interrupts Interrupts are an efficient dialogue mechanism, but sometimes you don't want to interrupt the program while it is running. For example, when you are printing something, the program suddenly interrupts and another ...
  • Learn ARM development(21)
    First, declare the task pointer, because it will be used later. Task pointer volatile TASK_TCB* volatile g_pCurrentTask = NULL;volatile TASK_TCB* vol ...
  • Learn ARM development(20)
    With the previous Tick interrupt, the basic task switching conditions are ready. However, this "easterly" is also difficult to understand. Only through continuous practice can we understand it. ...
  • Learn ARM development(19)
    After many days of hard work, I finally got the interrupt working. But in order to allow RTOS to use timer interrupts, what kind of interrupts can be implemented in S3C44B0? There are two methods in S3C44B0. ...
  • Learn ARM development(14)
  • Learn ARM development(15)
  • Learn ARM development(16)
  • Learn ARM development(17)
Change More Related Popular Components

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

About Us Customer Service Contact Information Datasheet Sitemap LatestNews


Room 1530, 15th Floor, Building B, No.18 Zhongguancun Street, Haidian District, Beijing, Postal Code: 100190 China Telephone: 008610 8235 0740

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京ICP证060456号 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号