1 Hardware Design of Automobile Anti-collision Alarm
According to the product cost performance and actual needs, the intelligent ultrasonic distance measurement integrated circuit chip SB5027 developed by Zhongyi Electric Measurement Research Institute is selected. It adopts CMOS manufacturing process, has a comparator, a standard 40 kHz ultrasonic generator and an echo response pulse receiver, and integrates dynamic digital display information output, operation keyboard, data storage, parameter setting and other functions. When SB5027 is used for distance detection, it has the following characteristics: dynamic digital tracking display; the upper limit, middle limit, lower limit and other parameters of the distance can be set; the alarm permission parameters such as distance, time, timing, etc. can be set; the maximum range and minimum resolution are set by the user; support value-added distance measurement function. The system hardware structure design is shown in Figure 1. The system consists of ultrasonic transmitting circuit, ultrasonic receiving circuit, keyboard display circuit, core function chip, auxiliary circuit (reset circuit and crystal oscillator circuit) and alarm circuit.
1.1 Principle of ultrasonic ranging
The basic principle of ultrasonic ranging is basically the same as that of sonar echolocation. The ultrasonic generator continuously emits 40 kHz ultrasonic waves, which are reflected back when encountering obstacles. The ultrasonic receiver receives the reflected wave signal and converts it into an electrical signal. By measuring the time difference T between the transmitted wave and the received reflected wave, the distance can be calculated:
S = (1/2) CT
, where C is the ultrasonic speed of sound, and:
Where: y is the adiabatic volume coefficient of the gas (1.4 for air); p is the gas pressure (1.013×106Pa at sea level); gadolinium is the density of the gas (1.29 kg/m3 for air).
For 1 L of air, the mass is m, the volume is v, and the density p=m/v.
Therefore:
Where: R is the molar gas constant; T is the absolute temperature. [page]
1.2 Sound and light alarm, wireless signal transmission and receiving circuit design The
automobile anti-collision alarm detection uses ultrasonic sensors. The ultrasonic sensor consists of an ultrasonic transmitting circuit and an ultrasonic receiving circuit. The ultrasonic transmitting circuit consists of a Schmitt trigger, a transformer, and a transmitting sensor T probe. Since the SB5027 has a standard 40 kHz ultrasonic generator inside, its internal signal (lead out from the pin SONICOUT) is directly led, but the signal is weak, and the signal must be amplified in the transmitting circuit. This signal is connected in series through two Schmitt reverse triggers, and the NPN transistor VT is turned on through a voltage divider resistor, and the voltage pulse signal at the output end is fed back to the transformer. The voltage signal is increased by the step-up transformer to drive the transmitting type T40 sensor to emit 40 kHz ultrasonic waves. The circuit diagram is shown in Figure 2.
Ultrasonic signal reception and processing is one of the key technologies of the distance measurement system. Since the ultrasonic receiving circuit amplifies the weak signal output by the probe to a sufficient level to drive and control the subsequent circuit, the receiving circuit mainly solves the diffuse reflection phenomenon on the surface of the receiving signal. Therefore, the receiving circuit mainly solves the stability of the receiving signal, that is, the automatic gain control problem of the receiving signal. Since the transmitting signal is relatively weak when it contacts the surface of the object, and the distance to be measured causes uneven amplitude of the reflected signal. In order to eliminate the influence of the above defects, the receiving circuit should have signal amplification and automatic gain control functions. The chip LM331 is selected in the design to complete the voltage/frequency conversion. The ultrasonic receiver R converts the received reflected wave into voltage after filtering through capacitors and resistors through LM331, and then amplifies and shapes the voltage converted by LM331 through two reverse Schmitt triggers in series and sends it to the ECHO IN end of SB5027. The circuit diagram is shown in Figure 3.
When the alarm circuit exceeds the range limit, the BELLOUT terminal of SB5027 outputs a high level to turn on transistor VT1, connect the alarm to the power supply and sound the alarm. The circuit diagram is shown in Figure 4.
|
[page]
2 Software system design
The alarm software design flow chart is shown in Figure 5.
After the system is powered on, the main program completes the initialization work, including register initialization, etc. When the car is in operation, the alarm devices placed in front and behind the car will collect the on-site signal and transmit it to the SB5027 microcontroller. The microcontroller processes, calculates and compares the received signal. Under normal circumstances, the alarm will not sound an alarm; if it exceeds the lower limit, an audible and visual alarm signal will be generated to remind the driver to take corresponding measures.
3 Conclusion
The car anti-collision alarm designed in this paper makes full use of the internal resources of SB5027 to perform data processing and time control functions, so that the system works in the best state and improves the comprehensive response sensitivity of the system. The alarm is timely and the anti-collision function control is realized. Practice has proved that the use effect of this system is better than other alarms, and it has the characteristics of small size, easy use and simple operation.
Previous article:Design of CAN bus system for a certain vehicle model based on AT90CAN128 single chip microcomputer
Next article:Design of automobile lighting system based on single chip microcomputer and LED
Professor at Beihang University, dedicated to promoting microcontrollers and embedded systems for over 20 years.
- Innolux's intelligent steer-by-wire solution makes cars smarter and safer
- 8051 MCU - Parity Check
- How to efficiently balance the sensitivity of tactile sensing interfaces
- What should I do if the servo motor shakes? What causes the servo motor to shake quickly?
- 【Brushless Motor】Analysis of three-phase BLDC motor and sharing of two popular development boards
- Midea Industrial Technology's subsidiaries Clou Electronics and Hekang New Energy jointly appeared at the Munich Battery Energy Storage Exhibition and Solar Energy Exhibition
- Guoxin Sichen | Application of ferroelectric memory PB85RS2MC in power battery management, with a capacity of 2M
- Analysis of common faults of frequency converter
- In a head-on competition with Qualcomm, what kind of cockpit products has Intel come up with?
- Dalian Rongke's all-vanadium liquid flow battery energy storage equipment industrialization project has entered the sprint stage before production
- Allegro MicroSystems Introduces Advanced Magnetic and Inductive Position Sensing Solutions at Electronica 2024
- Car key in the left hand, liveness detection radar in the right hand, UWB is imperative for cars!
- After a decade of rapid development, domestic CIS has entered the market
- Aegis Dagger Battery + Thor EM-i Super Hybrid, Geely New Energy has thrown out two "king bombs"
- A brief discussion on functional safety - fault, error, and failure
- In the smart car 2.0 cycle, these core industry chains are facing major opportunities!
- The United States and Japan are developing new batteries. CATL faces challenges? How should China's new energy battery industry respond?
- Murata launches high-precision 6-axis inertial sensor for automobiles
- Ford patents pre-charge alarm to help save costs and respond to emergencies
- New real-time microcontroller system from Texas Instruments enables smarter processing in automotive and industrial applications
- [Tutorial] Teach you how to set the probe ratio on different brands of oscilloscopes (Tektronix + Keysight + Puyuan)
- Look at the following statement
- The 51 MCU sends temperature, humidity and PM2.5 through ESP8266, and the Android APP receives and displays the data in real time and draws data curves and alarms
- EEWORLD University ---- Fundamentals of Integrated Circuit Design (Huazhong University of Science and Technology)
- Keysight Technologies’ Prize-giving Live Broadcast: VR/AR Digital Interface Testing Challenge in the Metaverse Testing Workshop Series is now open for registration!
- What is the use of resistor R95 in the transistor control circuit?
- Common Misunderstandings in Circuit Design
- Discussion on debugging CLA module of 28035
- Tell us about your money-making plan. How do you manage your finances?
- [HC32F460 Development Board Review] (Part 3) LCR Bridge Design - Reviewing External Interrupts and Timers