Abstract: In order to overcome the defects of some traditional distance measurement methods that cannot be measured in some special occasions, the design uses P89LPC932 as the core and uses ultrasonic sensors to realize non-contact air distance measurement. The close relationship between sound speed and temperature is fully considered, and temperature compensation is performed to further obtain a distance measurement of up to about 700 cm, with an optimal accuracy of 1%. The design has strong anti-interference ability, simple installation, small size, low power consumption, and is easy to embed into other systems.
Keywords: P89LPC932; ultrasonic; distance meter; non-contact air distance measurement
introduction
Some traditional distance measurement methods have insurmountable defects in certain special occasions. For example, liquid level measurement is a kind of distance measurement. The traditional electrode method uses differential distribution electrodes to detect the liquid level by applying electricity or pulses. The electrodes are easily corroded and electrolyzed when immersed in water or other liquids for a long time, and lose sensitivity. Using ultrasonic distance measurement can solve these problems.
The ultrasonic rangefinder designed in this paper uses three range-measuring modes to select jumper J1 (short distance, medium distance, and adjustable distance). The overall solution is that when the measurement key is pressed, the probe sends ultrasonic waves, and when the ultrasonic waves encounter obstacles, an echo signal will be generated; the system amplifies the echo signal received by the probe and sends it to the controller; the temperature measurement circuit measures the temperature, calculates the measured distance, and displays it on the digital display, with the last 4 digits showing the distance and the first 2 digits showing the temperature.
1 Basic Principle of Ultrasonic Rangefinder
The principle of using ultrasound to measure distance is shown in Figure 1. It can be simply described as follows: the regularly transmitted ultrasound waves are reflected when encountering obstacles. The reflected waves are received by the receiver and converted into electrical signals. In this way, the distance can be calculated by measuring the time difference △t between transmission and reception, and then according to formula (1):
Where: C is the propagation speed of ultrasound in air, C is 331 m/s at 0℃, C is 347 m/s at 25℃, and its relationship with ambient temperature T (unit: ℃) is as shown in formula (2):
It can be seen that the speed of sound is closely related to temperature. In applications, if the temperature does not change much and there is no special accuracy requirement, the speed of sound can be considered to be basically unchanged. Otherwise, temperature compensation must be performed. The temperature compensation method is to first calculate the speed of sound C at that time according to formula (2) and then calculate the distance according to formula (1).
In addition, it can be seen from Figure 1 that since ultrasound uses the received reflected waves to calculate the distance, there is inevitably an angle between the emission and the reflection, and its size is 2a. When a is very small, the distance can be directly calculated according to formula (1); when a is large, the distance must be corrected, and the correction formula is as shown in formula (3):
2 System Hardware
The ultrasonic rangefinder mainly includes: temperature detection circuit, ultrasonic emission and control circuit, ultrasonic reception and signal processing circuit, display circuit, microprocessor and its auxiliary circuit and RS 232 communication interface circuit. Its structural block diagram is shown in Figure 2.
Previous article:Wireless mouse solution based on micro-electromechanical system
Next article:Automotive Sensors and Component Solutions
- High signal-to-noise ratio MEMS microphone drives artificial intelligence interaction
- Advantages of using a differential-to-single-ended RF amplifier in a transmit signal chain design
- ON Semiconductor CEO Appears at Munich Electronica Show and Launches Treo Platform
- ON Semiconductor Launches Industry-Leading Analog and Mixed-Signal Platform
- Analog Devices ADAQ7767-1 μModule DAQ Solution for Rapid Development of Precision Data Acquisition Systems Now Available at Mouser
- Domestic high-precision, high-speed ADC chips are on the rise
- Microcontrollers that combine Hi-Fi, intelligence and USB multi-channel features – ushering in a new era of digital audio
- Using capacitive PGA, Naxin Micro launches high-precision multi-channel 24/16-bit Δ-Σ ADC
- Fully Differential Amplifier Provides High Voltage, Low Noise Signals for Precision Data Acquisition Signal Chain
- 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
- EEWORLD University Hall----Live playback: IoT display solution using DLP? micro-projection technology
- Recommended development directory for CH579M
- Free gifts! 11 popular Maxim development boards are waiting for you!
- Have you been affected by the price increase? Share the best pin-compatible alternative solution under the wave of price increase#, a certain brand?
- Request: DC-DC small package chip similar to LM2596
- What is the reason! Another wind turbine fire accident! And caused a ground wildfire
- 【Iprober 520 current probe】Practical use in motor control
- Can you please help me find out where is the problem with the program?
- What are the basic units of Weber Wb and Tesla T?
- How to add c files in esp32 idf components to compile