All-digital processing high-precision electric torque wrench capable of improving robustness

Through the combination of full digital processing and smart meter chips, the control of high-precision electric torque wrenches is realized, solving the problems of traditional wrenches in voltage fluctuations and slow response speed during construction, improving the robustness and accuracy of the wrenches, and satisfying complex needs. needs of industrial environments.

CN118747016APending Publication Date: 2024-10-08SHANDONG ZHONGXING ELECTRIC TOOLS
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410724341.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-05
Publication Date
2024-10-08

AI Technical Summary

Technical Problem

Traditional electric torque wrenches have low torque accuracy when voltage fluctuates and are prone to out-of-control phenomena. They also have slow response times when the rotor is blocked or stuck during construction, which can easily lead to damage to the motor and machinery.

Method used

It adopts a high-precision electric torque wrench control circuit with full digital processing, and directly samples current and voltage signals through the combination of high-speed digital sampling unit and main control unit. It uses smart meter chips and STM32G030 processing chips, combined with Savitzky-Golay filtering technology, to realize voltage automatic control. Stable and high-precision control of torque signals.

Benefits of technology

It improves the control accuracy and stability of the wrench, enhances the robustness to voltage changes, reduces the failure rate and service life, and meets the torque accuracy and stability requirements in complex industrial environments.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118747016A_ABST
    Figure CN118747016A_ABST
Patent Text Reader

Abstract

The invention provides an all-digital processing high-precision electric torque wrench capable of improving robustness, aiming at enhancing the robustness of the wrench, a high-precision electric torque wrench control system is realized by adopting all-digital processing, and the robustness of the wrench to voltage change is enhanced by adopting a simple and practical voltage self-stabilization method. The torque precision is not influenced by external voltage fluctuation; meanwhile, a Savitzky-Golay filtering technology is applied, so that the torque precision of the wrench is improved; the defects of a traditional wrench are overcome, the intelligent electric meter chip is adopted for conducting high-precision collection on current and voltage signals, and simplicity, reliability and high precision of a circuit are achieved; the full-digital processing alternating current sampling technology is adopted, the voltage self-stabilization technology is used, the control precision of the wrench is not affected by voltage fluctuation, the Savitzky-Golay filter is applied to filter torque signals, and the precision and robustness of the wrench are greatly improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to the technical field of electric torque wrenches, and in particular to a full digital processing high-precision electric torque wrench with improved robustness. Background Art

[0002] The statements in this section merely provide background art related to the present invention and do not necessarily constitute prior art.

[0003] As a wrench that provides precise torque control, electric torque wrenches have shown a wide range of uses in various application fields. In particular, electric torque wrenches play an important role in processes such as automobile manufacturing and mechanical assembly that require precise torque application to bolts; in addition, electric torque wrenches are also widely used in the torque application of high-strength bolts during the construction of steel structure bridges.

[0004] Electric torque wrenches generally control torque by current detection. Electric torque wrenches are driven by a series motor with a multi-stage planetary gear reducer to obtain low speed and high torque for bolt tightening. The series motor is named because the excitation winding and the field winding are connected in series. It has the characteristics of high speed, small size, light weight, and convenient speed regulation. It is widely used in the electric wrench industry. Typical mechanical and electrical characteristics of series motors are as follows: Figure 1 As shown, under the condition of constant voltage, the motor load torque and current present an approximately linear relationship. By measuring the motor current, the desired torque output can be obtained. This is the implementation principle of the current-controlled torque wrench.

[0005] However, there is a common defect in the design of traditional electric torque wrench control system, that is, only the current signal of the motor is sampled for torque control, ignoring the influence of voltage fluctuation on torque accuracy, resulting in significant changes in torque when voltage fluctuation occurs on site; At present, current control wrenches usually adopt a simple "DC sampling" method, and the usual implementation method is: the motor current becomes a small signal after passing through the current sensor, and then becomes a pulsating DC through bridge rectification, and after RC filtering, AD conversion is performed and then sent to the single-chip microcomputer for processing. The single-chip microcomputer processes the DC signal. However, due to the nonlinearity of the rectifier diode and the large time constant RC filter circuit, it will cause poor sampling linearity, large error, easy drift, low real-time performance and other problems. It is also easy to be interfered, resulting in low torque accuracy and even "out of control" phenomenon; In addition, when the wrench encounters faults such as stalling and jamming during construction, the reaction speed is slow, and the motor and mechanical parts are prone to damage. Summary of the invention

[0006] In order to address the deficiencies in the prior art, the present invention provides a fully digital processing high-precision electric torque wrench with improved robustness. By combining software and hardware, a fully digitally processed high-precision electric torque wrench with enhanced robustness is realized in a fully digital manner, and a new wrench control idea is proposed, which has high-precision control and strong stability, and can meet the requirements for torque accuracy and stability in complex industrial environments.

[0007] In order to achieve the above object, the present invention adopts the following technical solution:

[0008] In a first aspect, the present invention provides a fully digital processing high-precision electric torque wrench control circuit with improved robustness.

[0009] A fully digital processing high-precision electric torque wrench control circuit with improved robustness includes: a high-speed digital sampling unit and a main control unit. Current signals and voltage signals are directly input into the high-speed digital sampling unit after being isolated and reduced by a mutual inductor. Current sampling values ​​and voltage sampling values ​​output by the high-speed digital sampling unit are input into the main control unit. The main control unit directly obtains effective values ​​of the current signal and the voltage signal through a discrete digital integration algorithm, and controls the electric torque wrench according to the effective values ​​of the current signal and the voltage signal.

[0010] As an optional feature of the first aspect of the present invention, a high-speed digital sampling unit includes: a single-phase smart meter chip ADE7953 and a peripheral circuit connected to the single-phase smart meter chip ADE7953; a main control unit includes: an STM32G030 processing chip and a peripheral circuit connected to the STM32G030 processing chip;

[0011] The high-speed digital sampling unit provides a zero-crossing signal to the main control unit. During the sampling process, it determines whether an overcurrent or overvoltage fault occurs based on the effective values ​​of the current signal and the voltage signal. If an overcurrent or overvoltage fault occurs, the thyristor is turned off at the zero-crossing point of the next AC cycle to suspend the operation of the electric torque wrench.

[0012] As a further limitation of the first aspect of the present invention, the control circuit is placed in the aluminum housing, and the control circuit is potted with epoxy resin.

[0013] As a further limitation of the first aspect of the present invention, the speed of the motor is reduced at low torque by adjusting the voltage so that different torques correspond to different working voltages, thereby achieving speed regulation of the electric torque wrench;

[0014] V=Vmin+(Vmax–Vmin)·(Tset–Tmin) / (Tmax–Tmin);

[0015] Among them, V is the output voltage, Vmin is the minimum operating voltage, Vmax is the maximum operating voltage, Tset is the set torque, Tmin is the minimum torque, and Tmax is the maximum torque.

[0016] As a further limitation of the first aspect of the present invention, the output voltage is the product of the input voltage and the voltage adjustment coefficient, and the relationship between the voltage adjustment coefficient k and the thyristor trigger angle α is:

[0017] The trigger angle is converted into a trigger delay, and the voltage adjustment coefficient under the set trigger angle is obtained according to the constructed lookup table of the trigger delay and the voltage adjustment coefficient.

[0018] As a further limitation of the first aspect of the present invention, in each AC cycle interruption control, a moving average process of a set window is performed on the voltage effective value, and the moving average process result is used as an input of the regulator to complete a voltage regulation.

[0019] As a further limitation of the first aspect of the present invention, a series motor with a working voltage of 170V is used as the power of the electric torque wrench. When the input voltage is 220V±20% (176V-264V), the minimum working voltage of the motor when the electric torque wrench is started is 100V, and the maximum working voltage of the motor when the maximum torque is output is 170V. The maximum input voltage of the electric torque wrench is 264V, and the voltage regulation range is 264V / 100V=2.64;

[0020] A 284-point trigger table is used to achieve a voltage regulation range of 2.64 times, with an adjustment accuracy of 2.65 / 284. The period of each half wave of 50Hz is 10ms. The time resolution of 25us is used to trigger the thyristor, and the trigger is performed once every half cycle. The trigger angle resolution is 180° / 40000=0.0045°.

[0021] As a further limitation of the first aspect of the present invention, when the electric torque wrench is started, the trigger angle of the thyristor is slowly reduced to achieve soft starting.

[0022] As a further limitation of the first aspect of the present invention, the torque signal of the electric torque wrench is filtered by using Savitzky-Golay filtering, and the convolution coefficient is selected according to a convolution coefficient table of different orders and window corrections.

[0023] In a second aspect, the present invention provides a fully digital processing high-precision electric torque wrench with improved robustness, comprising the fully digital processing high-precision electric torque wrench control circuit with improved robustness as described in any one of claims 1 to 9.

[0024] Compared with the prior art, the present invention has the following beneficial effects:

[0025] 1. The present invention adopts a smart meter chip to simplify the software and hardware design, and the circuit structure is more concise and miniaturized. At the same time, under the premise of ensuring high precision, the electromagnetic compatibility of the device is improved, the reliability of the wrench is enhanced, the failure rate is reduced, and the service life is extended.

[0026] 2. The present invention adopts voltage self-stabilization technology, which effectively improves the adaptability of the wrench in different voltage environments and ensures that the accuracy can be maintained when the voltage fluctuates. This technology is mainly implemented through software without adding additional hardware, making the solution more flexible and convenient, while also reducing costs and complexity.

[0027] 3. At the software level, the present invention uses a Savitzky-Golay filter to filter the torque signal and provides a corresponding convolution coefficient table for wrench design, which further improves the accuracy and robustness of the wrench. Practice in actual scenarios has proved that the application of these measures has greatly improved the effectiveness and reliability of the design scheme.

[0028] 4. The present invention fills the gap in control accuracy and stability of electric torque wrenches and provides an efficient and reliable solution for industrial applications.

[0029] Advantages of additional aspects of the present invention will be given in part in the following description, and in part will become obvious from the following description, or will be learned through practice of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS

[0030] The accompanying drawings in the specification, which constitute a part of the present invention, are used to provide a further understanding of the present invention. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute improper limitations on the present invention.

[0031] Figure 1 A schematic diagram of the mechanical and electrical characteristics of a typical series-excited motor provided in the background technology;

[0032] Figure 2 A schematic diagram of a control circuit provided by the present invention. DETAILED DESCRIPTION

[0033] The present invention will be further described below in conjunction with the accompanying drawings and embodiments.

[0034] It should be noted that the following detailed descriptions are exemplary and are intended to provide further explanation of the present invention. Unless otherwise specified, all technical and scientific terms used herein have the same meanings as those commonly understood by those skilled in the art to which the present invention belongs.

[0035] In the absence of conflict, the embodiments of the present invention and the features of the embodiments may be combined with each other.

[0036] In this implementation, a fully digital processing high-precision electric torque wrench with improved robustness is proposed. With the goal of enhancing the robustness of the wrench, a high-precision electric torque wrench control system is realized by fully digital processing. A simple and practical voltage self-stabilization method is adopted to enhance the robustness of the wrench to voltage changes, so that the torque accuracy is not affected by external voltage fluctuations; at the same time, the Savitzky-Golay filtering technology is applied to improve the torque accuracy of the wrench; the present invention solves the defects of traditional wrenches, and uses smart meter chips to collect current and voltage signals with high precision, realizing the simplicity, reliability and high precision of the circuit. The fully digital processing AC sampling technology is adopted, and the voltage self-stabilization technology is used to make the control accuracy of the wrench not affected by voltage fluctuations; the Savitzky-Golay filter is applied in the software to filter the torque signal. These measures greatly improve the accuracy and robustness of the wrench.

[0037] This implementation has made improvements in the hardware part and introduced a smart meter chip to collect current and voltage signals with high precision, thus achieving a simple, reliable and high-precision circuit; at the same time, the design has good electromagnetic compatibility and strong anti-interference ability. We also use full digital processing AC sampling technology to achieve high-precision torque control.

[0038] The present invention adopts a fully digital AC sampling composed of a smart energy meter chip. Full digital processing of AC sampling means that after the current and voltage signals are isolated and reduced by the mutual inductor, they are no longer rectified and integrated, but directly sent to a high-precision A / D for high-speed digital sampling; then, the effective value (RMS) of the current and voltage is directly obtained through a discrete digital integration algorithm; this high-speed sampling makes the response to fault current and voltage faster. If an overcurrent or overvoltage fault occurs during the sampling process, the thyristor can be turned off in time at the zero-crossing point of the next AC cycle, thereby protecting the motor and mechanical parts from damage.

[0039] In order to improve sampling accuracy and simplify the circuit, the wrench uses the single-phase smart meter chip ADE7953 from Analog for current and voltage sampling. This is a high-precision energy measurement IC, mainly used for single-phase energy meters. The chip can directly measure the effective value of line voltage and current. The device has three built-in 24-bit Σ-Δ ADCs and a high-precision energy measurement core. The ADE7953 can access the on-chip registers through the SPI interface.

[0040] Effective value measurement principle: Effective value (Rms) measures the amplitude of an AC signal; specifically, the effective value of an AC signal is equal to the DC amount required to produce the same amount of power on the same load. The discrete mathematical representation of effective value calculation is shown in formula (1). This is the basic principle of voltage and current RMS measurement. The chip completes the sampling of current and voltage signals at a sampling rate of 6.99k, and realizes the digital processing of AC current and voltage signals through formula (1). This process is completed inside the chip, and the program only needs to access the corresponding register to obtain the RMS value of voltage and current.

[0041]

[0042] Specifically, the hardware circuit is as follows Figure 2 As shown, the circuit mainly includes STM32G030 ARM CPU, smart meter chip ADE7953, current transformer CT, voltage transformer PT and thyristor trigger circuit. Due to the use of smart meter chip, the whole hardware circuit is very simple. The circuit uses (5A / 5ma) current sensor and (2mA / 2mA) voltage sensor to measure current and voltage. R7 and R9 are I / V conversion resistors of current and voltage channels. R1-6 and C1-6 in the circuit form an anti-aliasing filter. The filtered signal enters the full differential input of the chip, and the maximum input differential voltage is ±500mV. AD7953 is connected to the CPU through the SPI interface. The RMS value of current and voltage can be directly obtained by reading the corresponding register through the SPI interface. The ZX pin is the voltage zero-crossing output. The ZX pin is connected to the CPU external interrupt, which is used to read the register data and thyristor phase modulation trigger at the voltage zero-crossing point. The power supply part can use a reliable quality wide voltage input (85-265V) isolated AC / DC switching power supply module. In summary, the application of this smart meter chip can accurately measure current and voltage and provide zero-crossing signals, realizing the "minimalist" design of the electric constant torque wrench control system circuit. The simple and reliable circuit design can greatly improve the reliability of the wrench.

[0043] In order to improve the robustness of the overall hardware circuit, the present invention adopts a number of key technical measures. First, the entire circuit is placed in an aluminum housing, which not only serves as a heat sink for the thyristor, but also provides good electromagnetic shielding for the entire device, enhancing the electromagnetic compatibility (EMC) of the device; secondly, the present invention uses epoxy resin to potting the entire circuit, which improves the moisture resistance, vibration resistance and insulation performance of the device, thereby significantly improving the robustness of the entire circuit. These two key technical measures together ensure the stable operation of the device in various harsh environments.

[0044] In this implementation, voltage self-stabilization control is performed. Figure 1From the characteristic curve of the series-excited motor, it can be seen that the influence of voltage change on torque is more significant. Therefore, in order to ensure that the current-controlled wrench is in an ideal working state, a stable working voltage must be provided to the motor; however, the current wrench controller design often ignores this point.

[0045] According to the principles of power electronics, in the case of sinusoidal alternating current, when the thyristor trigger angle α is changed to adjust the phase and voltage, the relationship between the input and output voltages is shown below:

[0046]

[0047]

[0048] V o =V i *k (4);

[0049]

[0050]

[0051] In the formula, Vo is the output voltage, Vi is the input voltage, k is the voltage adjustment coefficient, and α is the thyristor trigger angle. It can be seen from formulas (2)-(6) that by changing the trigger angle α, voltage regulation can be achieved. The input voltage Vi is measured in real time every cycle. According to the set Vo, Vo / Vi is calculated to obtain the voltage regulation coefficient k, and then the trigger angle α of the current cycle is calculated. By changing the trigger angle of the next cycle, dynamic voltage regulation can be achieved, thereby achieving the purpose of voltage stabilization.

[0052] Because formula (7) is a nonlinear equation, α is not easy to solve directly. A lookup table is used here to complete the calculation of the trigger angle. The corresponding trigger angle should be converted into the trigger delay. Here, a positive order lookup table (Table 1) is generated using Sinmulink according to formula (7). The lookup table is organized in the following form: the first column is the voltage regulation coefficient k obtained by Vo / Vi, and the second column is the corresponding trigger delay pulse number. This pulse number multiplied by 25us is the actual trigger delay time.

[0053] Table 1: Lookup table for positive order.

[0054]

[0055]

[0056]

[0057]

[0058]

[0059] The present invention adopts a series-excited motor with a designed working voltage of 170V as the power of the wrench. The advantage of this is that when the input voltage is 220V±20% (176V-264V), the minimum working voltage of the motor is 100V when the wrench is started, and the maximum working voltage of the motor is 170V when the maximum torque is output. The maximum input voltage is 264V, so the voltage regulation range is 264V / 100V=2.64. A 284-point trigger table is used here to achieve a voltage regulation range of 2.64 times, and the adjustment accuracy is 2.65 / 284<1%. The period of each half wave of 50Hz is 10ms. Here, a time resolution of 25us is used to trigger the thyristor, and the trigger is performed once per half cycle. The trigger angle resolution is 180° / 40000=0.0045°.

[0060] In order to ensure the robustness of voltage self-stabilization, the present invention adopts a simple and effective moving average technology. Specifically, in each AC cycle interruption program, the present invention performs a moving average processing with a window of 5 on the voltage RMS value, and then uses it as the input of the regulator to complete a voltage regulation. This method can effectively smooth voltage fluctuations, maintain the system's response speed to voltage changes, and ensure stable voltage output.

[0061] Embedded system implementation method: The chip ZX pin is the voltage zero-crossing interrupt output, which is connected to the external interrupt pin of the CPU. This interrupt is triggered twice per cycle. The register (0x3C URMS) is read at the rising edge to obtain the RMS value of the voltage, and then the 5-cycle voltage average is obtained by moving average. Since the LPF used in the effective value signal path is not an ideal filter, the RMS register must be read synchronously with the zero-crossing signal, and then the voltage regulation coefficient k is calculated, and the corresponding delay value is obtained by looking up the table. When the next cycle arrives, this value is used to initialize the timer with a period of 25us. When the counting pulse is equal to the set value, the thyristor trigger pulse is issued to complete the phase modulation and voltage regulation.

[0062] The ADE7953 of the present invention provides period measurement of the voltage channel, and the measurement result is provided in the period register. The period register is updated once for each power frequency cycle, and it takes 30ms to 40ms to establish before the period measurement is stable; for a 50Hz power supply, the value of the period register is about 4460, and for a 60Hz power supply, the value is about 3716. According to this characteristic, the wrench can automatically identify 50Hz and 60Hz power supply frequencies, and set different trigger delay coefficients for different power supply frequencies, so that the wrench can automatically adapt to the power supply frequencies of different countries and regions.

[0063] The rotor diameter of the industrial frequency series-excited motor is relatively large, and it has a large moment of inertia when rotating at high speed, which may cause torque overshoot at small torque. In order to ensure the torque accuracy under small torque, the present invention finds that there is a linear relationship between voltage and speed based on the characteristic curve of the motor; therefore, the present invention can reduce the speed of the motor at small torque by adjusting the voltage, so that different torques correspond to different working voltages, thereby achieving speed regulation.

[0064] The present invention can use a simple linear formula to calculate the voltage value. The voltage corresponding to the maximum torque is 170V, and the working voltage corresponding to the minimum torque is 120V. Then, when the torque range is between 400Nm and 1000Nm, the corresponding voltage value can be obtained by the following linear calculation:

[0065] V=Vmin+(Vmax–Vmin)·(Tset–Tmin) / (Tmax–Tmin)(8);

[0066] Where: V is the output voltage, Vmin is the minimum operating voltage, Vmax is the maximum operating voltage, Tset is the set torque, Tmin is the minimum torque, and Tmax is the maximum torque.

[0067] The large current when the series-excited motor starts will cause a great impact on the windings and mechanical parts inside the motor, especially shortening the life of the commutator and brushes. The motor is soft-started by gradually increasing the voltage, so that the current gradually increases during the starting process, reducing the electrical and mechanical impact caused by the sudden change of current. It has a significant effect on reducing faults and extending the service life of the wrench. In order to protect the wrench and increase the life of the wrench, the present invention realizes the soft start of the wrench. This starting method has many benefits. First, soft starting slowly increases the speed of the motor, reducing the impact when the wrench is started. Secondly, according to on-site practice, it is found that most wrench damage is caused by rotor short circuit or jamming of the reduction mechanism gear. Without using soft starting, the full voltage is directly applied to the rotor that is nearly short-circuited, and the instantaneous large current will cause damage to the thyristor. When using soft starting, the voltage slowly increases from low to high. When the above situation occurs, due to the low voltage, the current passing through the motor is small. When the short circuit occurs, the current exceeds the set torque and the wrench automatically stops. This reduces the damage to the wrench and is a very practical technology. In the present invention, it is specifically achieved by slowly reducing the trigger angle of the thyristor at startup.

[0068] The accurate measurement of bolt torque is very important for bolt tightening. When tightening, the bolt torque increases nonlinearly. For current-controlled wrenches, the measured torque data may be affected by various interferences and noises, such as electromagnetic interference, mechanical disturbances, and small burrs on bolts, nuts, and washers that cause torque disturbances. In the experiment, it was also found that when the current effective value Irm data (50 times per second) read directly by using the cycle is used directly for wrench torque control, the torque discrete value is large, resulting in low control accuracy. Secondary filtering should be performed to eliminate the above interference.

[0069] The present invention analyzes and compares three digital filters and proposes a technical solution for improving torque accuracy by applying Savitzky-golay filtering technology.

[0070] (1) A first-order lag filter, also known as a first-order low-pass filter or inertial filter, is a simple filtering method. Its mathematical principle is based on a first-order difference equation. The output signal Y(t) is calculated by taking a weighted average of the current input signal X(t) and the previous filtered output signal Y(t-1):

[0071] Y(t)=a*X(t)+(1-a)*Y(t-1)(9);

[0072] The main idea of ​​the algorithm is to smooth the signal and remove high-frequency noise by introducing delay and feedback. a is the hysteresis factor, which controls the weight of new and old information in the filtering process. The value of α is usually between 0.1 and 0.9. For fast-changing signals, the filtering effect is relatively weak.

[0073] This kind of filter can be realized in the circuit through an RC low-pass filter. The RC integration circuit of the traditional DC sampling wrench mentioned above implicitly includes this filtering link. This issue is discussed in depth here: the AC acquisition part of the present invention uses an RC anti-aliasing filter on the circuit input to prevent spectrum aliasing, and a FIR digital filter is built into the ADE7953 chip. The time constant of these filters is small, so the fault current can be captured in time to achieve rapid protection of the motor. The main function of the filter discussed in the present invention is to filter out mechanical disturbances and interference caused by fine burrs of the bolt group. Because the output stage speed of the wrench is low after deceleration, the time constant of this filter is large. The defect of the traditional wrench is that in order to ensure torque accuracy and simple circuit, only this RC filter with a large time constant is used, resulting in excessive delay and slow response speed, so the motor fault cannot be handled in time.

[0074] (2) Moving average filter is used to remove noise and sudden changes while retaining the trend information of the signal. The basic principle is to take the average value of the data at the current moment and the previous period as the filtered value. The formula is as follows:

[0075]

[0076] The filtering process is based on a sliding window. Each time a new data point is input, the data point in the window buffer is first moved forward to cover the old data, and the new data point is placed at the end of the buffer. The average value of the N data points in the window is calculated as the value of the current output point. The calculation only considers the data points at the current moment and before, and does not consider the impact of subsequent data points. The filter has good real-time performance, but cannot predict future data. It cannot respond well to rapidly changing signals or signals containing high-frequency components. Since the average value of multiple data points is used, a certain delay effect will be introduced.

[0077] (3) The Savitzky-Golay filter is an improvement on the moving smoothing algorithm, also known as moving window least squares polynomial smoothing. The main idea is to use the least squares method to perform polynomial fitting on the data within a given window, and then use the fitting result to replace the center point in the window as the smoothed output value. This can remove noise and sudden changes while maintaining the overall trend of the data.

[0078] The Savitzky-Golay filter is an improvement on the moving smoothing algorithm, also known as moving window least squares polynomial smoothing. The main idea is to use the least squares method to perform a polynomial fit on the data within a given window, and then use the fitting result to replace the center point in the window as the smoothed output value. This can remove noise and mutation values ​​while maintaining the overall trend of the data.

[0079] The convolution coefficients of the Savitzky-Golay filter can be obtained by the least squares fitting method. Suppose the input signal is t, and it is required to make an n-order differential at t0. It is necessary to construct a window of length L, which includes all t i (i=0,1,…,L-1), and perform n-order polynomial fitting on the data in the window. Let the fitting result be p(t), then the n-order differential at t0 is:

[0080]

[0081] It is necessary to find an n-order polynomial p(t) so that the function values ​​and n-order derivatives at the L points in its window are closest to the original signal x(t) and its n-order derivative value. To achieve this goal, the n-order polynomial can be expressed as a linear combination of its coefficients of each order:

[0082]

[0083] Then, the least squares method can be used to solve the coefficients a0, a1, …, a n-1Specifically, the present invention can be used for each time point t i The function value and derivative value at are written in a vector form:

[0084]

[0085] After stacking the vectors of all time points, we get an L×(n-1)-dimensional matrix A and an L-1-dimensional column vector y:

[0086]

[0087] Then solve the coefficient vector a by the least squares method:

[0088] a=(A T A) -1 A T y (15);

[0089] Finally, we get a convolution coefficient vector h, whose length is L. We can get the corresponding convolution coefficient by arranging the solved coefficient vector according to a certain rule:

[0090] h=[a0,a1,…,a n-1 ,0,-a n-1 , …, -a1, -a0] T (16);

[0091] SG filter can adapt to different signal characteristics by adjusting the window size and polynomial order. The window size N represents the number of continuous data points used for fitting, which is determined by the signal characteristics and noise conditions that need to be smoothed. Smaller windows can capture the details of the signal more sensitively, but are also more sensitive to noise. Larger windows can smooth more data points and better remove noise, but may cause loss of signal characteristics or generate larger delays. To ensure that the window has a center point, N is an odd number; this allows the fitted polynomial to better approximate the original data near the center point of the window. Common window size options include 3, 5, 7, etc.

[0092] When choosing the order of the polynomial, you need to consider the changing trend of the signal: usually a higher-order polynomial can better preserve the detailed characteristics of the signal, while a lower-order polynomial is more suitable for overall smoothing. Usually, choosing a polynomial of order 2 to 4 can meet most smoothing requirements.

[0093] Here we calculate and organize the convolution coefficient table of order = 2-4 and window size winsize = 5-13 used to construct the filter, see Table 2. This convolution coefficient can be used to easily construct the SG digital filter in the program.

[0094] Table 2: Savitzky-Golay filter convolution coefficients table.

[0095]

[0096]

[0097] Savitzky-Golay filtering has the following advantages over first-order lag filtering and moving average filtering:

[0098] (1) Maintaining signal characteristics: Savitzky-Golay filtering can better preserve the characteristics of the original signal because it is based on polynomial fitting rather than simple moving average or first-order lag. When using the same window width, the SG filter has higher sensitivity in tracking signals and less delay, while removing noise and sudden changes and maintaining the overall trend of the data.

[0099] (2) Noise immunity: Savitzky-Golay filtering has a strong ability to suppress stationary noise and ramp noise, which makes it more effective in processing signals with large noise interference;

[0100] (3) Accuracy and stability: Due to the use of polynomial fitting, Savitzky-Golay filtering can provide more accurate and stable estimation results, especially when there are few data points or large noise interference;

[0101] (4) Flexibility: Savitzky-Golay filtering allows users to select the polynomial order and window size, thereby flexibly adjusting the filtering effect in different applications;

[0102] (5) Computational efficiency: Compared with other advanced filtering methods, Savitzky-Golay filtering is usually faster and suitable for real-time processing.

[0103] Therefore, Savitzky-Golay filtering has advantages in maintaining signal characteristics, anti-noise ability, accuracy and computational efficiency, and can improve the accuracy and stability of the measurement data of the electric torque wrench, which is of great significance for ensuring the assembly quality and safety of the bolts.

[0104] In summary, the present invention provides a fully digital processing high-precision electric torque wrench with enhanced robustness. The wrench system has high-precision control and strong stability, and can meet the requirements for torque accuracy and stability in complex industrial environments. The present invention uses the above-mentioned innovative hardware circuit design and a combination of software and hardware to achieve a fully digitalized high-precision electric torque wrench with enhanced robustness, and proposes a new wrench control idea, which has extremely high industrial value.

[0105] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.

Claims

1. A fully digital processing high-precision electric torque wrench control circuit with improved robustness, characterized in that: include : High-speed digital sampling unit and main control unit. The current signal and voltage signal are directly input into the high-speed digital sampling unit after being isolated and reduced by the mutual inductor. The current sampling value and voltage sampling value output by the high-speed digital sampling unit are input into the main control unit. The main control unit directly obtains the effective value of the current signal and the voltage signal through the discrete digital integration algorithm, and controls the electric torque wrench according to the effective value of the current signal and the voltage signal.

2. The all-digital processing high-precision electric torque wrench control circuit with improved robustness as claimed in claim 1, characterized in that: A high-speed digital sampling unit, including: a single-phase smart meter chip ADE7953 and a peripheral circuit connected to the single-phase smart meter chip ADE7953; a main control unit, including: an STM32G030 processing chip and a peripheral circuit connected to the STM32G030 processing chip; The high-speed digital sampling unit provides a zero-crossing signal to the main control unit. During the sampling process, it determines whether an overcurrent or overvoltage fault occurs based on the effective values ​​of the current signal and the voltage signal. If an overcurrent or overvoltage fault occurs, the thyristor is turned off at the zero-crossing point of the next AC cycle to suspend the operation of the electric torque wrench.

3. The all-digital processing high-precision electric torque wrench control circuit with improved robustness as claimed in claim 1, characterized in that: The control circuit is placed in an aluminum housing and is potted with epoxy resin.

4. The all-digital processing high-precision electric torque wrench control circuit with improved robustness as claimed in claim 1, characterized in that: By adjusting the voltage, the motor speed is reduced at low torque, so that different torques correspond to different working voltages, thereby realizing the speed regulation of the electric torque wrench; V=Vmin+(Vmax–Vmin)·(Tset–Tmin) / (Tmax–Tmin); Among them, V is the output voltage, Vmin is the minimum operating voltage, Vmax is the maximum operating voltage, Tset is the set torque, Tmin is the minimum torque, and Tmax is the maximum torque.

5. The all-digital processing high-precision electric torque wrench control circuit with improved robustness as claimed in claim 1, characterized in that: The output voltage is the product of the input voltage and the voltage adjustment coefficient. The relationship between the voltage adjustment coefficient k and the thyristor trigger angle α is: The trigger angle is converted into a trigger delay, and the voltage adjustment coefficient under the set trigger angle is obtained according to the constructed lookup table of the trigger delay and the voltage adjustment coefficient.

6. The all-digital processing high-precision electric torque wrench control circuit with improved robustness as claimed in claim 5, characterized in that: In each AC cycle interruption control, the voltage effective value is processed by moving average with a window of 5, and the moving average processing result is used as the input of the regulator to complete a voltage regulation.

7. The all-digital processing high-precision electric torque wrench control circuit with improved robustness as claimed in claim 1, characterized in that: A series motor with a working voltage of 170V is used as the power of the electric torque wrench. When the input voltage is 220V±20% (176V-264V), the minimum working voltage of the motor when the electric torque wrench is started is 100V, and the maximum working voltage of the motor when the maximum torque is output is 170V. The maximum input voltage of the electric torque wrench is 264V, and the voltage adjustment range is 264V / 100V=2.64; A 284-point trigger table is used to achieve a voltage regulation range of 2.64 times, with an adjustment accuracy of 2.65 / 284. The period of each half wave of 50Hz is 10ms. The time resolution of 25us is used to trigger the thyristor, and the trigger is performed once every half cycle. The trigger angle resolution is 180° / 40000=0.0045°.

8. The all-digital processing high-precision electric torque wrench control circuit with improved robustness as claimed in claim 1, characterized in that: When the electric torque wrench is started, the trigger angle of the thyristor is slowly reduced to achieve soft start.

9. The all-digital processing high-precision electric torque wrench control circuit with improved robustness as claimed in claim 1, characterized in that: Savitzky-Golay filtering is used to filter the torque signal of the electric torque wrench, and the convolution coefficient is selected according to the convolution coefficient table of different orders and window corrections.

10. A fully digital processing high-precision electric torque wrench with improved robustness, characterized in that: A fully digital processing high-precision electric torque wrench control circuit with improved robustness comprising the circuit described in any one of claims 1 to 9.