Next Article in Journal
Lie Group Classification, Symmetry Reductions, and Conservation Laws of a Monge–Ampère Equation
Previous Article in Journal
Symmetry Breaking in Fractional Difference Chaotic Equations and Their Control
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

A High-Accuracy Decoupling Balance Control Method for an Auto-Balancing Bridge Based on a Variable-Domain Fuzzy-PID Controller

School of Automation Engineering, University of Electronic Science and Technology of China, Chengdu 611731, China
*
Author to whom correspondence should be addressed.
Symmetry 2025, 17(3), 354; https://doi.org/10.3390/sym17030354
Submission received: 3 February 2025 / Revised: 19 February 2025 / Accepted: 24 February 2025 / Published: 26 February 2025
(This article belongs to the Section Engineering and Materials)

Abstract

:
The auto-balancing bridge method is an impedance measurement method with higher accuracy than other traditional methods. The balance control algorithm within the auto-balancing bridge is a crucial component. Its performance in maintaining symmetry between the current flowing through the test element and the current flowing through a known reference resistor determines the impedance measurement accuracy. However, using the imaginary impedance of a practical reference resistor in the bridge diminishes the convergence accuracy of the auto-balancing bridge. In this paper, a feedforward decoupling module is first constructed to compensate for the imaginary part of the reference resistor and decouple the auto-balancing bridge into two independent balance control channels, namely, the real and imaginary channels. Then, two balance controllers based on the variable-domain fuzzy-PID algorithm are used for these two separated balance control channels in order to improve the convergence accuracy and adaptability of bridge balancing. Finally, the particle swarm optimization method is used to automatically tune the controller’s parameters to enhance the development efficiency of the auto-balancing bridge. Experimental results show that this bridge balance control algorithm can quickly stabilize the unbalanced current of the bridge. For the practical auto-balancing bridge circuit, its relative impedance measurement error remains below 0.05%. This method effectively improves measurement accuracy and provides crucial technical support for the application of auto-balancing bridges in the high-precision measurement field.

1. Introduction

The auto-balancing bridge method overcomes the disadvantage of traditional bridge methods that require time-consuming manual adjustment. Meanwhile, it can work at a frequency range from a few Hz to tens of kHz and has high impedance measurement accuracy. The basic auto-balancing bridge method utilizes the virtual short and virtual open features of operational amplifiers (op-amps) to maintain a virtual ground potential at point L and regulate the current balance I x = I r , as shown in Figure 1 [1,2]. However, the impedance measurement accuracy of this auto-balancing bridge structure depends on the input characteristics of op-amps, especially the input offset current and input bias current. In practical circuits, the potential at point L cannot be strictly maintained at a constant zero, especially at high frequencies, which can also affect the measurement accuracy. Therefore, this basic auto-balancing bridge method is generally used for measurement frequencies below 100 kHz.
Aiming at the above issue, HP proposed the synchronous demodulation–modulation auto-balancing bridge structure [3] shown in Figure 2, which seeks to solve the problem of zero potential drift at point L. This structure utilizes lock-in amplification technology to detect the imbalanced current between the device-under-test (DUT) and a reference resistor, then converts it into a proportional voltage signal. This structure modulates the voltage signal by using the excitation frequency as a feedback signal to adjust the balance state of the bridge. Based on this fully analog circuit implementation bridge balance controller, HP has launched the 4271A precision LCR instrument [4].
However, realizing such a balance controller using analog circuits requires a large number of components to form a complex circuit, meaning that the reliability, temperature drift, and aging issues of analog devices all become factors affecting the long-term measurement accuracy of the auto-balancing bridge. Thanks to the performance improvements provided by digital signal processing (DSP) chips, balancing controllers for auto-balancing bridges are gradually adopting digital implementations. By deploying complex and high-performance digital signal processing algorithms and advanced control algorithms in DSP chips, it is possible to achieve optimal matching of these balance controllers’ convergence accuracy and speed.
Hu et al. designed a bridge balancing control method based on the improved Brent algorithm by utilizing a numerical roots solving algorithm for nonlinear equations [5,6]. This method transforms the bridge balance control problem into an equation roots finding problem, and realizes high-precision impedance measurement by optimizing the iterative solution process of Brent’s algorithm in the complex domain. Zhu [7] and Xie [8] both designed direct current (DC) auto-balancing bridges based on a fuzzy controller for resistance measurement. These methods have high measurement accuracy for pure resistance measurement, but lack the ability to detect the imaginary impedance of inductive and capacitive devices. Ai et al. [9] designed a double excitation auto-balancing bridge method for inductance measurement. This method utilizes the steepest descent method to design the bridge balance control algorithm, and also uses the all-phase Fast Fourier Transform (apFFT) algorithm to process the unbalanced current data acquired by the analog-to-digital converter (ADC) in order to improve convergence accuracy. Cai et al. proposed a bridge balance control method combining the two-step excitation method (TSEM) and the incremental iteration method (IIM) [10] to reduce the influence of the op-amp input impedance on the auto-balancing bridge. Li et al. proposed a bridge balance control method based on the secant method [11]; however, the secant method has the possibility of divergence. Luo et al. proposed a bridge balance control algorithm with the improved Brent algorithm for the application of automatically balanced bridges in complex impedance measurements [12]. Their approach further optimizes the performance of the Brent algorithm in the complex domain. Li et al. proposed a bridge balance controller based on the least mean square (LMS) adaptive filtering algorithm [13]. Their method considers the magnitude of the imaginary and real parts of the adjustable reference voltage source as the filter coefficients, then uses the bridge imbalance current as the input error to regulate bridge balancing. This iterative LMS-based balance control method is easily implemented on field-programmable gate array (FPGA) chips to improve computational efficiency. However, it requires point-by-point computation of ADC sample data, making the balance controller computationally intensive. Malik et al. designed a time domain-based automatic bridge balance control method for capacitance measurement of capacitive sensors [14]. This method converts the phase difference between the bridge output signal and the reference signal into a time interval and performs self-balancing control of the bridge based on proportional–integral (PI) control, using the time interval as the input and the digital-to-analog converter (DAC) amplitude as the output.
The impedance of a DUT is usually complex. As shown in Figure 2, digital implementation of the auto-balancing bridge based on synchronous demodulation and modulation structure requires closed-loop control of both the real and imaginary parts of the unbalanced current in order to maintain the balanced state of the bridge. Therefore, the auto-balancing bridge is regarded as a two-dimensional control system. Under high-frequency excitation, the imaginary impedance of the reference resistor generated by the parallel equivalent capacitance and series equivalent inductance cannot be ignored, leading to coupling between the two control channels and downgrading the balance performance of the bridge balance controller. To solve this problem, we first analyzed the coupling effect of the imaginary impedance of the reference resistor on the dual unbalanced current control channels. On this basis, a feedforward decoupling module is proposed in Section 2 to decouple the unbalanced current control channels into two independent control channels. Then, a bridge balance control algorithm based on a fuzzy proportional–integral–derivative (fuzzy-PID) controller is proposed in Section 3 to improve the convergence accuracy of the auto-balancing bridge. Through simulation analysis and hardware verification, it is proven that the proposed bridge balance control algorithm can satisfy the requirements of high-accuracy impedance measurement.

2. Analysis of Auto-Balancing Bridge Control Model and Decoupling Method

The simplified structure of the digital auto-balancing bridge is shown in Figure 3. The current I x is formed by the output voltage V x of a fixed sinusoidal voltage source on the impedance Z x of a DUT. The reference current I r is formed by a reference sinusoidal voltage source V r , with the amplitude and phase controlled on the reference resistor R. The frequencies of the fixed voltage source V x and controllable reference voltage source V r are both f. The unbalanced current I d is the difference between the two currents. The aim of the bridge balance control algorithm is to maintain the unbalanced current I d at zero by adjusting the amplitude and phase of the reference voltage source V r .
The unbalanced current I d is converted to a voltage signal v d = G I d by a trans-impedance amplifier (TIA), where G is the gain of the TIA. The gain G does not affect the analysis of the bridge balance control algorithm, and is ignored in the subsequent analysis. Due to the structural characteristics of the TIA, the point L is at the ground potential. Therefore, the theoretical unbalanced current can be expressed as
I d ( t ) = V x Z x V r R .
By using ADC and digital lock-in amplification method to detect the sinusoidal unbalanced current I d ( t ) , a set of orthogonal components I d _ r and I d _ i can be obtained. Then, the unbalanced current can be expressed by I d ( t ) = ( I d _ r 2 + I d _ i 2 ) sin ( 2 π f t + arctan ( I d _ i I d _ r ) ) . In the same manner, the unbalanced current I d in Equation (1) can be rewritten in the complex domain as follows:
I d _ r ( n + 1 ) I d _ i ( n + 1 ) = 1 | R | 2 R r R i R i R r V r _ r ( n ) V r _ i ( n ) + V x | Z x | 2 Z x _ r Z x _ i
where the subscripts r and i denote the real and imaginary parts of the corresponding variables, while | R | and | Z x | are the respective modulus values of the impedances of the reference resistor and DUT. From Equation (2), it can be seen that the existence of the imaginary part R i of the reference resistor leads to coupling in the real and imaginary control channels between the unbalanced current I d and controllable reference voltage source V r . The structure of this dual-variable control system is described by Equation (2) and shown in Figure 4.
In Figure 4, G is the current–voltage (IV) conversion gain of the TIA. In addition, the transfer function matrix G is determined by the reference resistor R, as shown in Equation (3).
G = G 11 G 12 G 21 G 22 = 1 | R | 2 R r R i R i R r
Combining the state equation of the unbalanced current I d in (2) with the structure diagram in Figure 4, it can be seen that the digital auto-balancing bridge is a dual-input and dual-output control system. The transfer functions G 21 and G 12 generated by the imaginary impedance R i of the reference resistor introduce coupling between the real and imaginary control channels. Moreover, due to this correlation between the real and imaginary control channels, adjusting the reference voltage output of one channel is equivalent to injecting a time-varying disturbance into the other channel, which reduces the stability and convergence accuracy of the bridge balance control.
Therefore, it is necessary to design a suitable decoupling compensation module in order to transform the coupled dual-variable bridge balance control system into two independent single-variable control loops. The feedforward compensation module [15] designed in this paper is shown in Figure 5. The compensation module regards the transfer functions G 12 and G 21 as disturbances and inserts compensations D 21 and D 12 between the controller outputs V r _ r and V r _ i and the controlled object, that is, the current flowing through the reference resistor R.
Denoting the feedforward decoupling matrix as D, the state function (2) can be rewritten as follows:
I d _ r [ n + 1 ] I d _ i [ n + 1 ] = G 11 G 12 G 21 G 22 1 D 12 D 21 1 V r _ r [ n ] V r _ i [ n ] + V x | Z x | 2 Z x _ r Z x _ i .
To realize the decoupling of the real and imaginary control channels, the decoupling matrix D in Equation (4) needs to satisfy the following diagonal matrix form:
G 11 G 12 G 21 G 22 1 D 12 D 21 1 = C 11 0 0 C 22 .
Therefore, the feedforward decoupling modules D 21 and D 12 need to satisfy
G 11 D 12 + G 12 = 0 G 21 + G 22 D 21 = 0 .
Then, D 21 and D 12 can be calculated by
D 12 = G 12 G 11 = R _ i R _ r D 21 = G 21 G 22 = R _ i R _ r .
After the feedforward decoupling compensation, the state equation in (2) can be rewritten as shown below.
I d _ r ( n + 1 ) I d _ i ( n + 1 ) = C 11 0 0 C 22 V r _ r ( n ) V r _ i ( n ) + V x | Z x | 2 Z x _ r Z x _ i = 1 | R | 2 R r 2 + R i 2 R r 0 0 R r 2 + R i 2 R r V r _ r ( n ) V r _ i ( n ) + V x | Z x | 2 Z x _ r Z x _ i = 1 R r V r _ r ( n ) V r _ i ( n ) + V x | Z x | 2 Z x _ r Z x _ i
For the auto-balancing bridge, the reference resistor R is a known device, and its real impedance R r and imaginary impedance R i can be obtained through calibration. The specific values of the feedforward compensator D 21 and D 12 can be calculated according to Equation (7). The equivalent bridge balance control system after decoupling compensation is shown in Figure 6.

3. The Variable Domain Fuzzy-PID Bridge Balance Control Algorithm

According to the principal diagram of the auto-balancing bridge in Figure 3 and the structure of its control system in Figure 4, it can be seen that the bridge balance controller regards the reference resistor R as the controlled object and considers the adjustable reference voltage V r and the current I r flowing through R as the control quantity and the output quantity, respectively. The unknown current I x generated by the fixed voltage source V x and the DUT Z x is regarded as the target value of the control system.
For the bridge balance controller, the target current I x cannot be directly obtained; only the unbalanced current I d is known. The nonlinear characteristics of the DAC, ADC, and other analog chips in bridge circuits cannot be accurately modeled, making it difficult to apply model-based control algorithms to the bridge balance controller. To maintain the balanced state of the bridge, this paper proposes a fuzzy-PID bridge balance control algorithm. The fuzzy-PID controller can achieve fast and stable control without relying on the precise model of the controlled object, and the controller parameters can be adaptively adjusted according to different unbalanced currents.
The principle of the fuzzy-PID controller for bridge balance control is shown in Figure 7. The actuator represents the DAC and analog filter circuits used to generate the reference voltage V r . The controlled object is the reference resistor R and the sensor is composed of the TIA and digital lock-in amplifier (DLIA), which detects the unbalanced current I d and converts it to a digital sequence. The unbalanced current e = I d ( t ) and its change rate e c = d I d ( t ) d t are used as the input of the fuzzy controller, which is a part of the fuzzy-PID controller. Following the fuzzification, fuzzy reasoning, and defuzzification steps, the fuzzy controller outputs the dynamic adjustment values Δ k p , Δ k i , and Δ k d for the PID parameters. Then, the fuzzy-PID controller can be defined as follows:
u ( t ) = ( k p 0 + Q p Δ k p ) e ( t ) + ( k i 0 + Q i Δ k i ) 0 t e ( t ) d t + ( k d 0 + Q d Δ k d ) d e ( t ) d t .
In Equation (9), k p 0 , k i 0 , and k d 0 are the initial PID parameters, while Q p , Q i , and Q d are scale factors for PID parameters converting from the fuzzy domain to the exact domain. Using Equation (9), the PID parameters undergo dynamic adaptive adjustment by the fuzzy controller, which can meet the different requirements of a variety of unbalanced currents caused by different DUTs.

3.1. Fuzzification and Membership Function

Based on fuzzy control theory, the fuzzy domain of both the input variables e and e c and output variables Δ k p , Δ k i , and Δ k d of the fuzzy controller is divided into seven fuzzy subsets:
Negative Big , Negative Middle , Negative Small , Zero , Positive Small , Positive Middle , Positive Big .
Their corresponding symbols are
NB , NM , NS , ZO , PS , PM , PB .
The basic domain, fuzzy domain, and corresponding quantization factors of each input and output variable are summarized in Table 1.
In Table 1, the quantization factor Q i n of the input variables e or e c is calculated by Equation (12), which is used to achieve scale transformation from the basic domain to the fuzzy domain. In this equation, F H and F L are the respective upper and lower bounds of the fuzzy domain, while B H and B L are boundaries of the basic domain. For the output variables Δ k p , Δ k i , and Δ k d , the quantization factor Q o u t is the reciprocal of Q i n , as shown in Equation (13).
Q i n = | F H | | F L | | B H | | B L |
Q o u t = | B H | | B L | | F H | | F L |
For the fuzzy domain variables E and E C of the input variables e and e c , a combination of the Gaussian membership function and triangle membership function is adopted, as shown in Figure 8a. The outer two fuzzy subsets (NB and PB) use Gaussian membership functions to reduce the possibility of excessive adjustment caused by large errors in the initial stage. For the other five fuzzy subsets (NM to PM), the triangle membership function is used to ensure that the controller retains sufficient control strength even with small input values. For the output variables k p 0 , k i 0 , and k d 0 , the membership functions of their corresponding fuzzy variables Δ K p , Δ K i , and Δ K d are triangle membership functions, as shown in Figure 8b.

3.2. Fuzzy Control Rules and Defuzzification

In the fuzzy-PID controller, the three outputs Δ K p , Δ K i , and Δ K d work together to adjust the convergence performance of the bridge balance control algorithm according to the input unbalanced current e and its change rate e c . Therefore, it is necessary to establish suitable fuzzy control rules for parameter tuning of Δ K p , Δ K i , and Δ K d under different inputs e and e c . The basic requirements are summarized as follows:
  • When | e | is large, the Δ K p should also be large in order to accelerate the convergence speed, while the Δ K i should be zero to avoid output saturation.
  • When | e | is a medium value, the Δ K p and Δ K i should both be small in order to reduce the overshoot of a controller; however, the Δ K d should be a suitable value in order to maintain the convergence speed.
  • When | e | is small, both the Δ K p and Δ K i should be large in order to ensure the steady-state accuracy of the controller, while the Δ K d should be inversely proportional to | e c | to avoid oscillation of the controller.
According to these tuning requirements, the fuzzy control rules [16] are summarized in Table 2.
The outputs Δ K p , Δ K i , and Δ K d derived from the fuzzy control rules in Table 2 are still fuzzy variables. The PID controller only allows exact values after defuzzification. The center of gravity method is used for defuzzification, as it has the advantages of high accuracy and high computation efficiency. The expression is as follows:
u = Σ i = 1 n x i μ i Σ i = 1 n μ i
where n = 7 is the number of fuzzy subsets, x i represents the elements in the fuzzy domain, and μ i and represents their corresponding membership degrees. Using Equation (14), the exact values of Δ k p , Δ k i , and Δ k d used in the PID controller expression (9) can be obtained.

3.3. Variable Domain Mechanism

Although the fuzzy-PID controller can improve control performance by dynamically adjusting the PID parameters, the control effect is affected by the domain settings. For the bridge balance controller, the unbalanced current error input e is determined by the impedance of the DUT, and its initial value is unknown. The basic domains of both e and e c shown in Table 1 are their maximum range. Therefore, the variable domain mechanism [17] is introduced. Under the condition of a fixed number of membership functions and fuzzy rules, the initial fuzzy domain of one of the input or output variables can be adjusted to [ α i ( x ) E i , α i ( x ) E i ] using a scaling factor α i ( x ) .
As shown in Figure 9, the membership functions change synchronously under the influence of the domain scaling factor α i ( x ) . When the fuzzy domain shrinks, the number of fuzzy rules near the origin point increases, effectively improving the control accuracy under small errors. When the fuzzy domain expands, it can cover a larger input range. The variable domain mechanism can effectively reduce the difficulty of the fuzzy-PID controller in determining the initial fuzzy domain for each input and output variable. During the bridge balance control progress, the fuzzy domain is dynamically scaled according to the unbalanced current e = I d and its change rate e c .
The structure of the variable-domain fuzzy-PID controller is shown in Figure 10. This structure is realized by multiplying a domain scaling factor with the input variables e and e c and output variables Δ k p , Δ k i , and Δ k d , as represented in Equation (15).
In Equation (15), α e and α e c are the domain scaling factors of the input variables e and e c , while the β is the domain scaling factor of output variables. In addition, Q e 0 , Q e c 0 , Q p 0 , Q i 0 , and Q d 0 are the initial quantization factors shown in Table 1. The scaled fuzzy domain is shown in Equation (16).
Q e = α e Q e 0 Q e c = α e Q e c 0 Q p = β Q p 0 Q i = β Q i 0 Q d = β Q d 0
E e = E e 0 α e E e c = E e c 0 α e c E p = E p 0 β E i = E i 0 β E d = E d 0 β
To ensure that the fuzzy domain can achieve moderate expansion and contraction according to the inputs, the scaling factors α i ( x ) and β ( x ) should be a function of the input variables e and e c . The scaling factor α i ( x ) is defined as follows:
a i ( x ) = | x | E i τ + ε
The i represents the input e or e c , 0 < τ < 1 , and ε is a small positive number that ensures α i ( 0 ) 0 . The scaling factor β ( x ) is defined as
β ( e , e c ) = 1 2 | e | E e τ 1 + | e c | E e c τ 2 ,
where 0 < τ 1 < 1 and 0 < τ 2 < 1 .
Based on the feedforward decoupling module and the variable-domain fuzzy-PID controller, the structure of the bridge balance controller is shown in Figure 11. The domain scaling factor modules are used to calculate the factors α e ( e ) , α e c ( e c ) , and β ( e , e c ) for each control channel.

4. Implementation of the Bridge Balance Control Algorithm

The bridge balance control algorithm was implemented in a circuit board designed by our laboratory, as shown in Figure 12a. In Figure 12a, the unbalanced current detection module consists of a TIA and several analog filters. The IV conversion gain G of the TIA is determined by its feedback resistor. To detect a wide range of unbalanced currents, a resistor array is used as the feedback resistor of the TIA. Different current ranges are achieved by switching a resistor through an analog switch. The values of the resistor array and the corresponding current measurement range are shown in Table 3. By controlling the analog switch to choose different feedback resistors, it is possible to maintain the voltage output of the TIA within the range of 0.05 mV to 1 V.
The sine wave generator module is used to generate both the fixed sinusoidal voltage V x and controlled reference voltage V r . The control board is used to implement the proposed variable-domain fuzzy-PID bridge balance control algorithm. The AMD ZYNQ7020 SOC chip is used to realize the proposed bridge balance control algorithm, which includes an ARM-based processor called the PS core and an FPGA resource called the PL core. The functional block diagram inside the control board is shown in Figure 12b. In the PL core, the DLIA is used to demodulate the real I d _ r and imaginary I d _ i parts of the unbalanced current. The timer module is used to determine the balance control period T, which is defined by
T = N / f 0 .
In Equation (19), N is the number of unbalanced current signal cycles used by the DLIA to calculate I d _ r and I d _ i , while f 0 is the excitation frequency.
The IV gain setting module is used to adjust the feedback resistor of the TIA circuit. As shown in Table 3, each feedback resistor has limited unbalanced current measurement accuracy. When the bridge gradually approaches the balanced state, the feedback resistor should be switched to a large value in order to satisfy the unbalanced current measurement accuracy. Then, the V-I conversion module inside the PL core converts the voltage acquired by the TIA into current by numerically dividing the data by TIA gain G. This can ensure that the unbalanced current data input to the bridge balance controller are both continuous and unaffected by TIA circuit gain switching.
The reference resistor setting module is used to select an appropriate reference resistor R at the initial stage of bridge balance control. For a specific reference resistor R the balance current | I r | = | V r | / | R | and its resolution Δ V r / | R | flowing through the reference resistor R have boundaries due to the limited output voltage | V r | and voltage resolution Δ V r of the controllable reference voltage V r . Thus, it is necessary to choose an appropriate reference resistor for different DUTs. In our hardware design, the output range of the controllable voltage source V r is 20 m V pp ∼10 V pp and its voltage resolution is 0.1 m V rms . The corresponding reference resistors are shown in Table 4.
The parameter tuning module and the serial port module are used to automatically tune the PID parameters k p 0 , k i 0 , and k d 0 , as shown in Equation (9), along with the parameters τ e , τ e c , τ 1 , and τ 2 of the domain scale factors α e ( e ) , α e c ( e c ) , and β ( e , e c ) , as shown in Equations (17) and (18). The particle swarm optimization (PSO) algorithm is used to optimize these controller parameters. The PSO algorithm is a population-based optimization algorithm proposed by Eberhart and Kennedy [18] which is based on the foraging behavior of birds. The PSO algorithm has a population with M particles; each particle has a position vector X i representing a potential optimization solution and a velocity vector V i . The length L of both the position vector X i and velocity vector V i is equal to the number of optimized variables. Then, a fitness function f ( X i ) is used to evaluate the performance of each particle i. The personal best position p b e s t i of each particle i and the global best position g b e s t of the whole population are determined by the fitness function f ( X i ) . Afterwards, the velocity vector V i and the position vector X i are updated by
V i t + 1 = ω V i t + 1 + c 1 r a n d 1 ( p b e s t i X i t + 1 ) + c 2 r a n d 2 ( g b e s t X i t + 1 ) X i t + 1 = X i t + 1 + V i t + 1 ,
where t [ 1 , T ] is the iteration index, T is the total update number, and r a n d 1 and r a n d 2 are random numbers uniformly distributed between 0 and 1. The learning factors c 1 and c 2 respectively determine the degree to which the current update of particle i is influenced by its personal best position p b e s t i and the global best position g b e s t . In addition, ω is the inertial weight, which is used to balance the global search ability and local search ability. A large value of ω means that the global search ability is better and the PSO algorithm has fast convergence speed; on the contrary, a small value of ω means that the local search ability is better and the PSO algorithm has high convergence accuracy [19]. Thus, we use a linear decreasing form of the inertial weight:
ω t = ω m a x ( ω m a x ω m i n ) t T .
At the beginning of the iteration procedure, the PSO algorithm has a large inertial weight ω , which helps to improve the global search ability and convergence speed. As the iterations progress, the value of ω decreases linearly, giving the PSO algorithm better local search ability to improve its convergence accuracy.
The optimized controller parameters are encoded as position vectors, as shown in Equation (22):
X i = { k p 0 r , k i 0 r , k d 0 r , τ e r , τ e c r , τ 1 r , τ 2 r , k p 0 i , k i 0 i , k d 0 i , τ e i , τ e c i , τ 1 i , τ 2 i }
where the superscripts r and i represent the real and imaginary control channels, respectively. The fitness function for evaluating the performance of the controller parameters is constructed based on the integral of time-weighted absolute error (ITAE) criterion [20]:
F ( x i ) = I T A E r + I T A E i = 0 | i d _ r ( t ) | d t + 0 | i d _ i ( t ) | d t
where i d _ r ( t ) and i d _ i ( t ) are the unbalanced currents recorded by the parameter tuning model during the convergence process of the bridge balance control algorithm. Due to limited computing resources, the PSO algorithm is implemented on a desktop computer using the Python programming language (its version is 3.12), and data transmission during the process of optimizing the parameters is achieved using the serial port module. Finally, the amplitude conversion module is used to convert the complex form reference voltage V b = V b _ r + j V b _ i into the sinusoidal amplitude A = V b _ r 2 + V b _ i 2 and phase ϕ = arctan ( V b _ i / V b _ r ) . The direct digital synthesis (DDS) module in the PL core generates the sinusoidal reference voltage V b with amplitude A and phase ϕ , which drives the bridge to the balanced state. Based on the functional block diagram shown in Figure 12b, the flowchart of the proposed bridge balance control algorithm is shown in Figure 13.

5. Simulation and Experimental Analysis

5.1. Simulation Verification

In the simulation and verification stages, the proposed bridge balance control algorithm was implemented in MATLAB 2023. A fixed excitation source V x = V 0 cos ( 2 π f t ) is assumed, where V 0 = 5 V and the excitation frequency is f = 1 MHz . The peak-to-peak value of the controllable reference voltage source V b is also 10 V p p , and its frequency is f = 1 MHz . For the detection of weak unbalanced currents, 20 signal cycles are captured for DLIA calculation. According to Equation (19), the control period can be calculated as T = 20/(1 MHz ) = 20 μ s .
The number of reference resistors is set to 100 Ω , and its equivalent series inductance and equivalent parallel capacitor are set to L p = 100 nH and C p = 2 pF, respectively. The actual impedance of the reference resistor at 1 MHz can be calculated as R = 100.0014 + 0.5023 j according to Equation (24):
Z R = L p s + R L p C p s 2 + R C p s + 1 .
The impedance of the DUT is set to Z x = 100 + 10 j . Based on these DUT and reference resistor settings, the control parameters are optimized using the standard PSO algorithm. The necessary parameters are summarized in Table 5.
The process of tuning the parameters of the proposed bridge balance control algorithm is shown in Figure 14. It can be seen that the fitness value based on the ITAE criterion converges to 1 × 10 4 after five iterations. The optimized control parameters are shown in Table 6.
Based on the optimal control parameters, the unbalanced current control progress is shown in Figure 15 for impedance Z x = 100 + 10 j of the DUT. After repeating the bridge balance controller adjustments 50 times (approximately 1 ms), the real I d _ r and imaginary I d _ i parts of the unbalanced current tend to the steady state ( I d _ r = 0.625 μ A and I d _ i = −0.17 μ A, respectively). The output of the reference voltage is V b = 4.953 + 0.4701 j ; therefore, the measured impedance of the DUT obtained by making Equation (1) equal zero is Z x m e a s u r e = 100.0012 + 9.99903 j . The relative errors of the real and imaginary parts of the DUT impedance are 0.0012% and 0.0097%, respectively.
Furthermore, the DUT impedance was changed to Z x = 235 57 j , and all control parameters were fixed. The unbalanced current adjustment process is shown in Figure 16. In the steady state, the unbalanced currents are I d _ r = 1.08 μ A and I d _ i = 0.7 μ A, while the measured impedance is Z x m e a s u r e = 235.004 56.9998 j . The relative errors of the real and imaginary impedances are 0.002% and 0.0003%, respectively. This impedance measurement accuracy shows that the variable-domain fuzzy-PID bridge balance controller is able to adapt to different DUT impedances and unbalanced current inputs.
If the DUT impedance is adjusted to Z x = 10000 + 300 j , according to Table 4 the reference resistor R = 100.0014 + 0.5023 j is not matched with the DUT impedance due to its current control resolution being larger than that needed to balance the current flowing through the DUT. The unbalanced current adjustment process in this situation is shown in Figure 17a,b. Due to the limited voltage resolution of the controllable voltage source V r , the unbalanced current I d is still large, meaning that the bridge cannot be brought into a steady state. The input errors I d _ r and I d _ i of the bridge balance controller are accumulated by the integrators of the PID controller, causing the unbalanced currents to show obvious oscillations and preventing the impedance of the DUT from being measured.
The unbalanced current adjustment process is shown in Figure 17c,d with the reference resistor selected as 10 k Ω , the complex impedance of the reference resistor set to R = 10000 1.5 j in the simulation verification, and the other control parameters left unchanged. It can be seen that both the real and imaginary unbalanced currents can converge to the steady state after switching the reference resistor to an appropriate range. The measured DUT impedance is Z x m e a s u r e = 10000.13 + 299.988 j , and the relative impedance errors of the real and imaginary parts are only 0.0013% and 0.004%, respectively. The variable-domain fuzzy-PID bridge balance controller can also perform balance control under different reference resistors without the need for repeated control parameter tuning.

5.2. Hardware Platform Verification

Based on the same settings, the proposed bridge balance control algorithm was verified on the hardware platform shown in Figure 12a. The results of control parameter tuning are shown in Figure 18. Due to noise and other sources of interference in actual circuits, the practical convergence speed of the control parameter tuning process is slower than in the simulation results. The optimized control parameters are shown in Table 7.
Here, a 100 pF capacitor which is calibrated by a high precision LCR meter E4980A is used as the DUT; its theoretical impedance at an excitation frequency of 1 MHz is Z x = 1591.55 j . We performed 100 independent repeated measurements are under the same testing conditions. The measurement results are shown in Figure 19. The capacitance measurement results are distributed within the range of [ 99.955 , 99.959 ] , with a standard deviation of 7.03 × 10 4 pF and an average value of 99.957 pF. Therefore, the relative error is 0.043%.

6. Conclusions

This paper has presented a novel bridge balance control algorithm for an auto-balancing bridge used in impedance measurement. The proposed method first aims at the coupling problem caused by the imaginary impedance of practical reference resistors due to their equivalent series inductance and equivalent parallel capacitor. To solve this issue, a feedforward decoupling structure is designed to decouple the control of the unbalanced current into two independent control channels. Then, two fuzzy-PID controllers are designed for the two control channels. In addition, the variable domain technique is used to improve the flexibility and robustness of the bridge balancing controller under different DUTs. The relative impedance measurement error of the proposed bridge balance control algorithm is less than 0.05% for a practical auto-balancing bridge circuit, demonstrating excellent measurement accuracy.

Author Contributions

Conceptualization, L.W. and Y.W.; methodology, L.W.; software, L.W. and Y.Z.; validation, Y.W. and H.Z.; formal analysis, Y.Z.; writing—original draft preparation, L.W.; writing—review and editing, Y.W. and H.Z.; visualization, Y.Z.; supervision, Y.W.; project administration, Y.Z. All authors have read and agreed to the published version of the manuscript.

Funding

This research was supported by National Natural Science Foundation of China and Chinese Academy of Engineering Physics joint Foundation “NSAF” (Grant numbers U2230206 and U2330206).

Data Availability Statement

All necessary data and information on the proposed method have been included in this article. Further inquiries can be directed to the corresponding author.

Conflicts of Interest

The authors declare no conflicts of interest.

References

  1. Khoma, Y.; Khoma, V.; Podpora, M.; Kawala-Sterniuk, A.; Martinek, R.; Ozana, S. Synthesis of Dynamic Errors Correcting Algorithm for Auto-Balancing Bridge Methods. IEEE Access 2020, 8, 165307–165318. [Google Scholar] [CrossRef]
  2. Dumbrava, V.; Svilainis, L. The automated complex impedance measurement system. Elektron. Elektrotechnika 2007, 76, 59–62. [Google Scholar]
  3. Keysight Technologies. Impedance Measurement Handbook, 6th ed.; Keysight Technologies: Santa Rosa, CA, USA, 2016. [Google Scholar]
  4. Maeda, K. An Automatic, Precision 1-MHz Digital LCR Meter. Hewlett-Packard J. 1974, 25, 2–9. [Google Scholar]
  5. Hu, B. Study on Key Technologies of Impedance Spectrum Measurement System Based on DLIA. Ph.D. Thesis, Huazhong University of Science and Technology, Wuhan, China, 2012. [Google Scholar]
  6. Hu, B.; Wang, J.; Song, G.; Zhang, F. A Compact Wideband Precision Impedance Measurement System Based on Digital Auto-Balancing Bridge. Meas. Sci. Technol. 2016, 27, 055902. [Google Scholar] [CrossRef]
  7. Zhu, Z. Design and Implementation of Self-Balancing Digitally Controlled DC Bridge. Master’s Thesis, Nanchang University, Nanchang, China, 2021. [Google Scholar]
  8. Xie, J. Design and Implementation of a New Bridge-based High-precision Measurement Module for Electrical Resistance. Master’s Thesis, Nanchang University, Nanchang, China, 2022. [Google Scholar]
  9. Ai, Y.; Fu, X.; Li, Y.; Wang, X.; Duan, F.; Jiang, J. High-precision inductance measurement system based on double-excitation auto-balancing bridge. J. Meas. Sci. Instrum. 2022, 13, 253–260. [Google Scholar] [CrossRef]
  10. Cai, Y.; Wang, X.; Yu, X.; Zhao, H.; Zhai, Z.; Wang, H. Auto-Balancing Bridge Based Wide Impedance Spectrum Measurement with Consideration of Op-Amp Input Impedance. Rev. Sci. Instrum. 2023, 94, 105004. [Google Scholar] [CrossRef]
  11. Li, X.; Wang, Y.; Wu, K.; Jin, H. Design of High Precision Inductance Measurement Device Based on Dual-source Automatic Balanced Bridge. Metrol. Meas. Technol. 2020, 40, 31–35. [Google Scholar]
  12. Luo, Y.; Li, S.; Huang, J. A New Auto-Balancing Algorithm Based on Brent’s Method for Impedance Measurements. In Proceedings of the 2019 2nd International Conference on Algorithms, Computing and Artificial Intelligence, Sanya, China, 20–22 December 2019; pp. 73–77. [Google Scholar]
  13. Li, N.; Xu, H.; Wang, W.; Zhou, Z.; Qiao, G.; Li, D.D.U. A High-Speed Bioelectrical Impedance Spectroscopy System Based on the Digital Auto-Balancing Bridge Method. Meas. Sci. Technol. 2013, 24, 065701. [Google Scholar] [CrossRef]
  14. Malik, S.; Kishore, K.; Islam, T.; Zargar, Z.H.; Akbar, S.A. A Time Domain Bridge-Based Impedance Measurement Technique for Wide-Range Lossy Capacitive Sensors. Sens. Actuators A Phys. 2015, 234, 248–262. [Google Scholar] [CrossRef]
  15. Dong, N.; Li, M.; Chang, X.; Zhang, W.; Yang, H.; Zhao, R. Robust Power Decoupling Based on Feedforward Decoupling and Extended State Observers for Virtual Synchronous Generator in Weak Grid. IEEE J. Emerg. Sel. Top. Power Electron. 2023, 11, 576–587. [Google Scholar] [CrossRef]
  16. Liu, C.; Zhao, J.; Gu, J.; Du, Y.; Li, Z.; Zhu, Z.; Mao, E. Pressure Control Algorithm Based on Adaptive Fuzzy PID with Compensation Correction for the Tractor Electronic Hydraulic Hitch. Appl. Sci. 2020, 10, 3179. [Google Scholar] [CrossRef]
  17. Yao, Y.; Ma, N.; Wang, C.; Wu, Z.; Xu, C.; Zhang, J. Research and implementation of variable-domain fuzzy PID intelligent control method based on Q-Learning for self-driving in complex scenarios. Math. Biosci. Eng. 2023, 20, 6016–6029. [Google Scholar] [CrossRef] [PubMed]
  18. Eberhart, R.; Kennedy, J. A new optimizer using particle swarm theory. In Proceedings of the MHS’95. Proceedings of the Sixth International Symposium on Micro Machine and Human Science, Nagoya, Japan, 4–6 October 1995; pp. 39–43. [Google Scholar]
  19. Wang, Y.; Cheng, Y.; Chen, K.; Wang, L.; Wang, H. A Software Digital Lock-In Amplifier Method with Automatic Frequency Estimation for Low SNR Multi-Frequency Signal. Appl. Sci. 2022, 12, 6431. [Google Scholar] [CrossRef]
  20. Büchi, R. Optimal ITAE Criterion PID Parameters for PTn Plants Found with a Machine Learning Approach. In Proceedings of the 2021 9th International Conference on Control, Mechatronics and Automation (ICCMA), Luxembourg, 11–14 November 2021; pp. 50–54. [Google Scholar]
Figure 1. Basic structure of the auto-balancing bridge method.
Figure 1. Basic structure of the auto-balancing bridge method.
Symmetry 17 00354 g001
Figure 2. Structure of HP’s proposed auto-balancing bridge [4].
Figure 2. Structure of HP’s proposed auto-balancing bridge [4].
Symmetry 17 00354 g002
Figure 3. Simplified structure of digital auto-balancing bridge.
Figure 3. Simplified structure of digital auto-balancing bridge.
Symmetry 17 00354 g003
Figure 4. Structure of the dual-variable closed-loop bridge balance control system.
Figure 4. Structure of the dual-variable closed-loop bridge balance control system.
Symmetry 17 00354 g004
Figure 5. Structure of the auto-balancing bridge feedforward compensation control system.
Figure 5. Structure of the auto-balancing bridge feedforward compensation control system.
Symmetry 17 00354 g005
Figure 6. Equivalent structure of the auto-balancing bridge control system after feedforward decoupling.
Figure 6. Equivalent structure of the auto-balancing bridge control system after feedforward decoupling.
Symmetry 17 00354 g006
Figure 7. Structure of the fuzzy-PID controller.
Figure 7. Structure of the fuzzy-PID controller.
Symmetry 17 00354 g007
Figure 8. Membership functions of the input and output variables: (a) membership function of input variables e and e c ; (b) membership function of output variables Δ k p , Δ k i , and Δ k d .
Figure 8. Membership functions of the input and output variables: (a) membership function of input variables e and e c ; (b) membership function of output variables Δ k p , Δ k i , and Δ k d .
Symmetry 17 00354 g008
Figure 9. Schematic of the variable domain mechanism.
Figure 9. Schematic of the variable domain mechanism.
Symmetry 17 00354 g009
Figure 10. Block diagram of the variable-domain fuzzy-PID controller.
Figure 10. Block diagram of the variable-domain fuzzy-PID controller.
Symmetry 17 00354 g010
Figure 11. Block diagram of the variable-domain fuzzy-PID bridge balance control system.
Figure 11. Block diagram of the variable-domain fuzzy-PID bridge balance control system.
Symmetry 17 00354 g011
Figure 12. Implementation of the proposed bridge balance control algorithm: (a) circuit board of the auto-balancing bridge and (b) implementation structure of the proposed algorithm.
Figure 12. Implementation of the proposed bridge balance control algorithm: (a) circuit board of the auto-balancing bridge and (b) implementation structure of the proposed algorithm.
Symmetry 17 00354 g012
Figure 13. Flowchart of the proposed bridge balance control algorithm.
Figure 13. Flowchart of the proposed bridge balance control algorithm.
Symmetry 17 00354 g013
Figure 14. Progress of parameter tuning for the proposed method under simulation condition.
Figure 14. Progress of parameter tuning for the proposed method under simulation condition.
Symmetry 17 00354 g014
Figure 15. Simulation result of the bridge balance control for Z x = 100 + 10 j : (a) real part I d _ r and (b) imaginary part I d _ i of the unbalanced current.
Figure 15. Simulation result of the bridge balance control for Z x = 100 + 10 j : (a) real part I d _ r and (b) imaginary part I d _ i of the unbalanced current.
Symmetry 17 00354 g015
Figure 16. Simulation result of the bridge balance control for Z x = 235 57 j : (a) real part I d _ r and (b) imaginary part I d _ i of the unbalanced current.
Figure 16. Simulation result of the bridge balance control for Z x = 235 57 j : (a) real part I d _ r and (b) imaginary part I d _ i of the unbalanced current.
Symmetry 17 00354 g016
Figure 17. Impedance simulation results for Z x = 10000 + 100 j : (a,b) balance progress when the reference resistor is R = 100.0014 + 0.5023 j and (c,d) balance progress when reference resistor is R = 10000 1.5 j .
Figure 17. Impedance simulation results for Z x = 10000 + 100 j : (a,b) balance progress when the reference resistor is R = 100.0014 + 0.5023 j and (c,d) balance progress when reference resistor is R = 10000 1.5 j .
Symmetry 17 00354 g017
Figure 18. Results of tuning the control parameters of the proposed bridge balance control algorithm on the hardware platform.
Figure 18. Results of tuning the control parameters of the proposed bridge balance control algorithm on the hardware platform.
Symmetry 17 00354 g018
Figure 19. Results of 100 independent capacitance measurements.
Figure 19. Results of 100 independent capacitance measurements.
Symmetry 17 00354 g019
Table 1. Parameters of fuzzification and defuzzification.
Table 1. Parameters of fuzzification and defuzzification.
VariableBasic DomainFuzzy DomainQuantization Factor
e [ 0.01 , 0.01 ] [ 6 , 6 ] 600
e c [ 0.01 , 0.01 ] [ 6 , 6 ] 600
Δ k p [ 1 , 1 ] [ 2 , 2 ] 0.5
Δ k i [ 1 , 1 ] [ 2 , 2 ] 0.5
Δ k d [ 0.5 , 0.5 ] [ 2 , 2 ] 0.25
Table 2. Fuzzycontrol rules for Δ K p , Δ K i , and Δ K d .
Table 2. Fuzzycontrol rules for Δ K p , Δ K i , and Δ K d .
ECNBNMNSZOPSPMPB
E
NBPB/NB/PSPB/NB/NSPM/NM/NBPM/NM/NBPS/NS/NBZO/ZO/NMZO/ZO/PS
NMPB/NB/PSPB/NB/NSPM/NM/NBPS/NS/NMPS/NS/NMZO/ZO/NSNS/ZO/ZO
NSPM/NB/ZOPM/NM/NSPM/NS/NMPS/NS/NMZO/ZO/NSNS/PS/NSNS/PS/ZO
ZOPM/NM/ZOPM/NM/NSPS/NS/NSZO/ZO/NSNS/PS/NSNM/PM/NSNM/PM/ZO
PSPS/NM/ZOPS/NS/ZOZO/ZO/ZONS/PS/ZONS/PS/ZONM/PM/ZONM/PB/ZO
PMPS/ZO/PBZO/ZO/NSNS/PS/PSNM/PS/PSNM/PM/PSNM/PB/PSNB/PB/PB
PBZO/ZO/PBZO/ZO/PMNM/PS/PMNM/PM/PMNM/PM/PSNB/PB/PSNB/PB/PB
Table 3. Feedback resistor parameters of the TIA under different current ranges.
Table 3. Feedback resistor parameters of the TIA under different current ranges.
Current RangeFeedback ResistorMeasurement Range
10 mA100 Ω 0.5 μ A∼10 mA
1 mA1 k Ω 50 nA∼1 mA
100 μ A10 k Ω 5 nA∼100 μ A
10 μ A100 k Ω 500 pA∼10 μ A
1 μ A1 M Ω 50 pA∼1 μ A
100 nA10 M Ω 5 pA∼100 nA
Table 4. Reference resistor parameters.
Table 4. Reference resistor parameters.
Reference Resistor ( Ω )Current Range ( A rms )Current Resolution ( A rms )
10070.7 μ ∼35.35 m1 μ
1 k7.07 μ ∼3.535 m100 n
10 k707 n∼353.5 μ 10 n
100 k70.7 n∼35.35 μ 1 n
1 M7.07 n∼3.535 μ 100 p
10 M707 p∼353.5 n10 p
Table 5. Settings for control parameter tuning using the PSO algorithm.
Table 5. Settings for control parameter tuning using the PSO algorithm.
NameValue
Inertia weights [ ω m i n , ω m a x ] = [ 0.2 , 0.8 ]
Learning factor c 1 = 1.5 , c 2 = 1.5
Number of iterations T = 100
Population size M = 50
Particle velocity boundary [ V m i n , V m a x ] = [ 0.5 , 0.5 ]
k p 0 boundary [ 0.5 , 20 ]
k i 0 boundary [ 0.2 , 10 ]
k d 0 boundary [ 0.1 , 10 ]
τ e boundary [ 0.2 , 10 ]
τ e c boundary [ 0.2 , 10 ]
τ 1 boundary [ 0.2 , 10 ]
τ 2 boundary [ 0.2 , 10 ]
Table 6. Parameters of variable-domain fuzzy-PID bridge balance controller after tuning under simulation condition.
Table 6. Parameters of variable-domain fuzzy-PID bridge balance controller after tuning under simulation condition.
Real ChannelImaginary Channel
Parameters Value Parameters Value
k p 0 1.58 k p 0 2.1
k i 0 9.5 k i 0 9.8
k d 0 1.83 k d 0 2.84
τ e 0.17 τ e 0.9
τ e c 0.1 τ e c 0.13
τ 1 0.605 τ 1 0.12
τ 2 0.1 τ 2 0.9
Table 7. Parameters of the variable-domain fuzzy-PID bridge balance controller after tuning for the hardware platform.
Table 7. Parameters of the variable-domain fuzzy-PID bridge balance controller after tuning for the hardware platform.
Real ChannelImaginary Channel
Parameters Value Parameters Value
k p 0 1.74 k p 0 2.84
k i 0 9.87 k i 0 8.808
k d 0 2.35 k d 0 4.03
τ e 0.37 τ e 0.71
τ e c 0.32 τ e c 0.441
τ 1 0.862 τ 1 0.372
τ 2 0.12 τ 2 0.944
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Wang, L.; Zhao, Y.; Wang, Y.; Zhou, H. A High-Accuracy Decoupling Balance Control Method for an Auto-Balancing Bridge Based on a Variable-Domain Fuzzy-PID Controller. Symmetry 2025, 17, 354. https://doi.org/10.3390/sym17030354

AMA Style

Wang L, Zhao Y, Wang Y, Zhou H. A High-Accuracy Decoupling Balance Control Method for an Auto-Balancing Bridge Based on a Variable-Domain Fuzzy-PID Controller. Symmetry. 2025; 17(3):354. https://doi.org/10.3390/sym17030354

Chicago/Turabian Style

Wang, Li, Yijiu Zhao, Yifan Wang, and Haitao Zhou. 2025. "A High-Accuracy Decoupling Balance Control Method for an Auto-Balancing Bridge Based on a Variable-Domain Fuzzy-PID Controller" Symmetry 17, no. 3: 354. https://doi.org/10.3390/sym17030354

APA Style

Wang, L., Zhao, Y., Wang, Y., & Zhou, H. (2025). A High-Accuracy Decoupling Balance Control Method for an Auto-Balancing Bridge Based on a Variable-Domain Fuzzy-PID Controller. Symmetry, 17(3), 354. https://doi.org/10.3390/sym17030354

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop