Design of an Ultrasonic Thickness Measurement System Based on CPLD

Publisher:老王古玩店Latest update time:2011-09-16 Source: 山西电子技术Keywords:Ultrasonic Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere
Abstract: This paper introduces the principle of ultrasonic thickness measurement and the use of CPLD to realize measurement control and data processing, and focuses on some specific processing methods. The propagation speed is corrected by temperature compensation, and the system can measure data in real time. It has the characteristics of simple hardware structure, reliable operation, and small measurement error.
Keywords: ultrasonic; CPLD; thickness measurement

0 Introduction
In industrial production and product quality inspection, it is often necessary to measure the thickness of the workpiece under non-destructive conditions to determine whether it meets the design requirements. At present, steel plate is one of the four major types of steel (plate, tube, type, wire), which is widely used in engineering projects such as high-rise buildings, bridges, offshore oil platforms, and large ships. Its thickness is directly related to the safety and reliability of these engineering projects. In terms of steel plate thickness measurement, ultrasonic non-destructive thickness measurement method will be widely used.

1 Principle of ultrasonic thickness measurement
The basic principle of ultrasonic thickness measurement is to use the propagation characteristics of ultrasonic waves in the medium to find material defects and wall thickness. The pulse reflection thickness measurement method is essentially to measure the round-trip propagation time of ultrasonic pulses in the material.
According to the working principle, ultrasonic measurement can be divided into several methods, such as resonance method, interference method and pulse echo method. Since the pulse echo method does not involve the resonance mechanism and is not closely related to the surface finish of the object being measured, the ultrasonic pulse echo method is also a widely used method. Its principle is to use an ultrasonic probe to send an ultrasonic pulse to the object being measured. This ultrasonic pulse propagates in the object being measured and is reflected when it propagates to the bottom surface of the object being measured. The reflected ultrasonic wave is received by the ultrasonic probe again. In this way, the time t from the ultrasonic probe sending the ultrasonic pulse to the ultrasonic probe receiving the reflected pulse can be accurately detected by the circuit. In the time t, the ultrasonic wave completes a round trip in the object being measured, as shown in Figure 1. If the thickness of the object being measured is represented by d, the total stroke of the ultrasonic wave is 2d. Since the speed c of sound wave propagation in a certain object is a constant, the thickness of the object being measured can be calculated by the following formula: d=vt/2. In the formula: d-thickness of the object being measured; v-ultrasonic wave speed; t-time from the ultrasonic wave being emitted from the tube to receiving the echo.

a.jpg


The ultrasonic sensor is divided into two parts: the transmitter and the receiver. According to its working principle, the ultrasonic sensor can be divided into several types such as piezoelectric, magnetostrictive, and electromagnetic. The most commonly used is the piezoelectric sensor.
The core of the piezoelectric ultrasonic sensor probe is the piezoelectric chip, which uses the piezoelectric effect to realize the acoustic-electric conversion. Its vibration frequency is above several hundred kilohertz. When the pulse signal (trigger pulse) is added to its two electrodes, if its frequency is equal to the natural frequency of the chip, the piezoelectric chip will resonate and drive the resonance plate to vibrate, thereby generating ultrasonic waves. On the contrary, if no voltage is added between the electrodes, when the resonance plate receives the echo signal, it will compress the two piezoelectric chips to vibrate, thereby converting mechanical energy into electrical signals. At this time, the sensor becomes an ultrasonic receiver.

2 Overall structure and working principle of ultrasonic thickness measurement system circuit
The main task of the ultrasonic thickness measurement system module is to generate an ultrasonic signal, amplify the ultrasonic signal and load it onto the ultrasonic probe. The ultrasonic probe drives the object to be measured to resonate, then samples the obtained data and holds the peak value, and then sends it to the signal processing module. Therefore, it is the basic part of this design and the key to achieving the output of detection information and obtaining good ultrasonic echo information.
This ultrasonic thickness measurement system module is mainly composed of a trigger signal generating circuit, a transmitting and receiving amplifying circuit, an amplifying and detecting circuit, a sampling peak holding circuit, an analog-to-digital conversion circuit, a liquid crystal display circuit, and a CPLD operation and control circuit. The circuit structure design is shown in Figure 2:

b.jpg


When the power is turned on and the thickness measurement starts, the CPU (central processing unit) sends a thickness measurement synchronization signal to trigger the transmitting circuit, so that the straight probe generates ultrasonic waves to be incident on the workpiece. When the ultrasonic waves return to the probe, they are first attenuated, then amplified and detected for sampling, and the resulting thickness time square wave is sent to the ADC574 analog-to-digital converter through the integral holder. After the analog-to-digital conversion, it is sent to the CPLD for data processing and displayed on the 12864 LCD display module.

3 Software Programming
The software programming block diagram is shown in Figure 3. The system software is designed according to the function of this instrument. In the main program, initialization is first performed. In the initialization, the stack pointer is set, the display unit is defined, the display buffer address is set, the data address is displayed, and then the switch quantity is read. According to the requirements of the manual switch, the calibration, flaw detection or thickness measurement processing program is transferred. If none of the above three situations are true, the digital tube will display zero, and finally return to read the switch quantity.

c.jpg



4 Thickness measurement program design
Since this system uses a 12-bit output ADC574 analog-to-digital converter, it can ensure high thickness measurement accuracy. The ultrasonic thickness gauge of this system uses VerilogHD programming to implement the data acquisition and processing module gate. Its CPLD software implementation method is shown in Figure 4. The measurement process is as follows.

d.jpg


(1) The instrument is powered on and enters the measurement state. The CPU first initializes the CPLD to clear the counter and latch, and the CPLD waits for the CPU's transmission request.
(2) If the CPU's transmission request is received, the CPLD generates a trigger signal of several hundred nanoseconds, opens the high-voltage circuit, stimulates the probe to generate ultrasonic waves, and starts the counter to start counting. According to the measurement range of the thickness gauge of 1 to 300 mm, a 16-bit counter provided by the software can cover the required measurement range. If the CPLD resources are relatively tight, you can also use the VerilogHDL language to design a counter with a suitable number of bits (such as a 12-bit counter) to achieve the effect of reasonable use of resources.
(3) If the CPLD does not receive the echo signal within a reasonable time, the echo valid flag is 0, the data in the latch is invalid, and the CPU does not read it. When the CPLD receives the echo signal, it is also necessary to perform a width detection on the received echo signal. Only when the echo width is within a reasonable range is it considered valid. The echo width detection is to avoid inaccurate readings caused by poor probe coupling.
(4) When the CPLD detects a valid echo, it latches the time taken from transmission to reception, the leading and trailing edges of the echo, and other related information. The echo valid flag is set to 1, and the CPU reads the required information. It is worth noting that in the data acquisition of the ultrasonic thickness gauge echo, only the leading and trailing edges of the echo are detected, and the midpoint is calculated based on the symmetry, without spending more resources to calculate its peak value. This makes the instrument simpler in structure, smaller in size, and lower in power consumption. This program continuously collects 256 data and accumulates the average thickness, then converts the hexadecimal to decimal, and displays the decimal thickness value.

5 Conclusion
The application of low-power CPLD in ultrasonic thickness gauges can reduce the production cost of products, improve the reliability of the system, reduce the physical size of the design, and improve flexibility. In addition, while meeting the measurement accuracy, it greatly reduces the overall static power consumption of the instrument. Conclusion of this system:
(1) The probe and thickness measurement of this system are not limited by the shape and thickness of the workpiece, and have high sensitivity.
(2) The performance indicators of this system meet the following values:
detection sensitivity margin>=46 dB;
vertical linear error<=5%;
horizontal linear error<=1%;
attenuation accuracy±0.6 for every 12 dB;
resolution>=22 dB;
dynamic range>=32 dB;
thickness measurement accuracy0.05 mm.

Keywords:Ultrasonic Reference address:Design of an Ultrasonic Thickness Measurement System Based on CPLD

Previous article:Cirrus CS485xx Series Digital Audio DSP Processing Solutions
Next article:Design of LCD display driver IP based on NiosII in SOPC

Recommended ReadingLatest update time:2024-11-16 17:58

Design of high-speed data acquisition card based on programmable logic device and A/D converter
Most of the acquisition systems used in PCs used ISA bus structure in the past. The biggest disadvantage of this structure is the low transmission rate, which cannot realize the real-time transmission of high-speed data. The PCI bus has been widely used for its excellent performance. The maximum transmission d
[Microcontroller]
Design of high-speed data acquisition card based on programmable logic device and A/D converter
Implementation of Passive Serial Download Configuration of CPLD/FPGA Based on Single Chip Microcomputer
1 Introduction With the development of electronic technology, the current design of digital systems is moving towards fast speed, large capacity, small size and light weight. The engine driving the rapid development of this trend is the increasingly advanced and perfect high-density field programmable logic dev
[Microcontroller]
Implementation of Passive Serial Download Configuration of CPLD/FPGA Based on Single Chip Microcomputer
Implementation of a CPLD Self-Powered System
A common industrial and consumer application is a system that samples environmental conditions such as GPS (Global Positioning System) position, voltage, temperature, or light at long intervals (e.g., once a minute). Increasingly, these systems are wireless and battery powered, waking up once a minute, taking a sample
[Power Management]
Implementation of a CPLD Self-Powered System
Design of intelligent control unit for circuit breaker based on DSP+CPLD
  With the rapid development of computer technology, signal detection technology and microelectronics technology, the requirements for circuit breaker control units are also increasing. Modern intelligent control units are not only required to have automatic protection, maintenance and information transmission funct
[Embedded]
Design of intelligent control unit for circuit breaker based on DSP+CPLD
Design of high-speed data acquisition system based on AVR and CPLD
Most of the information input into the system is analog. In order for the computer to process these analog quantities, the analog quantities must be converted into digital quantities through the data acquisition system. CPLD is developed on the basis of logic devices such as PAL and GAL. The scale of CPLD is relativ
[Embedded]
Design of high-speed data acquisition system based on AVR and CPLD
Design of digital bus station system based on ARM7 and CPLD
Abstract: A digital bus station system based on ARM7 and CPLD architecture is proposed. The system communicates with the bus control center in real time through the GPRS module, uses CA authentication to ensure the security of communication, and uses two SRAMs to form a high-speed cache with "ping-pong logic" to ens
[Embedded]
Design of digital bus station system based on ARM7 and CPLD
Dual controller composed of programmable logic device and single chip microcomputer
In traditional control systems, people often use single-chip microcomputers as the control core. However, this method has complex hardware connections and poor reliability. In addition, the number of ports, internal timers and interrupt sources of single-chip microcomputers are limited, and in practical application
[Microcontroller]
Dual controller composed of programmable logic device and single chip microcomputer
Design of multi-channel accurate delay control system based on single chip microcomputer + CPLD
1 Introduction The control objects in modern control systems may be complex and dispersed, and often work in parallel and independently, but overall they are an organic combination of mutual relevance. Therefore, the timing logic of the control signal requires more precision. CPLD microcontrollers provide techn
[Microcontroller]
Design of multi-channel accurate delay control system based on single chip microcomputer + CPLD
Latest Embedded Articles
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号