Expansion flange laser detection system and method thereof
By establishing an inner hole surface model in a three-dimensional cylindrical coordinate system and adjusting the adaptive laser incident angle of the servo drive module, the blind zone and insufficient accuracy problems of inner hole deformation detection of expansion flanges are solved, and high-precision automated detection is realized.
Patent Information
- Application Number
- CN202411798149.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-09
- Publication Date
- 2025-01-07
- Estimated Expiration
- 2044-12-09
AI Technical Summary
Existing laser inspection systems for expansion flanges are unable to accurately detect blind spots and lack precision caused by internal hole deformation, thus failing to meet the requirements of modern industry for high-precision quality inspection.
An adaptive laser detection system is adopted. By establishing an inner hole surface model in a three-dimensional cylindrical coordinate system, the deformation characteristics are described using Fourier series. The laser incident angle is adjusted in real time by a servo drive module to ensure that the laser beam is perpendicular to the inner hole surface. Precise positioning and attitude control are achieved through an improved PID algorithm.
It achieves high-precision automated inspection of the inner bore of expansion flanges, improves the accuracy and reliability of inspection, solves the positioning difficulties and blind zone problems in traditional inspection methods, and adapts to the deformation characteristics of the inner bore of expansion flanges.
Smart Images

Figure CN119269399A_ABST
Abstract
Description
Technical Field
[0001] The invention relates to an expansion flange detection system, and in particular to an expansion flange laser detection system and a method thereof. Background Art
[0002] The expansion flange is an important mechanical connection part, and its quality directly affects the sealing and safety of the pipeline system. With the continuous improvement of industrial production requirements, the detection of the internal quality of the expansion flange is becoming more and more important. At present, the expansion flange detection on the market mainly adopts laser scanning technology to detect the surface and internal defects of the flange through optical principles. This detection method has been applied to a certain extent in industrial production.
[0003] The existing expansion flange laser detection process usually includes the following steps: first, fix the flange on the detection platform; then use the laser emitting device to emit a laser beam to scan the flange surface; finally, use the photoelectric receiving device to capture the reflected light signal, and use the computer system to perform data analysis and defect determination. This detection method can achieve rapid detection of flange surface defects.
[0004] Existing expansion flange laser detection systems have significant technical limitations. Due to the special structure of the expansion flange, its inner hole will expand or shrink during the processing process. This geometric feature poses a huge challenge to the detection of internal defects. Traditional laser detection methods are often difficult to accurately locate and identify internal defects when faced with such a deformed structure. In the prior art, laser detection equipment usually uses a fixed angle to emit lasers, resulting in the laser incident direction not always being perpendicular to the inner hole surface, causing problems such as abnormal signal reflection and detection blind spots, which seriously affects the detection accuracy and reliability.
[0005] Therefore, it is of great practical significance to develop a laser detection system that can adapt to the special structural characteristics of expansion flanges and realize high-precision internal defect detection. This system should not only solve the detection problem caused by the deformed inner hole, but also have intelligent signal processing capabilities to meet the strict requirements of modern industrial production for quality inspection. Summary of the invention
[0006] The purpose of the present invention is to provide an expansion flange laser detection system and method thereof. The expansion flange laser detection system and method thereof can automatically adjust the laser incident angle, and realize high-precision detection of inner hole deformation through mathematical models and control algorithms. The system establishes an inner hole surface model in a three-dimensional cylindrical coordinate system, and adopts a real-time adaptive control strategy to ensure that the laser beam always maintains the best incident angle with the detection surface.
[0007] The above technical objectives of the present invention are achieved through the following technical solutions: A laser detection system for expansion flanges comprises: a power module, which is a 3.3V power module of a linear voltage regulator and is used to provide a stable working power supply for the system; a microcontroller module, which is electrically connected to the power module and is used to control the operation of the entire system and process detection data; a laser measurement module, which is electrically connected to the microcontroller module and is used to emit a laser beam and receive a reflection signal, so as to detect and measure the internal hole of the expansion flange; and a servo drive module, which is electrically connected to the microcontroller module and is a servo motor drive module based on a DRV8813PWPR chip and is used to accurately adjust the spatial position and incident angle of a laser by driving multiple motors.
[0008] The present invention is further configured as follows: the power module includes: two filter capacitors of 10 μF and 1 μF at the input end, used to filter out the ripple of the input power supply; a 1 μF voltage stabilizing capacitor at the output end, used to stabilize the output voltage; the chip enable terminal CE is connected to a high level to start the chip, VSS is grounded to form a complete loop, and the NC pin is left floating to prevent interference.
[0009] The present invention is further configured as follows: the microcontroller module includes: a U1 chip, which is used to process data information and control algorithms; multiple VDD pins and an analog power supply pin VDDA, which provide a stable working power supply for the chip through a decoupling capacitor network; the corresponding VSS pin and the analog ground VSSA are connected to the system ground to form a complete power supply loop; the OSC_IN and OSC_OUT pins are connected to an external crystal oscillator to generate a system clock signal; the NRST pin realizes the system power-on reset function through an RC reset circuit; the BOOT0 pin configures the chip startup mode through a pull-up or pull-down resistor.
[0010] The present invention is further configured as follows: the servo drive module includes: a first motor interface, driving a stepper motor to achieve precise adjustment of the laser pitch angle; a second motor interface, driving a DC motor to control the position movement of the laser on the longitudinal axis; and a third motor interface, driving the stepper motor to achieve rotational scanning movement of the laser around the axis.
[0011] The present invention is further configured as follows: the servo drive module also includes: an LC filter circuit composed of a 10μH inductor and a 1N4007 diode, which is used to suppress electromagnetic interference generated during the motor drive process; two 100nF filter capacitors, which are used to filter out high-frequency noise in the drive signal; a 74HC14D Schmitt trigger and a 10kΩ pull-up resistor, which are used to shape the drive signal and improve the anti-interference ability.
[0012] The present invention is further configured as follows: the laser measurement module includes: a 100nF decoupling capacitor connected to the power supply pin to filter out power supply noise during operation; I2C communication with the main controller is realized through two signal lines SCL and SDA to transmit measurement data; the GPIO1 pin outputs an interrupt signal or a status indication for synchronous control; the XSHUT pin controls the enable state of the module to realize switch control of the laser.
[0013] A data processing method for an expansion flange laser detection system comprises the following steps: (1) Surface modeling and deformation analysis: The laser performs a rapid pre-scan under the control of the detection system to obtain the actual contour information of the inner hole of the expansion flange. Based on the obtained contour data, the incident angle required for each detection position is calculated; (2) Laser attitude control: adjusting the angle state of the laser according to the calculated incident angle of each detection point; (3) Scanning detection: After the angle adjustment is completed, the motor drives the laser to rotate 360 degrees, and its rotation speed is adaptively adjusted according to the actual defect situation; (4) Signal processing and feature extraction: Filter the laser receiving signal to remove high-frequency noise and interference during the measurement process, analyze the signal through wavelet transform, obtain the time domain and frequency domain information of the signal, and extract the details of the defect characteristics; (5) Real-time control: Through the improved PID algorithm, the precise positioning and attitude adjustment of the laser are controlled, and the rotation speed, tilt angle and axial position of the laser are controlled to adapt to the deformation characteristics of the inner hole surface of the expansion flange.
[0014] The present invention is further configured as follows: surface modeling and deformation analysis include: establishing a mathematical model S(r,θ,z) of the inner hole surface in a three-dimensional cylindrical coordinate system; calculating a deviation function δ(θ,z)=r(θ,z)-R0 between the measured radius and the nominal radius; using an N-order Fourier series to decompose the deformation characteristics: r(θ,z)=R0+∑[An(z)cos(nθ)+Bn(z)sin(nθ)], n=1,2,...,N, and using the least squares method to solve the Fourier coefficients: An(z)=(2 / π)∫[r(θ,z)-R0]cos(nθ)dθ; Bn(z)=(2 / π)∫[r(θ,z)-R0]sin(nθ)dθ; to quantitatively describe the deformation.
[0015] The present invention is further configured as follows: the laser attitude control process includes: real-time calculation of the local surface normal vector at the detection point (ri, θi, zi); ; Construct the angle transformation matrix R = Rx(α)·Ry(β) to realize the spatial posture adjustment of the laser; calculate the required pitch angle α = arctan(Nz / √(Nx2+Ny2)) and yaw angle β = arctan(Ny / Nx) according to the normal vector components.
[0016] The present invention is further configured as follows: the scanning detection process includes: dynamically adjusting the laser rotation speed according to the deformation amount and the rate of change: v(t)=v0·exp(-k1|δ(θ,z)|)·exp(-k2|dδ / dθ|); acceleration limit control: |dv / dt|≤amax and |d2θ / dt2|≤εmax, so as to improve the stability of detection.
[0017] The present invention is further configured as follows: the signal processing and feature extraction process includes: the received signal is processed by a filter equation: H(s)=1 / [1+(s / ωc)^2n]; wavelet transform is used for feature extraction: W(a,b)=(1 / √a)∫s(t)ψ((tb) / a)dt; the feature vector is defined as: F=[E1,E2,...,EL,V1,V2,...,VL]; the defect judgment adopts the Mahalanobis distance criterion: D²=(F-μ)^T·Σ^(-1)·(F-μ); The real-time control process includes: improved PID algorithm: u(k)=Kp[e(k)+(T / Ti)∑e(j)+(Td / T)(e(k)-e(k-1))]; PID parameters are defined by integrating the Ziegler-Nichols method as follows: Kp=0.6Ku; Ti=0.5Tu; Td=0.125Tu.
[0018] In summary, the present invention has the following beneficial effects: The modular design realizes high-precision automatic detection of the inside of the expansion flange. The system uses the ME6211C33M5G-N linear regulator to provide a stable 3.3V operating voltage, combined with the GD32F303CBT6 microcontroller for data processing and control, and realizes real-time data interaction with the laser measurement module through the I2C interface. The core innovation lies in its adaptive laser angle adjustment mechanism. By establishing a mathematical model of the inner hole surface in a three-dimensional cylindrical coordinate system and using Fourier series to describe the deformation characteristics, the deformation of the inner hole can be accurately characterized. The servo drive module based on the DRV8813PWPR chip can adjust the attitude of the laser in real time according to the calculation results to ensure that the laser beam is always perpendicular to the inner hole surface. The system realizes precise positioning control of the laser by calculating the local surface normal vector and establishing an angle transformation matrix. During the scanning process, the system also has a speed adaptive adjustment function, which can automatically adjust the scanning speed according to the deformation degree of the detection surface, which not only ensures the detection accuracy but also improves the detection efficiency. This intelligent detection solution effectively solves the problems of positioning difficulties and detection blind spots in traditional laser detection methods when facing deformation of the inner hole of the expansion flange, and significantly improves the accuracy and reliability of detection. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] Figure 1 It is a flow chart of the expansion flange laser detection system; Figure 2 This is the circuit diagram of the power module; Figure 3 is the circuit diagram of the microcontroller module; Figure 4 This is the circuit diagram of the laser measurement module; Figure 5 This is the circuit diagram of the servo drive module; Figure 6 It is a structural schematic diagram of the expansion flange. DETAILED DESCRIPTION
[0020] like Figure 1 As shown, a laser detection system for expansion flanges includes a power module. A microcontroller module connected to the power module. The microcontroller module and the power module are electrically connected to a laser measurement module for detecting and measuring the internal hole of the expansion flange. The microcontroller module receives data measured by the laser measurement module and performs algorithm processing on the data. The microcontroller module is connected to a servo drive module. The servo drive module is used to transmit the data processed by the microcontroller to the servo drive module, and the position and angle of the laser are automatically adjusted by the servo drive module.
[0021] 1. Power module like Figure 2As shown, the power module is a 3.3V power module of the ME6211C33M5G-N linear regulator. LDO1 converts the input voltage VOUT_OUT (5V power supply) into a 3.3V output (VCC_3V3).
[0022] The input end uses two capacitors (C1, C2) of 10μF and 1μF for filtering, and the output end uses a 1μF capacitor (C3) to stabilize the output voltage. The current from VOUT_OUT enters the VIN pin of LDO1 after being filtered by the input capacitor, and is output from the VOUT pin after voltage stabilization inside the chip, and then filtered by the output capacitor to form a stable 3.3V power supply. The CE pin of the LDO1 chip is connected to a high level to enable operation, VSS is grounded, and the NC pin is left floating.
[0023] The above circuit structure can provide a stable 3.3V output and has protection functions such as over-current, short-circuit and over-temperature.
[0024] 2. Microcontroller module like Figure 3 As shown, the microcontroller module is a control module based on the GD32F303CBT6 microcontroller. Among them, the U1 chip (GD32F303CBT6) is powered by a single 3.3V power supply. VCC_3V3 provides the working power supply of the chip through multiple VDD pins (VDD_1, VDD_2, etc.) and the analog power supply pin VDDA, and the corresponding VSS pins (VSS_1, VSS_2, etc.) and the analog ground VSSA are connected to the system ground (GND) to form a complete power supply circuit.
[0025] The OSC_IN and OSC_OUT pins can be used to connect an external crystal oscillator to provide a basic clock source for the U1 chip. The NRST pin is used for system reset control and is used to connect an external RC reset circuit. The BOOT0 pin is used to configure the boot mode. This is an existing technology and will not be described here.
[0026] The U1 chip introduces multiple groups of general IO ports such as PA0-PA15 and PB0-PB15, which are used to connect the laser measurement module and the servo drive module. The measurement data of the laser measurement module is input into the U1 chip, and after the U1 chip data processing, the information is passed to the servo drive module, and then the angle and position of the laser are adjusted accordingly.
[0027] The above-mentioned microcontroller module is capable of executing programs, performing data processing, controlling peripherals and communicating with external devices.
[0028] 3. Laser measurement module like Figure 4As shown, the laser measurement module is powered by a 3.3V power supply and is equipped with a 100nF decoupling capacitor C5 for power supply filtering. The circuit uses an I2C communication interface to achieve data transmission with the main controller through two signal lines SCL (PB6) and SDA (PB7). GPIO1 (PB8) can be used as an interrupt signal or status indication, and XSHUT (PB9) is used to control the enable status of the module.
[0029] All signals are led out through the six-pin interface of the laser connector P1, including power, ground and four signal lines. The current mainly powers the module from VCC_3V3 through the decoupling capacitor C5, and the communication signal is transmitted bidirectionally between the main controller and the module. Through the above settings, the external laser is connected to the connector P1 through the connection form of the socket plug, so as to realize the information interaction between the laser measurement module and the microcontroller module.
[0030] 4. Servo drive module like Figure 5 As shown, the servo drive module is a servo motor drive module circuit based on the DRV8813PWPR chip U3. The circuit uses a 3.3V power input, and an LC filter circuit composed of a 10μH inductor L1 and a 1N4007 diode D1, in conjunction with two 100nF capacitors (C1, C2) form a complete power filter network to provide a stable operating voltage for driving the DRV8813PWPR chip, achieving the technical purpose of effectively suppressing power ripple and switching noise.
[0031] A 74HC14D Schmitt trigger (U4) is used to process and condition the control signals (PA9, PA8, PB15, PB14, PB13) from the microcontroller, and a 10kΩ pull-up resistor R1 is used to ensure the stability of the signal level.
[0032] The control signal is transmitted to the control end of the DRV8813 driver chip through the interface. The output end of the driver chip leads to multiple groups of motor control signals, including M1_A / M1_B, M2_AZ / M2_BZ, and M3_A / M3_B for controlling three different groups of stepper motors. Among them, M1_A / M1_B is used to control the angle adjustment of the laser. It is a rotary motor that transmits information according to the U1 chip in the microcontroller module and drives the laser to change its emission angle. The M2_AZ / M2_BZ interface is used to control the longitudinal position adjustment of the laser. When entering the expansion flange (such as Figure 6When the laser is in the inner hole of the expansion flange, the laser scanning measurement is performed in a stepping manner around the inner hole of the expansion flange. M3_A / M3_B is used to control the rotation of the laser. After reaching the fixed position and adjusting the angle of the laser, the motor connected to M3 drives the laser to rotate one circle, and then the inner hole at that position is detected. The above three groups of motors can realize the corresponding defect detection inside the expansion flange at different positions.
[0033] In addition, the corresponding output signal of U3 can be reconnected and returned to the chip U1 to determine the position information and angle information of the laser, which will not be repeated here.
[0034] The above expansion flange laser detection system realizes complete automatic detection function through modular design. The power module with ME6211C33M5G-N linear regulator as the core of the system provides a stable 3.3V working voltage, and the multi-stage filter capacitor design ensures the power supply quality and anti-interference ability of the system. The GD32F303CBT6 microcontroller realizes data acquisition, algorithm processing and drive control, and interacts with the laser measurement module in real time through the I2C interface. The laser measurement part adopts a standardized six-pin interface design, combined with the signal processing circuit and GPIO interrupt mechanism to ensure the accuracy and real-time performance of the measurement data. In addition, the servo drive module based on the DRV8813PWPR chip realizes precise control of the laser angle and position through LC filtering and Schmitt trigger signal conditioning, so that it can be adaptively adjusted according to the changing trajectory of the inner hole of the expansion flange, so that the emission direction of the laser is kept perpendicular to the inner hole of the expansion flange, thereby performing a full-scale scanning and detection of the inner wall of the expansion flange.
[0035] Based on the above-mentioned microcontroller module, the present application provides a data processing method for an expansion flange laser detection system, and further performs algorithmic processing on the data processing of chip U1, so that the laser can automatically adjust its laser emission angle at different positions of the expansion flange and scan and detect the inner hole of the expansion flange.
[0036] This application takes an industrial laser with a wavelength of 1064nm and a power of 100mW as an example, and its working environment temperature is 20±2°C and the humidity is ≤65%RH.
[0037] A data processing method for an expansion flange laser detection system comprises the following steps: (1) Surface modeling and deformation analysis First, the laser performs a quick pre-scan under the control of the detection system to obtain the actual contour information of the inner hole of the expansion flange. Based on the obtained contour data, the chip U1 calculates the optimal incident angle required for each detection position. In the subsequent fine detection process, the laser adjusts the laser angle in real time according to the calculation results to ensure that the laser beam emission angle is always perpendicular to the inner hole surface.
[0038] The specific contour modeling is as follows: In the three-dimensional cylindrical coordinate system (r, θ, z), the inner hole surface is represented as a continuous function S (r, θ, z). Considering the deviation between the inner hole surface and the ideal cylindrical surface, the deviation function is defined as: δ (θ, z) = r (θ, z) - R0, where R0 is the nominal radius.
[0039] The N-order Fourier series is used to describe the deformation characteristics: r(θ,z)=R0+∑[An(z)cos(nθ)+Bn(z)sin(nθ)],n=1,2,...,N The Fourier coefficients are solved by the least squares method: An(z)=(2 / π)∫[r(θ,z)-R0]cos(nθ)dθ Bn(z)=(2 / π)∫[r(θ,z)-R0]sin(nθ)dθ.
[0040] As mentioned above, in the expansion flange laser detection system, r represents the actual distance from the flange axis to the inner hole surface (mm), θ represents the rotation angle of the laser in the cross section (rad), and z represents the distance coordinate along the flange axis (mm). R0 is the nominal inner diameter size when the flange is designed, the S(r,θ,z) function describes the overall shape of the inner hole surface, and δ(θ,z) reflects the deviation between the actual radius and the nominal radius. In the Fourier series expansion, An(z) and Bn(z) are the cosine and sine coefficients, respectively, which characterize the deformation characteristics of different orders, and n determines the complexity of the deformation that the system can describe. In the actual detection process, r(θ,z) corresponds to the distance data obtained by the laser ranging sensor, θ and z correspond to the rotation angle and axial position of the laser, respectively. The system needs to adjust the laser incident angle in real time according to the calculated An(z) and Bn(z) to ensure the detection accuracy.
[0041] (2) Laser attitude control At the detection point (ri,θi,zi), calculate the local surface normal vector: The laser attitude is adjusted by the servo drive module, and the angle transformation matrix is: R = Rx (α) · Ry (β). α and β are obtained by inverse solution of the normal vector: α=arctan(Nz / √(Nx²+Ny²)) β = arctan(Ny / Nx) In laser attitude control, (ri,θi,zi) represents the current detection point coordinates, where ri is the radial distance, θi is the circumferential angle, and zi is the axial position. N(θ,z) is the normal vector of the point, which consists of three components: It represents the partial derivative of radius with respect to angle, reflecting the circumferential rate of change; It represents the partial derivative of the radius with respect to the axial position, reflecting the axial rate of change; r represents the current radius value.
[0042] Denominator Used for vector normalization.
[0043] R represents the attitude transformation matrix, which consists of the rotation matrix Rx (α) around the X axis and the rotation matrix Ry (β) around the Y axis. α is the pitch angle, which is obtained by the inverse tangent of the normal vector Z component Nz and the projection length on the XY plane; β is the yaw angle, which is determined by the inverse tangent of the Y component Ny and the X component Nx of the normal vector projected on the XY plane. These angle values are directly used to control the servo drive module to achieve precise attitude adjustment of the laser.
[0044] The above process describes how the laser adjusts its incident angle in real time according to the surface features. At the detection point (ri, θi, zi), the normal vector N(θ, z) of the point is first calculated, which is perpendicular to the inner hole surface. The normal vector consists of three components: radial derivative , the current radius r, and the axial derivative , and normalized by the denominator.
[0045] In order to keep the laser beam perpendicular to the detection surface, the system needs to adjust the laser to a direction consistent with the normal vector, controlling the pitch angle α around the X axis and the yaw angle β around the Y axis respectively. The angle transformation matrix R represents the overall angle adjustment process.
[0046] The α angle is calculated by the angle between the projection of the normal vector on the XY plane and the Z axis, and the β angle is determined by the angle between the projection of the normal vector on the XY plane and the X axis. The above adjustment ensures that the laser beam always hits the detection surface at the best angle, thus obtaining the most accurate measurement results.
[0047] (3) Scanning detection After the angle adjustment is completed, the motor drives the laser to rotate 360 degrees, and its rotation speed can be adaptively adjusted according to the actual defect situation. The adjustment equation is: v(t)=v0·exp(-k1|δ(θ,z)|)·exp(-k2|dδ / dθ|) Acceleration constraints: |dv / dt|≤amax |d²θ / dt²|≤εmax In the adjustment equation, v(t) represents the real-time rotation speed, and v0 is the initial set speed. δ(θ,z) is the previously defined deformation, and dδ / dθ represents the derivative of the deformation with respect to the angle, reflecting the severity of the deformation. k1 and k2 are attenuation coefficients, which are used to adjust the sensitivity of the speed to the deformation and deformation gradient. In the acceleration constraint, dv / dt represents the rate of change of velocity, and its absolute value must be less than the maximum allowable acceleration amax; d²θ / dt² represents the angular acceleration, and its absolute value must be less than the maximum allowable angular acceleration εmax. These constraints ensure that the system motion is smooth and controllable. Through the above-mentioned speed control, the laser automatically decelerates when it detects an area with large deformation or drastic deformation changes, thereby improving the measurement accuracy.
[0048] (4) Signal processing and feature extraction The received signal is processed by a filter: H(s)=1 / [1+(s / ωc)^2n]; wavelet transform is used for feature extraction: W(a,b)=(1 / √a)∫s(t)ψ((tb) / a)dt; its eigenvector: F=[E1,E2,...,EL,V1,V2,...,VL]; the Mahalanobis distance criterion is used for defect identification: D²=(F-μ)^T·Σ^(-1)·(F-μ).
[0049] In the above equation, H(s) is the transfer function of the filter, where ωc is the cutoff frequency and n is the filter order, which is used to suppress high-frequency noise. W(a,b) is the continuous wavelet transform, s(t) is the original signal, ψ is the wavelet mother function, a is the scale parameter that controls the frequency resolution, and b is the translation parameter that determines the time position. The feature vector F consists of the energy feature Ei and the variance feature Vi, and L is the number of decomposition layers. In defect discrimination, D² is the Mahalanobis distance, F is the feature vector of the sample to be discriminated, μ is the mean vector of the normal sample, and Σ is the covariance matrix.
[0050] The filter first filters the laser receiving signal to remove high-frequency noise and interference during the measurement process. Then, the signal is analyzed at a multi-scale by wavelet transform, which can simultaneously obtain the time domain and frequency domain information of the signal and extract the local details of the defect characteristics. The system combines the energy feature Ei and the variance feature Vi into a feature vector F to fully characterize the defect characteristics. Finally, the Mahalanobis distance criterion is used for defect discrimination. The above process takes into account the correlation between the various feature components and is insensitive to the scale of the feature. It can accurately identify abnormal deformations and defects on the inner hole surface, reduce the misjudgment rate, and effectively improve the detection reliability and accuracy of the system.
[0051] (5) Real-time control Using improved PID algorithm: u(k)=Kp[e(k)+(T / Ti)∑e(j)+(Td / T)(e(k)-e(k-1))] The above PID parameters are integrated by the Ziegler-Nichols method and defined as: Kp=0.6Ku; Ti=0.5Tu; Td=0.125Tu.
[0052] The above is an improved PID control algorithm, where u(k) is the control output at the kth moment, e(k) is the error signal, and T is the sampling period. Kp is the proportional coefficient, Ti is the integral time constant, and Td is the differential time constant. The parameters are adjusted by the Ziegler-Nichols method. Where Ku is the critical proportional gain of the system, and Tu is the critical oscillation period. The proportional term directly reflects the current error, the integral term eliminates the static error, and the differential term improves the dynamic response performance of the system. This control algorithm can achieve precise control of the laser position and posture, and ensure the stability and response speed of the detection system.
[0053] The improved PID algorithm mentioned above is used to control the precise positioning and attitude adjustment of the laser. In the actual detection process, it is necessary to control the rotation speed, tilt angle and axial position of the laser to adapt to the deformation characteristics of the inner hole surface. The algorithm adjusts the speed of the motor and the angle of the servo system by calculating the control output u(k) in real time, where the proportional term ensures the response speed, the integral term eliminates the steady-state error, and the differential term suppresses overshoot and oscillation. The Ziegler-Nichols tuning method ensures the rationality of the control parameters, so that the system can respond quickly and remain stable, thereby achieving smooth movement and precise tracking of the laser.
[0054] Overall working process: The expansion flange laser detection system described in the present invention first obtains the inner hole contour information through rapid pre-scanning, and uses Fourier series to establish a mathematical model to describe the surface deformation characteristics. During the detection process, the system calculates the normal vector of the detection point in real time, controls the attitude of the laser through the angle transformation matrix, and ensures that the laser beam is always perpendicular to the detection surface. The laser adopts an adaptive speed control strategy when scanning 360 degrees, and automatically slows down in the deformation-significant area to improve accuracy. The received signal is filtered and wavelet transformed for feature extraction, and the Mahalanobis distance criterion is used for defect discrimination. The entire process is controlled in real time by an improved PID algorithm to ensure accurate adjustment of the laser position and attitude. The system realizes high-precision and high-reliability automated detection by integrating multiple algorithms, and can effectively identify abnormal deformation and defects of the surface of different inner hole shapes caused by different positions of the expansion flange, and has the characteristics of high detection accuracy, strong adaptability and fast response.
[0055] The following is an example calculation of the above algorithm processing, as follows: The following example illustrates the specific calculations during the detection process: Assume that an expansion flange with a nominal inner diameter R0=100mm is tested at an axial position z=50mm.
[0056] 1. Surface modeling calculation example: Assuming that the actual radius r=100.5mm is measured at the θ=45° position, the deviation value can be calculated: δ(45°,50mm)=100.5mm-100mm=0.5mm; Taking N=3rd order Fourier series, the expansion of a certain measurement cross section is: r(θ,50)=100+0.3cos(θ)+0.2sin(θ)+0.15cos(2θ)+0.1sin(2θ)+0.05cos(3θ)+0.03sin(3θ).
[0057] 2. Attitude control calculation: At the point (100.5mm, 45°, 50mm), the calculated normal vector may be: N=[-0.2,100.5,-0.1] / √(0.04+10100.25+0.01)=[-0.00199,0.99999,-0.00099]; The angle that needs to be adjusted is calculated from this: α=arctan(-0.1 / √(0.04+10100.25))≈-0.057°; β=arctan(-0.2 / 100.5)≈-0.114°.
[0058] 3. Speed control example: Assume that the initial speed v0=10rad / s, k1=0.5, k2=0.3, When the deformation |δ|=0.5mm and the deformation gradient |dδ / dθ|=0.2mm / rad are detected: v(t)=10·exp(-0.5·0.5)·exp(-0.3·0.2)≈7.79rad / s.
[0059] 4. Feature extraction: Assume that the measured signal at a certain point is transformed by wavelet to obtain the energy characteristics of three layers of decomposition: E1=0.8,E2=0.5,E3=0.2; Variance characteristics: V1=0.05, V2=0.03, V3=0.01; Feature vector F = [0.8, 0.5, 0.2, 0.05, 0.03, 0.01]; If the normal sample mean vector μ=[0.7, 0.4, 0.1, 0.04, 0.02, 0.01], Calculating the Mahalanobis distance can determine whether there is a defect.
[0060] 5.PID control: Assume that the angle error e(k)=0.2° at a certain moment and the sampling period T=0.01s; If Ku=1.5, Tu=0.4s, then: Kp=0.9, Ti=0.2s, Td=0.05s; u(k)=0.9[0.2+(0.01 / 0.2)∑e(j)+(0.05 / 0.01)(0.2-0.18)] is used to adjust the motor output torque.
[0061] This specific embodiment is merely an explanation of the present invention and is not a limitation of the present invention. After reading this specification, those skilled in the art may make non-creative modifications to the present embodiment as needed. However, as long as they are within the scope of the claims of the present invention, they are protected by the patent law.
Claims
1. An expansion flange laser detection system, characterized in that ,include: A power supply module, which is a 3.3V power supply module of a linear regulator, and is used to provide a stable working power supply for the system; A microcontroller module, the microcontroller module is electrically connected to the power module, and the microcontroller module is used to control the operation of the entire system and process detection data; A laser measurement module, which is electrically connected to the microcontroller module and is used to emit a laser beam and receive a reflected signal to detect and measure the internal hole of the expansion flange; A servo drive module, the servo drive module is electrically connected to the microcontroller module, the servo drive module is a servo motor drive module based on the DRV8813PWPR chip, and the spatial position and incident angle of the laser are accurately adjusted by driving multiple motors.
2. The expansion flange laser detection system according to claim 1 is characterized in that , the power module comprises: The two filter capacitors of 10μF and 1μF at the input end are used to filter out the ripple of the input power supply; The 1μF voltage-stabilizing capacitor at the output end is used to stabilize the output voltage; The chip enable terminal CE is connected to a high level to start the chip, VSS is grounded to form a complete loop, and the NC pin is left floating to prevent interference.
3. The expansion flange laser detection system according to claim 1 is characterized in that , the microcontroller module includes: U1 chip, used to process data information and control algorithms; Multiple VDD pins and analog power supply pin VDDA provide stable working power for the chip through decoupling capacitor network; The corresponding VSS pin and analog ground VSSA are connected to the system ground to form a complete power supply loop; The OSC_IN and OSC_OUT pins are connected to an external crystal oscillator to generate a system clock signal; The NRST pin realizes the system power-on reset function through the RC reset circuit; The BOOT0 pin configures the chip boot mode through a pull-up or pull-down resistor.
4. The expansion flange laser detection system according to claim 1 is characterized in that , the servo drive module includes: The first motor interface drives the stepper motor to achieve precise adjustment of the laser pitch angle; The second motor interface drives the DC motor to control the position movement of the laser on the longitudinal axis; The third motor interface drives the stepper motor to realize the rotational scanning motion of the laser around the axis.
5. The expansion flange laser detection system according to claim 4 is characterized in that , the servo drive module also includes: The LC filter circuit composed of 10μH inductor and 1N4007 diode is used to suppress the electromagnetic interference generated during the motor drive process; Two 100nF filter capacitors are used to filter out high-frequency noise in the drive signal; 74HC14D Schmitt trigger and 10kΩ pull-up resistor are used to shape the drive signal and improve anti-interference ability.
6. The expansion flange laser detection system according to claim 1 is characterized in that , the laser measurement module includes: A 100nF decoupling capacitor is connected to the power pin to filter out power noise during operation; The I2C communication with the main controller is realized through the two signal lines SCL and SDA to transmit the measurement data; GPIO1 pin outputs interrupt signal or status indication for synchronization control; The XSHUT pin controls the enable state of the module to realize the switching control of the laser.
7. A data processing method for an expansion flange laser detection system, characterized in that , including the following steps: (1) Surface modeling and deformation analysis: The laser performs a rapid pre-scan under the control of the detection system to obtain the actual contour information of the inner hole of the expansion flange. Based on the obtained contour data, the incident angle required for each detection position is calculated; (2) Laser attitude control: adjusting the angle state of the laser according to the calculated incident angle of each detection point; (3) Scanning detection: After the angle adjustment is completed, the motor drives the laser to rotate 360 degrees, and its rotation speed is adaptively adjusted according to the actual defect situation; (4) Signal processing and feature extraction: Filter the laser receiving signal to remove high-frequency noise and interference during the measurement process, analyze the signal through wavelet transform, obtain the time domain and frequency domain information of the signal, and extract the details of the defect characteristics; (5) Real-time control: Through the improved PID algorithm, the precise positioning and attitude adjustment of the laser are controlled, and the rotation speed, tilt angle and axial position of the laser are controlled to adapt to the deformation characteristics of the inner hole surface of the expansion flange.
8. The data processing method according to claim 7, characterized in that: The surface modeling and deformation analysis include: Establish the inner hole surface mathematical model S(r,θ,z) in the three-dimensional cylindrical coordinate system; Calculate the deviation function of the measured radius and the nominal radius δ(θ,z)=r(θ,z)-R0; Decomposition of deformation features using N-order Fourier series: r(θ,z)=R0+∑[An(z)cos(nθ)+Bn(z)sin(nθ)],n=1,2,...,N, Solve for the Fourier coefficients using the least squares method: An(z)=(2 / π)∫[r(θ,z)-R0]cos(nθ)dθ; Bn(z)=(2 / π)∫[r(θ,z)-R0]sin(nθ)dθ; Used to quantitatively describe deformation.
9. The data processing method according to claim 7, characterized in that ,The laser attitude control process includes: Real-time calculation of the local surface normal vector at the detection point (ri,θi,zi); ; Construct the angle transformation matrix R = Rx (α) · Ry (β) to achieve the spatial posture adjustment of the laser; Calculate the required pitch angle α=arctan(Nz / √(Nx2+Ny2)) and yaw angle β=arctan(Ny / Nx) based on the normal vector components; The scanning detection process includes: Dynamically adjust the laser rotation speed according to the deformation amount and change rate: v(t)=v0·exp(-k1|δ(θ,z)|)·exp(-k2|dδ / dθ|); Acceleration limit control: |dv / dt|≤amax and |d2θ / dt2|≤εmax, to improve the stability of detection.
10. The data processing method according to claim 7, characterized in that: The signal processing and feature extraction process includes: The received signal is processed by the filter as follows: H(s)=1 / [1+(s / ωc)^2n]; Wavelet transform is used for feature extraction: W(a,b)=(1 / √a)∫s(t)ψ((tb) / a)dt; The eigenvector is defined as: F=[E1,E2,...,EL,V1,V2,...,VL]; Defect identification uses the Mahalanobis distance criterion: D²=(F-μ)^T·Σ^(-1)·(F-μ); The real-time control process includes: Improved PID algorithm: u(k)=Kp[e(k)+(T / Ti)∑e(j)+(Td / T)(e(k)-e(k-1))]; The PID parameters are defined by the Ziegler-Nichols integration method: Kp=0.6Ku;Ti=0.5Tu;Td=0.125Tu.
Citation Information
Patent Citations
Scanner for scanning three-dimensional profile of internal surface of tubular object
CN104215198A
Pipeline inner wall morphology and center axis straightness measuring device and method
CN107063119A
Measurement method for inner outline of tube on basis of laser triangulation method
CN107228637A
Pipeline gap detection system and method based on multiple scanning modes
CN115112033A
Pipe inspection robot and detection method for inner wall of conduit
KR102645206B1
Cited By
Construction beam frame detection system based on laser detection
CN120467219A