Anti-collision car system based on dual ultrasonic receiving heads

Publisher:心怀梦想Latest update time:2014-11-12 Source: 21icKeywords:Ultrasonic Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere

1 Introduction

Ultrasonic sensors have been widely used due to their high measurement accuracy, fast response and low price. The traditional application method is that one transmitter corresponds to one receiver, and there are also multiple transmitters corresponding to one receiver. However, we found in actual applications that if the obstacle is large (such as a wall), the ultrasonic sensor can be used to accurately measure the distance, but if it is used in the car anti-collision system, because the obstacle is columnar and the ultrasonic transmitter has a certain scattering angle (left and right), even if the obstacle is not directly in front of the car, the ultrasonic wave can still detect the oblique front echo, which brings difficulties and misleading to the intelligent control of the vehicle. In order to solve this problem, we proposed a solution using dual receivers and gave a set of specific control strategies from a practical perspective.

2 System structure and process design

Our entire system needs to complete the functions of distance measurement, speed measurement, positioning, and control of the car movement. The system includes the following six parts: ultrasonic transmitter circuit, ultrasonic receiver circuit, signal processor, temperature measurement, car control circuit and other five parts. The system structure block diagram is shown in

Figure 1: System structure diagram

Figure 1: Figure 1: System structure block diagram

A 40k square wave is generated by a single-chip microcomputer, which is amplified to drive the ultrasonic sensor transmitter to emit ultrasonic waves. After encountering the object in front, it is captured by the receiving end. After calculating the capture time of the two receiving heads and adding temperature compensation, the final direction and distance of the car in front are determined, and then the speed relative to the car in front is calculated by differential with the previous data. Finally, intelligent control is performed through the three data of speed, distance and position to control the car to turn or slow down, etc.

The specific hardware components are as follows: MCU uses AT89S52 single-chip microcomputer, P1.0 port outputs the 40K square wave signal required by the ultrasonic transducer, and drives the sensor after passing through the inverter 7404. In order to make the ultrasonic wave transmit farther, we connected three transmitters in parallel, and used the external interrupt 0 port to monitor the return signal output by the ultrasonic receiving circuit. The echo detection uses the infrared detection integrated chip CX20106, and the display circuit uses a simple 4-bit common anode LED digital tube. The break code uses 74LS244 and the bit code is driven by 8550. The temperature measurement part uses 18B20 to measure the current ambient temperature to determine the speed of ultrasonic propagation.

3 MCU algorithm control

3.1 Distance calculation and direction judgment

The single-chip microcomputer can calculate the time between the emission and reception of the ultrasonic wave, find the sound speed at the corresponding temperature according to the actual temperature measurement of the temperature measurement system, and calculate the distance between the reflector and the two receiving ends. Theoretically, the spatial position of the object can be directly mathematically derived from the above two data (as shown in Figure 2 and formulas 1 and 2).



Figure 2 Spatial orientation of ultrasonic sensor

Figure 2 Spatial orientation of ultrasonic sensor

Where d is the distance between R1 and R2, z1 and z2 are the distances from the object to each receiving end. If the calculation is done directly, it will be too complicated and time-consuming for ordinary microcontrollers to process. Therefore, we propose a method to roughly determine the position of the object based on calculating the distance difference between the two. Generally speaking, the car only cares about the object in front of the car. We set a distance parameter l to represent the horizontal distance between the obstacle in front and the car, and then set a distance parameter h to represent the vertical distance between the obstacle in front and the car. We can deduce the relationship between h, l, d and z2-z1 from the following relationship (Formula 3-Formula 6).



It is not difficult to find that the first term is always greater than the second term by dividing the two terms in formula 6, so z2-z1 is an increasing function of l. At the same time, as h decreases, z2-z1 will also increase. That is to say, when an obstacle is close to the car, if it deviates from the center of the car (that is, it will not hit the car), there is an obvious feature that its z2-z1 value will be larger. We can take d=5cm h=30cm, let l vary between [10cm,30cm], and the resulting curve is shown in Figure 3. The geometric relationship of each physical quantity is shown in Figure 4. [page]



Figure 3 Relationship between z2-z1 and l

Figure 3 Relationship between z2-z1 and l

Figure 4 Geometric relationship of various physical quantities

Figure 4 Geometric relationship of various physical quantities

It is not difficult to find that when the distance l is in the interval [10cm, 30cm] (h<30cm), the difference between z2-z1 will be >4cm. Based on this, we set a threshold of 4cm. When the difference is detected to be greater than 4cm, no braking control is required and the car can go straight through. Through such simple calculation and judgment, we can effectively avoid the z1 and z2 values ​​being too small due to obstacles that deviate from the center of the car being too close to the car, thereby causing possible misjudgment of braking. When doing this project, the car model we used was not large, so the designed threshold was not very large. If it is applied to the actual car model, the size of the threshold can be changed according to the situation.

3.2 Calculation of speed

We take a simple approximate average to estimate the speed. We can calculate that the system distance measurement interval is about 120ms. By comparing the current distance measurement result with the last distance measurement result, the approximate value of the current speed can be estimated according to formula 7:



3.3 System flow (see Figure 5).

Figure 5 System flow

Figure 5 System flow

4 Partial test results

Table 1 is our test results for the distance measurement circuit alone: ​​(unit: cm).

Table 1 Distance measurement results

Table 1 Ranging results

From this table, we can see that our distance measurement circuit is very accurate.

Figure 6 is our test results for the dual receiving head solution:

Figure 6 Test results of dual receiving head solution

Figure 6 Test results of the dual receiving head solution

In these six pictures, the upper three pictures are all distances calculated by the time the right receiving head receives the signal, while the lower three pictures are all distances calculated by the time the left receiving head receives the signal. It can also be seen that when the obstacle deviates from the center, the distances measured by the left and right receiving heads are obviously different, which can be used for positioning.

Finally, when we completed the debugging of the entire car system, we used it to test and found that no matter whether it is a moving or stationary obstacle, at any position in front of the car, the car can correctly judge and make a forward or stop action.

5 Conclusion

In summary, this system proposes a vehicle-mounted automatic speed and distance measurement control system based on dual ultrasonic receiving heads and 3 transmitting heads, which can effectively play the role of protecting the driver and prejudging and reminding the driver. When the driver takes wrong control measures when encountering an emergency, the system can also force correction or alarm to remind the driver to check. Because the system is simple, economical and stable, it has a very large market prospect.
Keywords:Ultrasonic Reference address:Anti-collision car system based on dual ultrasonic receiving heads

Previous article:Design of infrared temperature monitoring system based on C8051F340 single chip microcomputer and CPLD
Next article:Interface Design between 16-bit Σ-Δ A/D Converter AD7705 and Microcontroller

Recommended ReadingLatest update time:2024-11-16 21:53

Design of a household intelligent watering device based on AT89S52
Abstract: A home intelligent watering device is designed to realize automatic watering of flowers. The single-chip microcomputer is used to realize automatic watering of flowers. Different control modes are set according to different flower species, namely, timed quantitative watering and watering according to humid
[Industrial Control]
Design of a household intelligent watering device based on AT89S52
Design of Voice Digital System Based on AT89S52 and K9F6408UOA
Data acquisition technology involves a wide range of fields, a wide dynamic range of collected signals, a large amount of processed data, and high requirements for system real-time performance. Processing signals in the form of digital signals has the advantages of fast processing speed, flexibility, accuracy, stron
[Microcontroller]
Design of Voice Digital System Based on AT89S52 and K9F6408UOA
Design of automobile taillight controller based on AT89S52 single chip microcomputer
  0 Introduction   With the continuous progress of modern society, people are increasingly inseparable from cars. However, with the rapid increase in the number of cars, road safety has attracted more and more attention. It is now recognized that it is unrealistic to rely solely on the structural factors of the car
[Microcontroller]
Design of automobile taillight controller based on AT89S52 single chip microcomputer
Hardware Design of LED Display Screen Based on AT89S52 Single Chip Microcomputer and ATF1508AS Programmable Logic Device
0 Introduction The LED display screen is mainly composed of three parts: current drive circuit and LED dot matrix array, control system and PC management software (Figure 1). The control system is responsible for receiving, converting and processing various external signals, and realizing scanning control, and t
[Microcontroller]
Hardware Design of LED Display Screen Based on AT89S52 Single Chip Microcomputer and ATF1508AS Programmable Logic Device
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号