Concrete pole steel bar corrosion detection system
Through the electromagnetic pulse eddy current technology concrete pole reinforcement corrosion detection system, the problem of inaccurateness and inability to evaluate internal corrosion of traditional detection methods is solved, and fast and accurate detection is achieved, reducing maintenance costs and safety risks.
Patent Information
- Application Number
- CN202411247627.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-06
- Publication Date
- 2024-11-08
AI Technical Summary
The traditional concrete pole steel bar corrosion detection method has manual dependence, insufficient inspection, inaccurate internal corrosion, and early warning, which increases maintenance costs and safety hazards.
A concrete pole steel bar corrosion detection system was designed, and the electromagnetic pulse eddy current technology was used to detect the steel bar corrosion without destroying the concrete structure. The square wave signal was generated through the driving circuit, power amplifier, excitation coil and signal acquisition and processing circuit. Collect the induction magnetic field and analyze the magnetic field strength to judge the corrosion state.
It realizes fast and accurate steel bar corrosion detection, avoids material waste caused by drilling core sampling, provides early warning functions, reduces maintenance costs and safety risks, and is suitable for the daily maintenance needs of power infrastructure.
Smart Images

Figure CN118914349A_ABST
Abstract
Description
[Technical field]
[0001] The invention belongs to the technical field of corrosion detection, and in particular relates to a concrete pole reinforcement corrosion detection system. [Background technology]
[0002] Concrete poles made of reinforced concrete are widely used as cable support in the power, communication, iron ore and petroleum industries, especially in low-voltage transmission lines in towns and villages. Since reinforced concrete structures have strong compression and tensile resistance, durability, fire resistance and earthquake resistance, the service life of concrete poles with reasonable design and standard preparation can usually reach several decades. However, with the passage of time and the influence of the external environment, the steel bars of concrete poles may be corroded by rust, thus affecting the stability and safety of the structure. [1] When steel bars are severely corroded, their strength and bearing capacity will drop sharply, which may cause the poles to collapse or break, affecting the stable operation of the power system and even endangering people's lives.
[0003] At present, the traditional method of detecting steel bar corrosion on concrete poles mainly relies on visual inspection and manual tapping, which has many limitations. First, it needs to be done manually, which is time-consuming and labor-intensive, and is affected by the subjective factors of the operator. The accuracy and consistency of the test results cannot be guaranteed. Secondly, the traditional method can only detect the surface and cannot evaluate the internal corrosion of the steel bars. Therefore, deep structural problems may be ignored, posing safety hazards. In addition, traditional methods can often only detect problems to a certain extent, and cannot provide early warnings and preventive measures, which increases maintenance costs and risks. [2] .
[0004] In view of the limitations of traditional methods, in recent years, people have begun to explore the use of advanced technical means to improve the detection method of concrete pole steel corrosion. At present, there are two main methods for detecting concrete steel corrosion: destructive testing technology and non-destructive testing technology. [3] Destructive testing technology is to evaluate the corrosion of steel bars by destructive testing of concrete structures. Commonly used destructive testing methods include the steel bar exposure method, the steel bar stripping method and the steel bar exposure method. The steel bar exposure method is a simple and direct method that determines the degree of corrosion and damage by observing the exposed steel bar surface. However, this method can only detect the corrosion of the steel bar surface and cannot provide deeper information. [4] The steel stripping method detects the corrosion of steel bars by stripping off a layer of the concrete surface. This method can provide deeper information, but it will cause certain damage to the surface of the structure. The steel bar exposure method exposes the steel bars on the concrete structure and then observes and measures them. This method can provide more detailed information, but it will cause obvious damage to the structure. [5] .
[0005] Considering the problems of destructive testing, people began to explore the use of advanced technical means to improve the detection method of concrete steel corrosion. Nondestructive testing technology is currently one of the most powerful technologies for detecting concrete steel corrosion. Nondestructive testing technology is to evaluate the steel corrosion without destroying the concrete structure. Among nondestructive testing technologies, eddy current testing technology, infrared imaging technology and laser scanning technology are widely used. [6] Eddy current testing technology is a common and effective non-destructive testing method. It uses the principle of electromagnetic induction to detect steel corrosion. Eddy current testing technology introduces an alternating magnetic field around the steel bar. When the magnetic field encounters the corrosion on the surface of the steel bar, it will induce an eddy current effect. By measuring the changes in eddy current induction, the degree of steel corrosion can be determined. [7] . Infrared imaging technology uses the heat distribution of infrared radiation to detect the corrosion of steel bars. Corroded steel bars will cause changes in the surrounding temperature distribution. The infrared thermal imager can capture this change and generate a heat map to evaluate the degree of corrosion of the steel bars. Laser scanning technology uses a laser beam to scan the concrete structure and detects the corrosion of steel bars by analyzing the reflected signal. This technology can provide high-precision surface morphology and size information for evaluating the degree of corrosion of steel bars. Compared with several other detection technologies, the research on concrete steel bars based on eddy current detection technology is more complete at this stage, and there are also more equipment using eddy current technology to detect steel corrosion. [8] .
[0006] In summary, concrete pole steel corrosion detection is a key link to ensure the safe and stable operation of the power transmission system. Traditional detection methods have many shortcomings, and the use of non-destructive testing technology can effectively improve detection efficiency and accuracy, and provide reliable technical support for the maintenance and management of the power transmission system.
[0007] References:
[0008] [1] Tong Yong, Qin Ningbo, Geng Ming, et al. Design and performance study of anti-corrosion concrete poles[J]. Popular Science, 2023, 25(08): 32-35.
[0009] [2] Du Zhengwang, Wang Shanxiao. Calculation and analysis of corrosion and damage of electric poles in the tidal flat area of Shengli Oilfield[J]. Shanghai Electric Technology, 2022, 15(02): 65-69.
[0010] [3] Liu Haichao, Hu Shengzhong, Liang Haiming, et al. Application of pulsed eddy current testing technology in industrial pipeline inspection [J]. China Special Equipment Safety, 2023, 39(S2): 81-85.
[0011] [4] Tong Yuantao. Research on the detection rate of corrosion defects of process pipelines under insulation layer based on pulse eddy current testing technology[J]. Chemical Equipment Technology, 2023, 44(04): 12-16.
[0012] [5] Xu Junqiao, Sun Jie, Li Xufeng, et al. Industrial pipeline corrosion detection based on pulsed eddy current technology[J]. Nondestructive Testing, 2023, 47(02): 45-48.
[0013] [6] Chen Haoyu, Cai Gangyi, Liu Haiyun, et al. New technology for detecting corrosion under insulation layer of pressure pipeline based on pulsed eddy current[J]. Chemical Equipment Technology, 2022, 43(05): 62-64.
[0014] [7] Wang Hao. Research on the pulsed eddy current detection method of ferromagnetic material thickness[D]. China University of Mining and Technology, 2022.
[0015] [8] Yin Xuefeng, Cheng Qianli, et al. Lift-off height detection method based on pulsed eddy current[J]. Pressure Vessels, 2021, 38(09): 81-86. [Summary of the invention]
[0016] The present invention provides a concrete pole reinforcement corrosion detection system to solve the shortcomings of traditional detection methods. The detection system of the present invention can effectively improve the detection efficiency and accuracy, and provide reliable technical support for the maintenance and management of the power transmission system.
[0017] In order to achieve the above technical objectives, the design scheme of the present invention is as follows:
[0018] A concrete pole steel bar corrosion detection system comprises a driving circuit, a power amplifier, an excitation coil, and a signal acquisition and processing circuit. The square wave signal generated by the driving circuit is transmitted to the power amplifier, and the signal acts on the excitation coil after being amplified. When the excitation coil is close to a concrete steel bar specimen, eddy currents will be generated on the surface of the steel bar under the Faraday electromagnetic induction effect. At the same time, the concrete steel bar specimen under test will generate an induced magnetic field under the action of the eddy currents generated by itself. The induced magnetic fields at different measuring points of the specimen are collected by the signal acquisition and processing circuit. The corrosion state of the concrete pole steel bar is detected by analyzing the magnetic field strength at each point and combining the corrosion defect information of the concrete steel bar specimen.
[0019] Furthermore, the driving circuit includes a single chip microcomputer, a display, a digital-to-analog converter, and buttons.
[0020] Furthermore, the display is an LCD1602 display, and the digital-to-analog converter is a DAC0832 digital-to-analog converter.
[0021] Furthermore, the square wave signal is a square wave signal with fixed frequency and duty cycle.
[0022] Furthermore, the power amplifier comprises an operational amplifier chip and a power supply circuit.
[0023] Furthermore, the operational amplifier chip is an OPA445 operational amplifier chip.
[0024] Furthermore, the excitation coil is wound with enameled wire to form a hollow cylindrical shape.
[0025] Furthermore, the signal acquisition and processing circuit includes a single chip microcomputer, a Hall sensor, an analog-to-digital converter, a display, and buttons.
[0026] Furthermore, the Hall sensor is a HAL49E Hall sensor, the analog-to-digital converter is an ADS1115 analog-to-digital converter, and the analog-to-digital converter is an LCD12864 display.
[0027] Furthermore, the single chip microcomputer used in the driving circuit and the signal acquisition and processing circuit is a STC89C52 single chip microcomputer.
[0028] Compared with the prior art, the present invention has the following advantages:
[0029] (1) The present invention integrates multiple modules such as drive circuit, power amplifier, excitation coil, signal acquisition and processing circuit into a complete concrete pole steel bar corrosion detection system, realizing innovative integration at the system level. The entire design is easy to operate and cost-controlled, and the physical device is small and portable. The system of the present invention is easy to install and use, with a fast detection speed, and can meet the practical requirements of daily maintenance of power infrastructure. In particular, the system can be used to carry out preventive maintenance of poles, thereby improving maintenance efficiency and avoiding the risks of high-altitude operations.
[0030] (2) In terms of environmental protection, the system design of the present invention adopts electromagnetic pulse eddy current non-destructive testing technology, which can effectively detect the corrosion of steel bars inside concrete poles and avoid the waste of concrete and steel materials caused by destructive testing methods such as core sampling. Electromagnetic pulse eddy current testing is a green testing technology with no radiation and pollution. It will not cause any harmful effects on the environment and meets environmental protection requirements. Timely discovery and repair of rusted poles can extend the service life of poles, reduce waste, save resources, and benefit environmental protection.
[0031] (3) In terms of sustainable development, concrete poles are important infrastructure of the power transmission and distribution network, and their structural safety and reliability are directly related to the stable operation of the entire power supply system. The system design of the present invention can monitor and evaluate the corrosion of the steel bars of the poles in real time, provide a basis for the maintenance of the poles, and ensure the continuous and stable operation of the power system. By timely discovering and repairing corrosion defects, the service life of the poles can be maximized, the replacement frequency can be reduced, thereby reducing energy consumption and resource waste, reflecting the concept of sustainable development.
[0032] (4) In terms of economy and society, once a concrete pole tilts, breaks or has other safety accidents, it will not only cause power outages and affect production and life, but may also lead to serious casualties and economic losses. The detection system of the present invention can timely discover the hidden dangers of steel bar corrosion of the poles, and take targeted repair or replacement measures to avoid accidents, thereby reducing economic losses. Compared with other detection methods, electromagnetic pulse eddy current detection has the advantages of fast detection speed and low cost, and has significant economic benefits. Electricity is an important foundation for the normal operation of modern society. Any power outage will seriously affect the normal life of residents and social production activities. The system design can realize the detection and monitoring of the infrastructure of the power system, ensure the stability and reliability of the power grid operation, maintain the normal order of society, and has important social significance. In addition, timely repair of rusted poles eliminates safety hazards such as tilting and breaking, avoids the occurrence of casualties, and protects the safety of people's lives and property.
[0033] (5) In terms of culture, electromagnetic pulse eddy current testing technology belongs to the advanced field of non-destructive testing. It uses multidisciplinary knowledge such as electromagnetic induction and signal processing, and embodies the cultural value of scientific and technological innovation and knowledge innovation. This design has developed a practical detection system, expanded the practical application field of this technology, and promoted the cross-integration and development of related disciplines, which is of certain significance to the inheritance and promotion of the spirit of scientific culture.
[0034] (6) In terms of law, the development and application of the system of the present invention complies with the requirements of relevant laws and regulations on energy conservation, emission reduction, environmental protection, etc. It can detect and eliminate safety hazards of electric poles, avoid safety accidents, and comply with relevant laws and regulations on safe production management of power facilities. It improves the reliability of power supply, helps to safeguard the legitimate rights and interests of users in electricity use, and embodies the legal concept of protecting consumer rights.
Brief Description of the Drawings
[0035] Figure 1 Design a framework diagram for the system;
[0036] Figure 2 This is the working principle diagram of pulse eddy current;
[0037] Figure 3 This is the basic working principle diagram of pulsed eddy current based on magnetic sensor detection;
[0038] Figure 4 This is a three-dimensional simulation model diagram of pulse eddy current detection of steel bar corrosion on concrete poles;
[0039] Figure 5 This is an enlarged picture of the corroded part of the steel bar;
[0040] Figure 6 It is the magnetic field intensity characteristic curve diagram;
[0041] Figure 7 This is the minimum system diagram of the single-chip microcomputer;
[0042] Figure 8 This is the crystal oscillator circuit diagram;
[0043] Fig. 9 This is the reset circuit diagram;
[0044] Fig.10 is the power supply circuit diagram;
[0045] Fig.11 To download the interface diagram;
[0046] Fig.12 This is the LCD1602 liquid crystal display screen diagram;
[0047] Fig.13 To display the module diagram;
[0048] Fig.14 This is the working principle diagram of DAC0832;
[0049] Fig.15 This is the circuit diagram of the LM358 reverse proportional amplifier;
[0050] Fig.16 This is the working principle diagram of the key circuit;
[0051] Fig.17 It is the key circuit diagram;
[0052] Fig.18 This is the LCD12864 liquid crystal display diagram;
[0053] Fig.19 Display the circuit diagram for LCD12864;
[0054] Fig. 20 This is the working principle diagram of ADS1115;
[0055] Fig.21 It is the circuit diagram of analog-to-digital conversion;
[0056] Fig. 22 This is the keyboard circuit diagram;
[0057] Fig.23This is the buzzer alarm circuit diagram;
[0058] Fig.24 This is the HAL49E Hall sensor diagram;
[0059] Fig.25 This is the working principle diagram of the Hall sensor;
[0060] Fig.26 It is the linear relationship diagram between output voltage and magnetic induction intensity;
[0061] Fig. 27 It is the excitation coil diagram;
[0062] Fig.28 is the power amplifier diagram;
[0063] Fig.29 Main program flow chart;
[0064] Fig.30 This is the flow chart of the sine wave program;
[0065] Fig.31 This is the square wave program flow chart;
[0066] Fig.32 This is the flow chart of the triangle wave program;
[0067] Fig.33 It is the flow chart of delay subroutine;
[0068] Fig.34 Main program flow chart;
[0069] Fig.35 Display function diagram for LCD1602;
[0070] Fig.36 Output signal diagram for digital-to-analog conversion circuit;
[0071] Fig.37 Output signal diagram for the driving circuit;
[0072] Fig.37 Output signal diagram for the drive circuit;
[0073] Fig.38 Display the current output waveform and frequency graph for LCD1602;
[0074] Fig.39 Display function diagram for LCD12864;
[0075] Fig.40 Measured numerical plots for signal acquisition and processing circuits;
[0076] Fig.41 To debug the power amplifier;
[0077] Fig.42 This is the picture when the prototype is not working;
[0078] Fig.43 This is a picture of the prototype working. [Specific implementation method]
[0079] 1. Detection system design framework and working principle
[0080] The overall idea of the design of this detection system is as follows:
[0081] The main purpose of the present invention is to design and develop a device that can detect the corrosion of concrete pole steel bars based on the principle of electromagnetic pulse eddy current detection using an 89C51 single-chip microcomputer. The device is mainly composed of a drive circuit, a power amplifier, an excitation coil, and a signal acquisition and processing circuit. First, the drive circuit is composed of components such as an STC89C52 single-chip microcomputer, an LCD1602 display, a DAC0832 digital-to-analog converter, and a button, and is used to generate a square wave signal with a fixed frequency and duty cycle. The power amplifier is composed of modules such as an OPA445 operational amplifier chip and a power supply circuit, and is used to receive the square wave signal of the drive circuit and amplify it before acting on the excitation coil. The excitation coil is wound with enameled wire and wound into a hollow cylindrical shape. When the coil is brought close to the concrete steel bar specimen, eddy currents will be generated on the surface of the steel bar under the Faraday electromagnetic induction effect. At the same time, the tested piece will generate an induced magnetic field under the action of the eddy currents generated by itself. This induced magnetic field consists of two parts, one is the magnetic field excited by the excitation coil, and the other is the magnetic field caused by the induced eddy currents generated in the specimen. Based on ANSYS finite element simulation software, this design compares the magnetic field strength of the excitation coil under normal and corroded conditions to verify the effectiveness of the excitation coil design. The signal acquisition and processing circuit consists of STC89C52 microcontroller, HAL49E Hall sensor, ADS1115 analog-to-digital converter, LCD12864 display, buttons and other components. The signal acquisition and processing circuit can collect the induced magnetic field at different measuring points of the specimen. By analyzing the magnetic field strength at each point and combining the corrosion defect information of the specimen, the corrosion state of the concrete pole steel bar can be detected.
[0082] The driving circuit generates an AC voltage signal, which is amplified by the power amplifier and acts on the excitation coil. The excitation coil is placed close to the test piece, which is a reinforced concrete specimen with different degrees of corrosion. Eddy currents will be generated on the surface of the test piece under the Faraday electromagnetic induction effect. At the same time, the test piece will generate an induced magnetic field under the action of the eddy currents generated by itself. It can be seen that this induced magnetic field consists of two parts, one is the magnetic field excited by the excitation coil, and the other is the magnetic field caused by the induced eddy currents generated in the specimen. This induced magnetic field is received by the Hall sensor in the signal acquisition and processing circuit. After processing, the collected induced magnetic field strength is displayed. The strength of the detected magnetic field is used to determine whether the steel bar is rusted.
[0083] 1.1 System overall framework
[0084] This system consists of main parts such as single chip microcomputer main control circuit, digital-to-analog converter, power supply circuit, display circuit, power amplifier, Hall sensor, analog-to-digital converter, keyboard circuit, etc. First, carry out separate design and then conduct joint connection debugging. The system design framework diagram is as follows Figure 1 shown.
[0085] 1.2 Principle of electromagnetic pulse eddy current testing
[0086] 1.2.1 Eddy current effect of pulsed eddy current
[0087] The difference between pulsed eddy current testing technology and traditional eddy current testing technology is that pulsed eddy current testing technology uses a rectangular pulse with a certain duty cycle as excitation. When the rectangular pulse is input to both ends of the excitation coil, the excitation coil will induce a pulse magnetic field B1. In the conductor specimen, due to the action of the pulse magnetic field B1, a pulse eddy current I2 will be induced. Finally, the pulse eddy current I2 will induce a secondary magnetic field B2 in the opposite direction of B1. It interacts with the magnetic field B1, causing the original magnetic field to change, causing the magnetic flux in the coil to change, and then causing the impedance of the coil to change (or the induced voltage on the coil to change), such as Figure 2 If there is a defect on the specimen, it will affect the distribution of pulsed eddy current on the specimen. The change of eddy current will affect the change of induced magnetic field. The change of magnetic field will eventually cause the induced voltage on the detection coil to change. Therefore, by analyzing the induced voltage on the detection coil, the defect information on the specimen can be obtained.
[0088] Compared with ordinary eddy current, the biggest feature of pulse eddy current is that the pulse excitation signal has a very wide spectrum, the feedback signal will be richer, and more characteristic quantities can be used to characterize the defects of ferromagnetic materials. The conventional means of detecting the magnetic field generated by eddy current is the coil detection method, but the detection coil measures the change in the magnetic field, so it is not suitable for low-frequency detection occasions. The magnetic measurement sensor has good response ability at low frequencies, so the present invention mainly uses the magnetic measurement sensor to detect the magnetic field generated by eddy current. The specific working principle is as follows: Figure 3 shown.
[0089] Since the pulse eddy current induced in the conductor specimen has certain regularities in the conductor specimen, the eddy current density is the largest on the surface of the specimen and decreases as it goes deeper into the specimen. Therefore, the pulse eddy current has two very important characteristics: skin effect and penetration depth.
[0090] 1.2.2 Skin effect of pulsed eddy current
[0091] When an alternating current is passed through the coil, the eddy current induced in the test piece has a skin effect, which causes the eddy current to concentrate on the surface of the workpiece closest to the coil. The skin effect increases with the increase of the frequency f of the alternating current, the conductivity δ of the workpiece, and the magnetic permeability μ. In other words, the eddy current density in the test piece decreases with the increase of the distance from the test coil, and this decrease usually decreases exponentially. The phase difference of the eddy current increases in direct proportion to the increase of the depth.
[0092] When a plane electromagnetic wave enters a semi-infinite metal conductor, the attenuation formula of the eddy current is as follows:
[0093]
[0094] Where: J0 is the eddy current density on the workpiece surface, h is the distance from the metal surface, f is the current frequency in the test coil, and σ is the conductivity of the material; J h is the eddy current density of the workpiece at a depth of h from the surface, and μ is the magnetic permeability. For non-magnetic materials, μ = μ0, where μ0 is the vacuum magnetic permeability; for ferromagnetic materials, μ = μ0μ r , μ r is the relative magnetic permeability.
[0095] 1.2.3 Penetration effect of pulsed eddy current
[0096] The existence of skin effect makes the intensity of the magnetic field excited by the alternating current and the density of the induced eddy current decrease exponentially from the surface of the material or workpiece to its interior. In eddy current testing, the depth corresponding to the decay of the eddy current density to 1 / e (36.8%) of its surface density is usually defined as the standard penetration depth, represented by δ, and its mathematical expression is:
[0097]
[0098] Eddy current penetration depth is an important parameter. It is a characteristic value that reflects the basic relationship between the eddy current density distribution and the electrical conductivity, magnetic permeability and excitation frequency of the inspected material. Since the eddy current density at 3δ below the surface of the inspected workpiece is only about 5% of its surface density, 3δ is usually regarded as the limit depth that eddy current detection can reach. From formula (1.2), it can be seen that the larger f, μ, and σ are, the smaller δ is. Therefore, for a given inspected material, the eddy current detection frequency should be reasonably selected according to the requirements of the detection depth.
[0099] In pulse eddy current testing, the eddy current penetration depth formula (1.2) is also applicable to pulse eddy current testing. For example, in pulse eddy current testing, a pulse square wave excitation signal g(t) is given, where T is the pulse square wave excitation signal period, Δ is the pulse square wave width, and V is the pulse square wave amplitude value. From the Fourier transform principle, it can be known that the pulse square wave excitation signal g(t) can be expanded into a sine or cosine combination of the fundamental component and multiple harmonic components, so the Fourier expansion formula of the pulse square wave signal g(t) can be expressed as:
[0100]
[0101] Where A n is the amplitude spectrum, ω1 is the reference angular frequency, that is, the fundamental frequency, is the phase spectrum, where A n The vibration spectrum can be expressed as:
[0102]
[0103] The reference angular frequency ω1 is generally expressed as
[0104] ω1=2πf1 (1.5)
[0105] When the period of the pulse excitation signal is T = 2Δ, its reference frequency can be expressed as:
[0106]
[0107] Then the fundamental frequency component and harmonic component ω in the excitation pulse square wave signal can be expressed as:
[0108]
[0109] The frequency of a single-frequency excitation signal can generally be expressed as:
[0110]
[0111] Substituting formula (1.8) into formula (1.2), the standard penetration depth formula can be converted to:
[0112]
[0113] Substituting formula (1.7) into formula (1.9), we can get:
[0114]
[0115] When n = 1, the fundamental component is taken, and the standard penetration depth of the pulse eddy current can be defined as:
[0116]
[0117] 1.3 Simulation of pulsed eddy current detection of steel bar corrosion of concrete poles based on Ansys Maxwell
[0118] (1) Definition of material properties
[0119] The steel bar is selected as a round steel bar with a diameter of 20 mm and a length of 600 mm. The relative magnetic permeability is 200 at a temperature of 20°C and the resistivity is 0.198×10 -6 Ω / m. Since the magnetic permeability of the steel bar corrosion product Fe(OH)3 is very low, the steel bar diameter is reduced in the numerical simulation to simulate the corrosion products in the reinforced concrete specimen. The diameter of the concrete is 80mm, the length is 600mm, the thermal conductivity is 2.0W / mK, and the relative magnetic permeability u r = 1. Relative magnetic permeability of the excitation coil u r =1, the resistivity is 1.71×10 -8 Ω / m. The relative magnetic permeability of air is u r =1.
[0120] (2) Establishment of geometric simulation model
[0121] After the current is applied to the excitation coil in ANSYS, a distribution field will be generated in the coil. The distribution values of each part of each field quantity can be obtained in the ANSYS post-processing. The magnetic field strength detected by the Hall sensor can be directly calculated by ANSYS. The rusted part of the steel bar is simulated by reducing the diameter of the steel bar. The rust is determined by detecting the magnetic field strength of the normal part of the steel bar and the reduced (rusted) part of the steel bar.
[0122] In the simulation calculation of the finite element model, the boundary conditions can be divided into the following two categories: the first type of boundary conditions (or forced boundary conditions), also known as Dirichlet boundary conditions, clarify how the magnetic potential is distributed at the boundary, and the boundary position function of the magnetic potential is usually a constant or zero. In ANSYS modeling analysis, the electromagnetic potential at infinity can be considered to be zero. The second type of boundary conditions (or natural boundary conditions), also known as Neumann boundary conditions, are those in which the magnetic lines of force pass vertically through the surfaces of media of different properties without the need for special settings. For the simulation calculation of the present invention, only the first type of boundary conditions need to be considered, that is, flux parallel boundary conditions are applied around the plane area, and the magnetic flux of the outermost layer of the air model is specified to be parallel. ANSYS will automatically set the boundary of the model to the outermost layer of the air. In this model, in order to ensure the accuracy of the calculation, the electromagnetic potential at the far-field air is defined as 0. The simulated three-dimensional model is as follows: Figure 4 and Figure 5 shown.
[0123] (3) Finite element calculation results and analysis
[0124] In order to solve the problem of calculating the pulse eddy current acting on the coil to detect steel corrosion, the coil is placed at the normal position of the steel bar (the leftmost side of the model) and the steel bar corrosion position (the middle of the model). After processing with ANSYS, the characteristic curve of the magnetic field intensity is obtained as shown in the figure below: Figure 6 As shown in the figure, the horizontal axis represents the distance between the coil and the measured steel bar.
[0125] The origin of the coordinate represents the location where the coil is placed, where the magnetic field strength is large; the green curve is the magnetic field strength curve when the steel bar is normal, and the red curve is the magnetic field strength curve when the steel bar is corroded. Figure 6 It can be seen that when the coil is placed at the normal position of the steel bar, the maximum magnetic field strength is 157.1866A / m, and when the coil is placed at the corroded position of the steel bar, the maximum magnetic field strength is 152.1465A / m. By comparison, it can be seen that the magnetic field strength when the steel bar is normal is significantly greater than the magnetic field strength when the steel bar is corroded. Therefore, it is possible to determine whether the steel bar is rusted by detecting the magnitude of the magnetic field strength.
[0126] 2 System Hardware Design
[0127] 2.1 Single chip microcomputer main control circuit design
[0128] 2.1.1 Chip Selection
[0129] Solution 1: 51 MCU. 51 MCU refers to a MCU that is compatible with the 8051 instruction system launched by Intel. The 51 MCU system instructions and internal structure are simple, and many universities use it as an introductory teaching tool for MCUs. 51 MCU is also widely used in home appliances, automobiles and other fields. Its low price makes it stand out in large-scale application places.
[0130] Option 2: STM32 MCU. STM32 MCU refers to a 32-bit microcontroller with an ARM Cortex-M core. STM32 MCU has the advantages of high performance, low cost and low power consumption. Due to its simple structure, easy-to-use tools and powerful functions, it is often used in the field of industrial control.
[0131] Based on the above content, considering that the detection system needs to detect fewer parameters and the calculation is relatively simple, the STM32 chip has a low utilization rate for this system, and the STC89C52 chip is more commonly used, simple and easy to control, low cost, and stable performance, so the present invention adopts solution 1. So the STC89C52 single-chip microcomputer chip produced by Hongjing Company was selected as the core of this detection system.
[0132] 2.1.2 Single-chip microcomputer and its minimum circuit design
[0133] The minimum system of the single-chip microcomputer is mainly composed of crystal oscillator circuit, reset circuit, power supply circuit, download interface and other parts. The minimum system schematic diagram is as follows Figure 7 shown.
[0134] (1) Crystal oscillator circuit (see Figure 8 )
[0135] The function of the microcontroller crystal oscillator is to provide a basic clock signal for the system. Usually a system shares a crystal oscillator to facilitate synchronization of all parts. There are crystal oscillators in the microcontroller system. The crystal oscillator plays a very important role in the microcontroller system. It is called a crystal oscillator. It combines the internal circuit of the microcontroller to generate the clock frequency required by the microcontroller. The higher the clock frequency provided by the microcontroller crystal oscillator, the faster the microcontroller runs. The execution of all instructions connected to the chip is based on the clock frequency provided by the microcontroller crystal oscillator. STC89C52 uses a 12MHz crystal oscillator as the oscillation source. Since the microcontroller has an oscillation circuit inside, it only needs to connect a crystal oscillator and two capacitors to the outside. The capacitance is 30pf.
[0136] (2) Reset circuit
[0137] The purpose of setting and resetting a microcontroller is to initialize the circuit to a certain state. Generally speaking, the function of a microcontroller reset circuit is to initialize a state machine to an empty state. Inside the microcontroller, when resetting, the microcontroller loads some registers and storage devices with a value preset by the manufacturer. Fig. 9 ) The principle is to connect a resistor and a capacitor to the reset pin RST of the microcontroller to achieve power-on reset. The reset is valid when the reset level lasts for more than two machine cycles. The duration of the reset level must be greater than two machine cycles of the microcontroller.
[0138] (3) Power supply circuit
[0139] For a complete electronic design, the first issue is to provide a power supply module for the entire system. The stability and reliability of the power supply module is the premise and basis for the smooth operation of the system. Although the 51 single-chip microcomputer has been used for the earliest time and has the widest application range, a typical problem in actual use is that compared with other series of single-chip microcomputers, the 51 single-chip microcomputer is more susceptible to interference and program runaway. An important means to overcome this phenomenon is to configure a stable and reliable power supply module for the single-chip microcomputer system. The power supply module in this minimum system can be supplied by the USB port of the computer, or it can be supplied by an external stable 5V power supply module. A power indicator LED is connected to the power circuit. Fig.10 R11 is the current limiting resistor of the LED.
[0140] (4) Download interface (see Fig.11 )
[0141] The programming circuit is the part responsible for programming and debugging in the single-chip microcomputer minimum system, which consists of a programming interface and a download line. Through the programming circuit, the present invention can download the written program to the single-chip microcomputer, and can debug and test the single-chip microcomputer through a debugging tool.
[0142] 2.2 Driving circuit design
[0143] The driving circuit is mainly composed of the single-chip minimum system, display circuit, digital-to-analog conversion circuit, and key circuit. Its working principle is that when key 1 is pressed, sine wave, square wave, triangle wave, sawtooth wave will be switched out respectively, and the corresponding driving signal will be output; the output frequency can be changed by pressing the other three keys.
[0144] 2.2.1 Display Circuit Design
[0145] The display circuit uses LCD1602 display screen, and the single-chip microcomputer controls LCD1602 through the data bus and control bus connected to LCD1602. LCD1602 is a common character liquid crystal display screen, which is widely used in various embedded systems, such as single-chip microcomputer development, industrial control, instrumentation and other fields. It has the characteristics of rich display content, low power consumption and small size. The actual picture of LCD1602 display is as follows Fig.12 shown.
[0146] In terms of display circuit connection, the LCD1602 display module is directly interfaced with the STC89C52 microcontroller, and the eight bidirectional ports D0 to D7 of the LCD display are connected to P0.0 to P0.7 of the STC89C52 microcontroller's P0 port. Since the contrast is weakest when the V0 terminal is connected to the positive power supply and the highest when the ground power supply is connected, "ghosting" will occur when the contrast is too high, and the screen will be blurred when the contrast is too low, so a 10K potentiometer can be used to adjust its contrast when in use. The RS register selection port of the LCD1602 is connected to the P2.7 port of the microcontroller, and the selected register is determined by the setting of this port in the software program; the RW port of the liquid display is directly connected to a low level to write data; the enable EN terminal is connected to the P2.5 port of the microcontroller, and the command is executed when the enable terminal changes from a high level to a low level, and the reading is displayed. The schematic diagram of the LCD1602 display circuit is as follows Fig.13 shown.
[0147] 2.2.2 Digital-to-analog conversion circuit design
[0148] The digital-to-analog conversion chip selected by the present invention is the DAC0832 digital-to-analog converter, and the DAC0832 is then connected to the inverting proportional amplifier LM358 to realize the conversion from current to voltage. DAC0832 is an 8-resolution D / A conversion integrated chip that is fully compatible with microprocessors. DAC0832 is mainly composed of four parts: an 8-bit input register, an 8-bit DAC register, an 8-bit D / A converter, and an input control circuit. The 8-bit input register is used to store the digital quantity sent by the host, so that the input digital quantity can be buffered and latched; the 8-bit DAC register is used to store the digital quantity to be converted; the 8-bit D / A converter outputs an analog current proportional to the digital quantity; the input control circuit composed of an AND gate and a NOT-AND gate controls the selection or latching state of the two registers. The DAC0832 principle block diagram is shown as follows Fig.14 As shown:
[0149] Here, a typical single buffer interface circuit between DAC0832 and STC89C52 is used. ILE is connected to high level, / WR1 and / WR2 are connected and then connected to / WR of STC89C52, / CS and / XFER are connected and then connected to the high address of STC89C52, so that the data latch and DAC register of DAC0832 are selected at the same time. When 89C51 performs a write operation on DAC0832, a data is written into the data latch and directly into the DAC register, and the analog output changes accordingly.
[0150] DAC0832 and inverting proportional amplifier LM358 (see Fig.15 ) to realize the conversion from current to voltage. Therefore, the polarity of the output analog signal is opposite to the polarity of the reference voltage. The conversion relationship between digital quantity and analog quantity is:
[0151]
[0152] The 8-bit D / A conversion circuit inside DAC0832 is composed of an 8-bit T-type resistor network and an electronic switch. The electronic switch is controlled by the digital quantity output by the 8-bit DAC register, and the T-type resistor network can output an analog current proportional to the digital quantity. Therefore, DAC0832 usually requires an external operational amplifier to perform current-voltage conversion to obtain an analog output voltage. When the highest bit of the digital quantity input to DAC0832 is 1, the output analog voltage is positive; when the highest bit of the digital quantity input to DAC08 is 0, the output analog voltage is negative, thereby realizing the bipolar output of the analog voltage.
[0153] 2.2.3 Key Circuit Design
[0154] In this system, a few simple keys are needed to complete the input of data and commands. In this case, a stand-alone keyboard structure can be used. Its interface is as follows Fig.16The working principle of this interface circuit is very simple. When no key is pressed, each input line is at a high level; when a key is pressed, the corresponding input line is at a low level. The CPU can know which key is closed by querying the state of this input port.
[0155] According to the characteristics of the designed circuit, only 4 buttons are needed to select the waveform, and the functions realized are relatively simple. P1.0-P1.3 of P1 port are connected to four buttons respectively, which control the waveform switching, frequency addition, frequency subtraction, and frequency step value adjustment. The keyboard circuit adopts an independent uncoded keyboard structure. The keyboard schematic diagram is shown in the figure. Fig.17 shown.
[0156] 2.3 Signal acquisition and processor circuit design
[0157] The present invention adopts the Hall sensor HAL49E to detect the magnetic field strength, and then uses the analog-to-digital conversion circuit ADS1115 to receive the voltage signal output by the sensor. ADS1115 mainly converts the analog signal output by the Hall sensor into a digital signal and then sends it to the P0 port of STC89C5. The circuit uses the P0 port of the single-chip microcomputer STC89C52 to read the data of the SDA port of the external A / D conversion chip ADS1115, and then displays it on LCD12864. The circuit is mainly composed of the single-chip microcomputer STC89C52 and its minimum system circuit, HAL49E Hall sensor, analog-to-digital conversion circuit ADS1115, LCD2864 liquid crystal display circuit, keyboard circuit, buzzer alarm circuit, etc.
[0158] 2.3.1 LCD12864 display circuit design
[0159] The signal acquisition and processing circuit uses LCD12864 liquid crystal display module as the display device (see Fig.18 ), its display range is wide, it can accommodate many characters, the system is easy to control functions, the human-machine interface is intuitive, and its software design has mature technical resources. Connect the circuit diagram with the minimum system of the single-chip microcomputer.
[0160] In the present invention, the LCD12864 liquid crystal display module is connected to the single chip microcomputer in parallel. Fig.19As shown, the GND pin of the LCD12864 liquid crystal display module is the power ground of the module, and the LEDK pin is the negative electrode of the backlight source; the VCC pin is the positive power terminal of the module, the Vo pin is connected to Vout through a 10K potentiometer, and the LEDA pin is the positive electrode of the backlight source and needs to be connected to the 5V output terminal of the 5V voltage source; RS is the parallel instruction / data selection signal pin connected to P17 of the microcontroller; RW is the parallel read / write selection signal pin connected to P16 of the microcontroller; E is the parallel enable signal pin connected to P15 of the microcontroller; PSB is the parallel / serial interface selection pin connected to the 5V voltage; RST is the reset pin connected to a 10K resistor and then connected to the 5V voltage; NC is an empty pin. D0, D1, D2, D3, D4, D5, D6, and D7 are respectively connected to the 0th to 7th bits of data received and are connected to P00, P01, P02, P03, P04, P05, P06, and P07 of the microcontroller.
[0161] 2.3.2 Analog-to-digital conversion circuit design
[0162] Since the data (magnetic field strength) measured by the Hall sensor HAL49E is an analog quantity and the output voltage is an analog quantity, and the microcontroller can only accept digital signals, an A / D analog-to-digital conversion circuit is required to convert the data measured by the Hall sensor HAL49E so that the microcontroller can directly read its voltage value and determine the strength of the magnetic field.
[0163] The A / D conversion part uses a 16-bit analog-to-digital converter ADS1115 (its working principle is shown in Fig. 20 ), the ADS1115 is a high-precision, low-power, 4-channel analog-to-digital converter that is ideal for high-resolution analog-to-digital conversion for microprocessors. Its features are as follows:
[0164] Accuracy and Resolution: The ADS1115 offers 16-bit resolution, which can provide very accurate analog signal conversion.
[0165] Input Channels: With four input channels, it can be configured as four single-ended inputs, two differential inputs, or a combination of these two modes, providing flexibility for a variety of applications.
[0166] Programmed Gain Amplifier: The built-in PGA supports a variety of input ranges from ±256mV to 6.144V, so that low-amplitude signals can be read.
[0167] Data rate: The data output rate can be configured from 8SPS (samples per second) to 860SPS to suit different application requirements.
[0168] Low power consumption: The ADS1115 consumes very little power in normal conversion mode and has a standby mode that consumes even less power.
[0169] Interface: Use the I2C interface to communicate with a microcontroller (MCU) or other host device, supporting up to four different I2C addresses.
[0170] like Fig.21 The partial interface circuit shown uses the AIN0 interface of ADS1115 to receive the analog voltage signal output by the Hall sensor; the P35 interface of the microcontroller provides the required clock signal to ADS1115 through SCL, and under the action of the clock signal and the microcontroller control software, ADS1115 will complete the task of converting analog quantity into digital quantity; it is output to the P34 pin of the microcontroller through SDA, where data can be transmitted and received.
[0171] 2.3.3 Keyboard circuit design
[0172] In order to control the working state of the system and input data into the system in the single-chip microcomputer application system, the application system should be equipped with buttons or keyboards to realize simple human-computer conversation. The keyboard is a combination of a group of buttons. The key is usually a normally open push button switch. Usually, the two output points of the key are in a disconnected state, and they are closed when the key is pressed. In the single-chip microcomputer application system, it is often necessary to use a few simple keys to complete the input of data and commands. At this time, a stand-alone keyboard structure can be used. The working principle of this interface circuit is very simple. When no key is pressed, each input line is at a high level; when a key is pressed, the corresponding input line is at a low level. The CPU queries the state of this input port to know which key is closed. According to the characteristics of the designed circuit, only 3 buttons are needed to set the positive and negative limits of the detected magnetic field strength, and the functions to be implemented are relatively simple, so a stand-alone uncoded keyboard structure is adopted. The keyboard circuit diagram is as follows Fig. 22 shown.
[0173] 2.3.4 Buzzer alarm circuit design (see Fig.23 )
[0174] When the detected magnetic field strength exceeds the set range, the buzzer will alarm. The principle of buzzer sounding is that the current passes through the electromagnetic coil, causing the electromagnetic coil to generate a magnetic field to drive the vibration membrane to sound. Therefore, a certain current is required to drive it. The current output by the IO pin of the microcontroller is small, and the TTL level output by the microcontroller basically cannot drive the buzzer, so a current amplification circuit needs to be added. The S51 enhanced microcontroller experiment board uses a transistor S8550 to amplify and drive the buzzer. The positive pole of the buzzer is connected to the VCC (+5V) power supply, and the negative pole of the buzzer is connected to the emitter E of the transistor. The base B of the transistor is controlled by the pin of the microcontroller after passing through the current limiting resistor R1. When the output is high, the transistor T1 is cut off, no current flows through the coil, and the buzzer does not sound; when the output is low, the transistor is turned on, so that the current of the buzzer forms a loop and makes a sound.
[0175] 2.4 Sensor Design
[0176] 2.4.1 Sensor Selection
[0177] This detection system uses a Hall sensor to receive magnetic field signals. The selection of a linear Hall sensor is the most important part of this design. There are many types of Hall devices on the market, and their basic principles are the same. However, when measuring magnetic field strength, the linearity requirements of the Hall device are extremely high, and it must be within a suitable voltage range, the output current must be suitable, and it must be able to have low power consumption. Therefore, after a lot of comparisons and screening, a Hall sensor (HAL49E) with good linearity and low operating voltage (about 5V) was selected. It has very good linearity at a 5V operating voltage, and the magnetic field strength changes linearly from -1000GS to 1000GS, which makes the range of magnetic field strength suitable for most measurement occasions, and its temperature drift is extremely small, making the error small. Its output voltage range is also small (0-4V), which makes it easy to handle during A / D conversion. The signal output by the sensor can be directly sent to A / D conversion after being processed by a simple circuit. The physical object of the linear Hall sensor HAL49E and the following Fig.24 shown.
[0178] 2.4.2 Working Principle of Hall Sensor
[0179] Hall effect Fig.25 As shown, a Hall semiconductor is placed in a magnetic field B, and a constant current I flows from one side of the conductor to the other. Affected by the Lorentz force, the electron flow of I will deviate to one side when flowing through the Hall semiconductor, and a potential difference will be generated in the other direction of the semiconductor. This voltage is called the Hall voltage, and the Hall voltage is directly proportional to the change in magnetic field strength.
[0180] The HAL49E Hall sensor can output a large signal when working, and the effect of the residual voltage can be ignored. The voltage between V+ and V- is about 5V, and the output voltage is 0 and V-. When the magnetic induction intensity is zero, the output voltage is 2.5V by adjusting the current and voltage. Under this standard state, the relationship between its output voltage and magnetic induction intensity B is as follows: Fig.26 shown.
[0181] 2.5 Excitation coil design
[0182] As a component of the sensor probe, the main function of the excitation coil is to excite the test piece to generate an eddy current field. Usually, the sensor used in traditional eddy current detection is a mode in which the excitation and detection share a coil. However, this single coil mode is limited in many places when it is applied. In order to meet the needs of the detection progress, the larger the excitation magnetic field generated by the sensor, the better. Considering this, a larger coil needs to be designed; however, in order to meet the needs of detection sensitivity, if there are tiny defects on the test piece, it will cause disturbances in the magnetic field. The detection sensitivity is to detect the effect of this magnetic field disturbance. Considering this, a smaller coil needs to be designed. When determining the coil size, there is a contradiction between the front and back, so it is best to design the excitation part and the detection part separately. The excitation coil is wound with enameled wire, generally wound into a hollow cylinder. The size of the excitation magnetic field generated is related to the wire diameter of the enameled wire, the inner diameter, outer diameter and height of the coil, and the number of turns of the coil. The coil parameters are mainly determined according to the following principles:
[0183] (1) The distribution of the magnetic field around the coil tends to be more concentrated as the inner diameter decreases, which helps to increase the resolution of the system;
[0184] (2) The intensity of the eddy current induced in the conductive specimen increases with the outer diameter, which helps to increase the sensitivity of the detection system
[0185] (3) As the coil height decreases, the surrounding area tends to be more concentrated, and the eddy current intensity induced in the test piece also tends to gradually increase. Therefore, the design of the coil height is to use a smaller value to help the system detection resolution and increase the detection sensitivity;
[0186] (4) The impedance of the coil tends to decrease as the diameter of the enameled wire increases, which helps to reduce the Joule heat generated by the coil during the power-on process. However, if the wire diameter of the coil is designed to be too thick, the number of coil turns will decrease, which will in turn cause the magnetic field strength generated by the coil to weaken.
[0187] From the above principles, it can be seen that the present invention designs an excitation coil, which is wound with enameled wire. The actual coil is as follows Fig. 27 As shown, the coil geometric dimension parameters are shown in Table 2-1.
[0188] Table 2-1 Excitation coil parameters
[0189]
[0190] 2.6 Power Amplifier Design
[0191] In this detection system, the signal power that the drive circuit can output is very small and its load-carrying capacity is very weak, so it cannot be directly connected to the excitation coil. At this time, a suitable power amplifier is needed to amplify the magnetic field generated by the excitation coil so that it can meet the needs of the concrete pole steel corrosion detection system. The power amplifier in this detection system uses the OPA541 power amplifier (see Fig.28 ), the output parameters of the power amplifier are shown in Table 2-2.
[0192] Table 2-2 Power amplifier parameters
[0193]
[0194] 3. System software design
[0195] The software design of this system mainly includes two parts: driving circuit program design and signal acquisition and processing circuit program design. In order to write the STC89C52 microcontroller software function program code, it is necessary to use C language for programming. KeiluVision5 software is the development tool selected for this system. It provides an integrated development environment to facilitate developers to develop programs. It can easily write, debug and test codes, program in C language, and verify the code to ensure the correctness of the program. Use simulation debugging to check the function of the code. Finally, it is connected to the microcontroller system to realize the joint debugging of the microcontroller system, and its performance is experimentally verified.
[0196] 3.1 Driving circuit program design
[0197] The drive circuit software design mainly consists of the main program and the subprograms that generate waveforms. The focus is on the programming of the subprograms that generate various waveforms, and various waveforms are obtained through programming. The system software is divided into the following modules according to the function: main program module, sine wave module, square wave module, triangle wave module, delay subprogram module, etc. The frequency change of various waveforms can be achieved by inserting delay subprograms. The waveform display module uses the 8-bit characteristics of DAC0832 to send the waveform data into the CPU in the form of 8-bit data, and the waveform can be displayed with just one button.
[0198] 3.1.1 Main program design
[0199] The main program function flow chart is as follows Fig.29 shown.
[0200] Depend on Fig.29It can be seen that the main program uses buttons to control the output of different drive signals. When button 1 is pressed, the function generator switches to different waveforms; when button 2 is pressed, the function generator increases the frequency; when button 3 is pressed, the function generator decreases the frequency; when button 4 is pressed, the function generator enters the adjustment step value. At the beginning of the program, the connected LCD display will be initialized and the initial value of the timer will be calculated. Then the timer is initialized and the first waveform indicator light is turned on. Next, an infinite loop is entered. In the loop, it first detects whether it is in normal mode. If so, the buttons are scanned, otherwise the step adjustment program is executed. According to the selected waveform type, the corresponding waveform is selected through the switch statement and output to the P1 port. The entire program can continuously generate different types of drive signals through continuous loops.
[0201] 3.1.2 Subroutine Design
[0202] (1) Sine wave programming
[0203] The sine wave program flow chart is as follows Fig.30 shown.
[0204] Enter the main loop, scan the buttons to determine whether the user has performed an operation, and if a button is detected, perform the corresponding operation. Regardless of whether there is a button operation, the program will enter the waveform output stage and output the corresponding waveform data according to the selected waveform type. The sine wave programming is implemented by table lookup. The array sin
[64] stores the values of 64 sampling points in one sine wave cycle. The program reads the data in the array in sequence and outputs it to the DAC, thereby generating a sine wave signal. The frequency of the sine wave can be adjusted by setting the initial value of the timer.
[0205] (2) Square wave programming
[0206] The square wave program flow chart is shown in Figure 31.
[0207] The square wave is generated when the content in A is 0, the corresponding analog value is output, and then delayed. When the content in A is 0FFH, the corresponding analog value is output again, and then delayed, thus obtaining a square wave. The square wave program design uses the juxing
[64] array to store the values of 64 sampling points in one square wave cycle. The program reads the data in the array through a loop, outputs a high level when the value is 255, and outputs a low level when it is 0, thereby generating a square wave signal.
[0208] (3) Triangle wave programming
[0209] The triangle wave program flow chart is as follows Fig.32 shown.
[0210] The triangular wave is generated by increasing the value in A by one. When the value in A is added to 0, the value in A is decreased by one, thus generating a triangular wave in a cycle. The triangular wave program design uses the sanjiao
[64] array to store the values of 64 sampling points in one triangular wave cycle. The program reads the data in the array in sequence and outputs it to the DAC, thus generating a triangular wave signal.
[0211] (4) Delay subroutine design
[0212] The delay subroutine flow chart is as follows Fig.33 shown.
[0213] When a delay is required, the program will first disable external interrupts, and then set the delay time by initializing the counter and accumulator. Then it will enter a loop, and the delay will be achieved by decrementing the counter and accumulator values inside the loop. When the counter and accumulator values are reduced to zero, the loop will be jumped out, and the previously disabled external interrupts will be re-enabled. Finally, the program returns to the main program to continue execution. The program uses nested loops to implement the software delay function. By adjusting the number of executions of the outer loop and the inner loop, different delays can be achieved. This delay subroutine is called by other waveform generation programs to adjust the frequency of the waveform.
[0214] 3.2 Signal acquisition and processing circuit program design
[0215] 3.2.1 Main program design
[0216] The main program flow chart is as follows Fig.34 shown.
[0217] Depend on Fig.34 It can be seen that the main program design includes the core logic of the system and the coordinated control of each module. Through the timer, serial communication and LCD module, the functions of magnetic field strength detection, limit setting, data display and alarm prompt are realized. First, the Timer0Init function is called to initialize timer 0, set the working mode and initial value of the timer, and timer 0 is used to generate accurate time delay and perform timed interrupt processing. Then the UartInit function is called to initialize serial communication. It configures related parameters such as baud rate, data bit number and timer 1 to facilitate serial communication with other devices.
[0218] Then call the ADS1115 function to get the result of the analog-to-digital converter (ADC). The ADS1115 module is a high-precision analog-to-digital converter that can convert analog voltage signals into digital signals. Communicate with the ADS1115 module through the I2C bus, send a command to read the conversion result, and save the result in the variable magnetic. Then compare the value of the magnetic field strength with the preset positive and negative limits. If the magnetic field strength exceeds the limit range, the program will send an alarm signal by setting the buzzer pin. Finally, the current magnetic field strength, positive and negative limits, and status indication are displayed on the LCD screen through the LCD module. The LCD module uses the functions and constants defined in the 12864.h header file, including LCD_init, write_cmd, write_dat, and LCD_pos. These functions can control the initialization of the LCD, write commands and data, and set the display position.
[0219] 3.2.2ADS1115 analog-to-digital conversion program design
[0220] The ADS1115 module is a high-precision analog-to-digital converter that can convert analog voltage signals into digital signals. The ADS1115 analog-to-digital conversion program is designed to communicate and control the module. The ADS1115 function in the program is the core part of the program. It communicates with the ADS1115 module through the I2C bus, sends configuration commands and reads conversion results. The function communicates with the ADS1115 module by writing device addresses, register addresses and configuration parameters. The I2C communication operation uses related library functions or directly operates related registers. After sending the configuration command, the ADS1115 module will perform analog voltage conversion and save the conversion result in the conversion register. By reading the value of the conversion register, you can get the digital value after the analog voltage conversion.
[0221] 3.2.3 LCD12864 LCD display program design
[0222] The LCD12864 program design implements the control and display functions of the LCD12864 module. The LCD12864 module is initialized by calling the LCD_init function. The initialization process includes setting the basic instruction operation of the LCD, turning on the display function, clearing the display content, etc. Use the write_cmd and write_dat functions to send commands and display data to the LCD respectively. By setting the corresponding control signal and data signal, the command or data can be written to the LCD register. The LCD_pos function is used to set the current display position of the LCD. By specifying the row number and column number, the program can move the cursor to a specific position to locate the display content. In other parts of the program, according to actual needs, functions such as write_cmd, write_dat, and LCD_pos may be called to achieve specific display effects, such as displaying information such as magnetic field strength, positive and negative limits, and status indication.
[0223] 4 Prototype and debugging
[0224] After completing the software and hardware design, the present invention needs to make and debug the prototype. By testing the functions of the prototype, it can be seen whether the prototype can operate normally and whether it can meet the initial design requirements, thereby verifying the feasibility of the system design of the present invention.
[0225] 4.1 Driving circuit debugging
[0226] 4.1.1 LCD1602 display function debugging
[0227] First, check whether the data lines D0-D7 of LCD1602 are correctly connected to the P0 port of the microcontroller, and whether the control lines RS, RW, and E are correctly connected to the corresponding IO ports of the microcontroller, and provide 5V voltage to LCD1602. LCD1602 can display brightness normally (see Fig.35 ). Then, download the prepared display program to the microcontroller and run it to observe the display effect of LCD1602. If the display is abnormal, adjust the contrast potentiometer of LCD1602 until LCD1602 can display the required text and graphics normally and clearly.
[0228] 4.1.2 Debugging of digital-to-analog conversion circuit
[0229] First, check that the interface connection of DAC0832 is correct, including the data line, control line (ILE, / WR1, / WR2, / CS, / XFER, etc.) and the corresponding IO port of the microcontroller. After that, write a program to send different digital codes to DAC0832, and check whether the analog output of DAC0832 corresponds to the input digital quantity through the oscilloscope, and check whether the connection of the interface circuit such as clock signal and chip select signal is normal. Write a driver, download it to the microcontroller and run it, connect the output end to the oscilloscope, and the oscilloscope can display the waveform normally (see Fig.36 ).
[0230] 4.1.3 Overall debugging of drive circuit
[0231] The coil drive circuit mainly uses buttons to control the output of different drive voltage signals. The drive signal acts on the coil and produces an eddy current effect. Connect a 5V power supply to the drive circuit and press button 1 to turn the output signal into a square wave (see Fig.37 ), adjust the frequency step value to 10Hz by pressing button 4, and then press button 2 to increase the frequency to 20Hz. Then adjust the voltage amplitude of the output signal by adjusting the potentiometer, and adjust the output voltage to the maximum amplitude of 3.12V. At this time, the LCD1602 liquid crystal displays the current output signal as a square wave with a frequency of 20Hz (see Fig.38 ).
[0232] 4.2 Signal acquisition and processing circuit debugging
[0233] 4.2.1 LCD12864 display function debugging
[0234] After checking that everything is correct, connect the 5V power supply. When initialized without calling the display function, the display area and backlight area of the LCD12864 liquid crystal display module show different brightness, and the display area is darker but there is nothing.
[0235] Then call the display function in the program to display letters, numbers, Chinese characters and graphics. After downloading the program, you will find that although you can see the displayed content, the characters are too faint to be seen clearly. You need to adjust the potentiometer on the module to adjust the backlight. After finding the potentiometer for adjusting the backlight of the module, use a screwdriver to adjust the potentiometer while checking the display clarity until it is adjusted to a level that is clear for people to see. After the functional test is completed, let the LCD12864 liquid crystal display module display the data you want to display. As follows Fig.39 shown.
[0236] 4.2.2 Debugging of analog-to-digital conversion circuit
[0237] When debugging, you first need to check whether the communication interface (such as I2C) between ADS1115 and the microcontroller is correctly connected, including the clock line SCL, data line SDA, etc. After that, write a program to initialize and configure ADS1115, and set parameters such as working mode and sampling rate. Next, you can first test the situation without input signal to determine whether the reference value of ADS1115 is accurate; then connect the actual analog input signal (such as voltage or current signal from the sensor), move the input amount, and observe whether the digital output of ADS1115 is linear and reasonable.
[0238] 4.2.3 Overall debugging of signal acquisition and processing circuit
[0239] Bring a magnet close to the sensor, and use the Hall sensor HAL49E on the circuit to detect the magnetic field strength of the magnet. The analog-to-digital conversion chip ADS1115 receives the Hall voltage signal output by the sensor, and then converts the analog signal output by the Hall sensor into a digital signal and transmits it to the single-chip microcomputer STC89C52. Then use the conversion formula to convert it into magnetic field strength. During the debugging process, the collected magnetic field strength value can be displayed on LCD12864. Connect a 5V power supply to the signal acquisition and processing circuit. The magnetic field detected by the Hall sensor is automatically set to the initial value of 0 at this time, but when a change in the magnetic field is detected, it will increase or decrease this initial value. When the detected magnetic field exceeds the positive limit of 100mT or is lower than -049mT. The buzzer will alarm. As follows Fig.40 shown.
[0240] 4.3 Power amplifier debugging (see Fig.41 )
[0241] During debugging, you first need to check whether the hardware connection of the power amplifier is correct, including the input, output, power supply, etc., to ensure that the connection is reliable. Then apply a sine wave signal with an amplitude of 100mV and a frequency of 100Hz to the power amplifier, with a 10Ω load output, and use an oscilloscope to determine whether the signal at the output can be amplified correctly, and check that the amplification factor also meets the requirements. During the entire debugging process, you also need to pay attention to the operating temperature and heat dissipation of the power amplifier to prevent damage to components due to overheating. In short, the purpose of debugging the power amplifier is to ensure that it can work normally, amplify small signals to the required power level, and provide sufficient driving capacity for subsequent execution links.
[0242] 4.4 Overall debugging of prototype
[0243] After each circuit has been debugged, the overall debugging of the prototype can be carried out. When the prototype is powered on, each circuit of the prototype works normally without any abnormal conditions. The signal acquisition and processing circuit can display the induced magnetic field generated by the eddy current effect. The status of the prototype when not working and working is as follows Fig.42 and Fig.43 shown.
[0244] 4.5 Steel bar corrosion detection
[0245] This detection system detects the measurement points of different positions and different amounts of corrosion in artificially simulated steel bar specimens. The driving signal uses positive and negative bipolar pulse square waves as the excitation source, the excitation frequency is 20Hz, the excitation voltage Vpp is ±3V, and the pulse square wave accounts for 50%. The driving signal acts on the excitation coil after passing through the power amplifier, and the excitation coil is brought close to the steel bar to generate an eddy current effect. The present invention uses the defects of the steel bar to equivalently replace the steel bar corrosion, and detects 4 measurement points of the steel bar with a diameter of 10mm respectively, and the detection points are 3 defective parts and one non-defective part. The magnetic field strength of the 4 measurement points is collected by the signal acquisition and processing circuit, and the data is analyzed.
[0246] Table 4-1 Magnetic field strength values at different measuring points
[0247]
[0248] It can be seen from Table 4-1 that as the degree of steel bar corrosion (defects) increases, the detected magnetic field intensity will be weaker, thereby determining the rust condition of the steel bar.
[0249] Electromagnetic pulse eddy current testing technology is usually applied to single material environments such as metal pipes, while concrete pole structures are composed of two different materials, steel bars and concrete, which are quite different from traditional applications in terms of testing scenarios and working environments. Therefore, applying the technology of the present invention to the detection of steel bar corrosion on concrete poles is innovative in itself.
[0250] The present invention integrates multiple modules such as driving circuit, power amplifier, excitation coil, signal acquisition and processing circuit into a complete concrete pole steel bar corrosion detection system, realizing innovative integration at the system level. The entire design is easy to operate and cost-controlled, and the physical device is small and portable. The system of the present invention is easy to install and use, with a fast detection speed, and can meet the practical requirements of daily maintenance of power infrastructure. In particular, the system can be used to carry out preventive maintenance of poles, thereby improving maintenance efficiency and avoiding the risk of high-altitude operations.
Claims
1. A concrete pole steel bar corrosion detection system, characterized in that: The invention comprises a driving circuit, a power amplifier, an excitation coil, and a signal acquisition and processing circuit. The square wave signal generated by the driving circuit is transmitted to the power amplifier, and the signal is amplified and acts on the excitation coil. When the excitation coil is brought close to the concrete steel bar specimen, eddy currents will be generated on the surface of the steel bar under the Faraday electromagnetic induction effect. At the same time, the concrete steel bar specimen under test will generate an induced magnetic field under the action of the eddy currents generated by itself. The induced magnetic fields at different measuring points of the specimen are collected by the signal acquisition and processing circuit. The corrosion state of the steel bars of the concrete pole is detected by analyzing the magnetic field strength at each point and combining the corrosion defect information of the concrete steel bar specimen.
2. The concrete pole reinforcement corrosion detection system according to claim 1 is characterized in that: The driving circuit comprises a single chip microcomputer, a display, a digital-to-analog converter and buttons.
3. The concrete pole reinforcement corrosion detection system according to claim 2 is characterized in that: The display is an LCD1602 display, and the digital-to-analog converter is a DAC0832 digital-to-analog converter.
4. The concrete pole reinforcement corrosion detection system according to claim 1 is characterized in that: The square wave signal is a square wave signal with fixed frequency and duty cycle.
5. The concrete pole reinforcement corrosion detection system according to claim 1 is characterized in that: The power amplifier comprises an operational amplifier chip and a power supply circuit.
6. The concrete pole reinforcement corrosion detection system according to claim 5 is characterized in that: The operational amplifier chip is an OPA445 operational amplifier chip.
7. The concrete pole reinforcement corrosion detection system according to claim 1 is characterized in that: The excitation coil is wound with enameled wire to form a hollow cylindrical shape.
8. The concrete pole reinforcement corrosion detection system according to claim 1 is characterized in that: The signal acquisition and processing circuit comprises a single chip microcomputer, a Hall sensor, an analog-to-digital converter, a display and buttons.
9. The concrete pole reinforcement corrosion detection system according to claim 8, characterized in that: The Hall sensor is a HAL49E Hall sensor, the analog-to-digital converter is an ADS1115 analog-to-digital converter, and the analog-to-digital converter is an LCD12864 display.
10. The concrete pole reinforcement corrosion detection system according to claim 1, characterized in that: The single chip microcomputer used in the driving circuit and the signal acquisition and processing circuit is the STC89C52 single chip microcomputer.
Citation Information
Cited By
Concrete pole detection system based on multi-frequency pulsed eddy current
CN121633251A
