Next Article in Journal
Feasibility Analysis for Active Noise Cancellation Using the Electrical Power Steering Motor
Previous Article in Journal
Acoustic Analysis of a Hybrid Propulsion System for Drone Applications
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

A Frequency-Independent Phase Shifter

1
Department of Atomic Physics, Eötvös Loránd University, 1117 Budapest, Hungary
2
Research & Development Department, The Works Research Institute B. V., 1015 Amsterdam, The Netherlands
*
Author to whom correspondence should be addressed.
Acoustics 2024, 6(3), 713-729; https://doi.org/10.3390/acoustics6030039
Submission received: 26 May 2024 / Revised: 17 July 2024 / Accepted: 26 July 2024 / Published: 31 July 2024

Abstract

:
In this paper, we utilise optimization methods to determine a frequency-independent phase shift such that two phase-shifted versions of a signal can be summed and the resulting amplitude spectrum is unchanged. A phase difference between two signals is thus defined, which remains constant for all frequencies within a given range. For the intended purpose of this study, we set the frequency range to the audible human hearing range of 16 Hz–20 kHz. We found that a new 3-stage filter method provides a variable phase shifter (i.e., ϕ = 0–360°) without the need for additional amplifiers. In addition, we present a new method that reduces the number of filters necessary, improving both the accuracy and efficiency of current techniques.

1. Introduction

Phase shifters change the output phase angle of an input signal and are thus utilised in many areas of electronics, instrumentation, and signal processing [1,2,3,4,5,6].
The most commonly used types of phase shifters are, in fact, time delayers, which introduce a frequency-independent time delay. Depending on the intended application of the phase shifter, it is important to consider how the amplitude response is affected. For example, when controlling variable response angles in a spatially distributed microphone array, microphone signals are combined and phase-shifted [7,8,9,10]. It is therefore important that the phase shift is independent of the frequency, such that the amplitude response is equal for all frequencies and the resulting amplitude spectrum of the signal is unchanged. However, such frequency-independent phase shifters are more complex in their technical design and have yet to be optimally developed. For example, a traditional phase shifter in which the phase shift is changed manually can be used to achieve a frequency-independent phase shift [1,11,12]. These methods can then be automated with the use of a programmable variable resistor [13,14,15,16,17,18]. However, they are only operational either at single frequencies [16] or specific frequency ranges, but at a lower accuracy [17]. They can also require multiple stages [18].
For a frequency-independent phase shift of 90° (π/2 in radians), a comprehensive analytical solution is given by the Hilbert Transform. The Hilbert Transform can be understood as first transforming into the frequency domain by applying a FFT and then phase-shifting all positive frequency spectral components by −90° and all negative frequency spectral components by +90°. Then, by applying the inverse FFT, a time domain phase-shifted spectrum is obtained where the amplitude spectrum is unchanged. However, this solution is purely analytical, and no straightforward implementation exists analogously in signal processing. Implementation is thus carried out by passing the signal through various stages of filters, i.e., band-pass filters and all-pass filters. Various strategies for implementation can be found that may differ greatly based on the intended application, and each has their own limitations and drawbacks. For example, [18] implements the Hilbert transform via a two-stage filter and a five-stage filter. In both cases, a flat response was achieved for a specific frequency range of ω = 55 Hz–2 kHz and a phase angle of ϕ = 34°, as well as for ω = 100 Hz–20 kHz, ϕ = −30°, respectively. This approach works well, but is costly in terms of implementation and only allows fixed phase shifts for a limited frequency range. Another approach allows for a variable phase shift, i.e., ω = 16 Hz–20 kHz, ϕ = 0–360°, by implementing a Hilbert transform via a 2 × 3-stage filter and three additional amplifiers [10]. In this approach, the added functionality and range come at further added computational costs.
It is evident that the current methods utilised to achieve frequency-independent phase shifts require substantial complexity in the technical design and involve multiple filters, thus limiting efficiency. In this paper, we utilise optimization methods to determine a frequency-independent phase shift. We describe a three-stage filter that provides a variable phase shifter, i.e., ϕ = 0–360°, without the need for additional amplifiers. In addition, we present a new method that reduces the number of filters necessary, improving on both the accuracy and efficiency of current techniques.

2. Materials and Methods

An all-pass filter is a filter that introduces a phase shift while not affecting the amplitude response of a signal. They are typically designed using operational amplifiers and discrete resistors and capacitors. See Figure 1a for an example of a first-order all-pass filter and Figure 1b for an example of a second-order all-pass filter. Note that both examples are for a phase shift variation from −180° (at 0 Hz) to 0° (at higher frequencies), where, at ω = 1/RC, the value of the phase shift is −90°.
These circuits are only operational at a single frequency, where each component is chosen specifically for a phase shift at a given frequency. If we want to adapt such a system to a phase shift for variable frequency, we have to make the circuit frequency-independent using variable components, e.g., programmable resistors and capacitors; voltage control resistors (VCR); and Junction-gate Field Effect Transistors (JFET). For an example, see Figure 2.
An all-pass filter can also be implemented digitally; see Figure 3 for an example of a digitally implemented (Figure 3a) first-order and (Figure 3b) second-order all-pass filter.
We can then use an all-pass filter to achieve a band-stop filter where the frequency range is determined by a centre frequency, ω0, and   a bandwidth, B W , defined by the Q -factor:
Q = ω 0 B W .
The band-stop filter is a combination of a low-pass filter and a high-pass filter with identical cut-off frequencies, corresponding to ω0 above (see Figure 4).
A first-order all-pass band-stop filter can be used to achieve a signal with a uniform amplitude response and a phase response ϕ as a function of frequency ω , expressed as
ϕ ( ω ) = 4 · a t a n ( ω / ω 0 )
Note that the addition of the low-pass and high-pass filters results in a maximum phase shift range of 360° (i.e., −4atan).
The second-order filter allows a variable bandwidth with a phase response by introducing the Q-factor as a new parameter:
ϕ ( ω ) = 4 · a t a n [ ( ω / ω 0 ) Q ]
See Figure 5 for the resulting phase shifts for ω0 = 500 Hz and Q = 0.5–2.0.
A combination of several such phase shifters can also be utilised. For example, one can take a phase shifter (A) of three components:
ϕ A ( ω ) = 4 · a t a n [ ( ω / ω 0 , 1 , A ) Q 1 , A ] 4 · a t a n [ ( ω / ω 0 , 2 , A ) Q 2 , A ] 4 · a t a n [ ( ω / ω 0 , 3 , A ) Q 3 , A ]
with parameters
ω 0 , 1 , A = 16   H z ,   ω 0 , 2 , A = 320   H z ,   ω 0 , 3 , A = 6400   H z ,
and
Q 1 , A = Q 2 , A = Q 3 , A = 0.707
and another phase shifter (B):
ϕ B ( ω ) = 4 · a t a n [ ( ω / ω 0 , 1 , B ) Q 1 , B ] 4 · a t a n [ ( ω / ω 0 , 2 , B ) Q 2 , B ] 4 · a t a n [ ( ω / ω 0 , 3 , B ) Q 3 , B ] ,
with parameters
ω 0 , 1 , B = 35   H z ,   ω 0 , 2 , B = 700   H z ,   ω 0 , 3 , B = 14,000   H z ,
and
Q 1 , B = Q 2 , B = Q 3 , B = 0.707 ,
and obtain the total phase shift as
ϕ ( ω ) = ϕ A ( ω ) ϕ B ( ω ) .
The individual ϕ A( ω ) and ϕ B( ω ) phase shifts are shown in Figure 6.
The difference in these phase shifts, ϕ ( ω ), is more or less constant in the 30 Hz to 6 kHz range, but exhibits substantial variation even within that range. Outside that range, the phase shift changes even more (see Figure 7).
In the following section, we describe the optimization of such filters with one or more stages, with parameters optimised numerically and analytically as well. The former method usually yields more accurate results, while the latter helps in guiding the analysis and obtaining a more detailed qualitative understanding.

3. Results

3.1. Numerical Optimization of a Single-Stage Filter

To achieve a more constant phase shift as compared to the default version discussed above, we can numerically optimise the parameters by minimising the deviation from a constant ϕ ( ω ) = ϕ 0, where ϕ 0 is the desired phase shift. This can be achieved by defining a penalty function and then finding its minimum as a function of the parameters. As an example, we investigated ϕ ( ω ) with parameters optimised for ϕ 0 = −π/2 when the central frequencies are unmodified and only the Q -factor parameters are optimised. This was achieved by utilising the ROOT Minuit2 framework (version 6.28), where a penalty function χ2 was defined as the squared relative deviation of ϕ ( ω ) and ϕ 0, integrated over the relevant frequency range:
χ 2   = ω m i n ω m a x ( Φ A ( ω ) Φ 0 ) 2 Φ 0 2 d ω
The minimal deviation (i.e., the optimal χ2) in the range defined via ω m i n = 1 Hz and ω m a x = 100 kHz was achieved with the following set of values:
Q 1 , A = 0.913 ,   Q 2 , A = 0.721 ,   Q 3 , A = 0.819
Q 1 , B = 0.807 ,   Q 2 , B = 0.683 ,   Q 3 . B = 0.802
As expected, a flatter, but still substantially oscillating ϕ ( ω ) was achieved compared to the previous unoptimized case, as shown in Figure 8 (focused on the important frequency range from 15 Hz to 16,000 Hz).
In contrast to this, e.g., for ϕ 0 = −0.259, an even flatter ϕ (ω) can be achieved (see Figure 9) with
Q 1 , A = 0.0449 ,   Q 2 , A = 0.172 ,   Q 3 , A = 0.169 ,
Q 1 , B = 0.0638 ,   Q 2 , B = 0.189 ,   Q 3 . B = 0.131 .
One may note, however, that the parameters listed above have huge uncertainties. The uncertainty here means that the given parameter can be varied within an interval corresponding to the uncertainty, and the resulting χ2 value, defined in terms of the variance of the relative deviation from the desired constant phase shift, will change only by up to one unit. Hence, an equally constant phase shift can be achieved with significantly different parameters, but these need to be co-varied. Thus, it is clear that the parameters can be varied in broad intervals to obtain a similar level of constantness of the phase shift. In other words, one can fix some of the parameters to almost arbitrary values, and then fit just the remaining ones. At the same time, a filter with fewer than three stages might be possible if its parameters are optimised. This suggests that instead of numerical optimization, an analytical calculation might also be feasible.

3.2. Analytic Calculations for the Single Stage Filter

To analytically investigate the form utilised in the previous section, we set two single-stage filters with the following frequency-dependent phase-shifts:
ϕ ( ω ) = 4 · a t a n [ ( ω / ω 0 , A ) Q ] 4 · a t a n [ ( ω / ω 0 , B ) Q ]
where the central frequencies are different, but the Q exponents are identical. Utilising a series expansion technique, we found a good approximation of the above function in the following form:
ϕ ( ω ) ϕ A ( δ ) = ϕ m i n + D δ 2
with
δ = l n ( ω ω 0 , A ω 0 , B ) ,
ϕ m i n = 4 · a t a n 1 2 { ( ω 0 , B ω 0 , A ) Q 2 ( ω 0 , A ω 0 , B ) Q 2 } ,
and
D = 4 ( ω 0 , A ω 0 , B ) Q / 2 ( ω 0 , B Q ω 0 , A Q ) Q 2   ω 0 , A 2 Q + ω 0 , B 2 Q + 2 ω 0 , A Q ω 0 , B Q
This approximation reflects that the ϕ (ω) function above has an exact minimum, ϕ min at ω = ωmin   ω 0 , A ω 0 , B , while the second derivative is related to D , defined above. This can be used to estimate the level of constantness of ϕ ( ω ) near the minimum: the smaller the value of D , the more constant ϕ ( ω ) is within a given vicinity of ωmin.

3.3. Analytical Optimization for the Single-Stage Filter

To optimise ϕ ( ω ) in such a way that χ2, quantifying the difference of ϕ ( ω ) and ϕ0, is minimised, we can define χ2 by the following integral:
ω m i n ω m a x ( Φ ( ω ) Φ 0 ) 2 Φ 0 2 d ω
However, given the approximative shape (see Figure 8), this leads to a complex result. We instead define χ2 via an integral on δ , defined in Equation (8), instead of ω:
χ 2   = δ m i n δ m a x ( Φ A ( δ ) Φ 0 ) 2 Φ 0 2 d δ
where
δ m i n / m a x = l n ( ω m i n / m a x ω 0 , A ω 0 , B ) .
We find that χ2 can be readily expressed in terms of the integration range ωmin and ωmax and the original parameters Q , ω0, A, and ω0, B (‘hidden’ in D and ϕmin), as:
χ 2   = 3 D 2 ( δ m a x 5 δ m i n 5 ) 10 D ( δ m a x 3 δ m i n 3 ) ( Φ 0 Φ m i n ) 15 ( δ m a x δ m i n ) ( Φ 0 Φ m i n ) 2 Φ 0 2
However, this expression is still complex, especially when D and ϕmin are substituted back into it.
In addition, one may observe that there is no unique minimum of this χ2 even if one of the variables is fixed (see Figure 10).
These plots illustrate that there is no single strong minimum on the χ2 map; instead, a valley of minima is present, and no single best set of parameters can be found. This also implies that some combinations of the parameters represent weak modes of the χ2, while other combinations represent strong modes, i.e., significant parameter combinations. Further exploration into these parameter combinations is thus required.

3.4. Approximative Method for the Analytical Solution of the Single-Stage Filter

Instead of numerically minimising the above-defined χ2, we explore analytical possibilities as well. Equation (8) introduces an approximate formula for ϕ(ω), expressed via auxiliary variables δ , ϕmin, and D , which allows us to, both directly and analytically, explore the deviation of ϕ(ω) from a given ϕ0. On the other hand, its average can be assessed easily if the desired interval is logarithmically centred around δ = 0 , i.e., ωmin ωmax= ω0,A ω0,B, and hence, δmin = −δmax = l n ω m i n / ω m a x . In this case, the average of ϕ ( δ ) (defined as ϕ ) can be set to be equal to the desired ϕ0, and this relation can be expressed as:
ϕ 0 = ϕ = ϕ m i n + D 3 ( δ m i n 2 + δ m i n δ m a x + δ m a x 2 ) = ϕ m i n + D 3 ( l n ω m i n / ω m a x ) 2
Furthermore, the deviation from this average is determined by D , since the function is quadratic in δ , and its second derivative in δ is 2 D . We can quantify the non-flatness of ϕ(ω) as the difference of ϕA(δ) and ϕmin at δmin (or equivalently at δmax). This difference can be analytically expressed with ωmin and ωmax as:
Δ ϕ = D ( l n ω m a x / ω m i n ) 2
Note that, because ω m i n and ω m a x are constants, the minimum Δ ϕ is achieved when D is also minimal, and due to the squared logarithm, ω m i n / ω m a x is equivalent to its inverse in this formula.
Furthermore, the above-mentioned centring around δ = 0 allows us to declare two auxiliary variables, ω0 and ξ , and express ω0,A and ω0,B in terms of them:
ω 0 = ω m i n ω m a x = ω 0 , A ω 0 , B
with
ω 0 , A = 1 ξ ω 0 ,
ω 0 , B = ξ ω 0 ,   i . e . ,   ξ = ω 0 , B ω 0 , A .
The quantities ϕmin, D and δ can therefore be expressed as
ϕ min = 4 · a t a n [ 1 2 { ξ Q ξ Q } ]
D = 4 Q 2   ξ Q ξ Q 2 + ξ 2 Q + ξ 2 Q
δ = l n ω ω 0
Hence, the approximate formula becomes
ϕ ( ω ) 4 · a t a n [ 1 2 { ξ Q ξ Q } ] + 4 Q 2   ξ Q ξ Q 2 + ξ 2 Q + ξ 2 Q ( l n ω ω 0 ) 2
and the level of constantness is controlled by Δ ϕ , as defined above, and can now be expressed as:
Δ ϕ = 4 Q 2   ξ Q ξ Q 2 + ξ 2 Q + ξ 2 Q ( l n ω m a x ω m i n ) 2 = Q 2   ξ Q ξ Q 2 + ξ 2 Q + ξ 2 Q ( l n ω m a x ω m i n ) 2 .
From these equations, it is apparent that there is no single optimal solution. Instead, a sufficiently flat phase shift can be found along the constant values of D as a function of Q and ξ , as shown in Figure 11 for Q [ 0.04 , 0.10 ] and ξ [ 1 , 100 ] .
It can be seen from Figure 11 that the range of minimal Δ ϕ is found when either Q or ξ is very small (note that here, Q goes from 0.04 to 0.10 and ξ goes from 1 to 100), and the actual minimum is at the edge of these boundaries and would be even smaller if Q or ξ were smaller.
However, we first need to determine the average phase shift as a function of Q and ξ , as the goal is not just a flat phase-shift (small Δ ϕ in general), so ϕ ( ω ) should also be centred around a given ϕ 0 value. This average is given in Equation (12) and can be expressed utilising the expressions of Equations (15) and (16), as follows:
ϕ 0 = 4 · a t a n [ 1 2 { ξ Q ξ Q } ] + 1 3 Q 2   ξ Q ξ Q 2 + ξ 2 Q + ξ 2 Q ( l n ω m a x ω m i n ) 2 .
The above formula of Equation (20) is shown in Figure 12 for ωmax/ωmin = 1200 (true if the range is, e.g., 15 Hz to 18 kHz) as a function of Q and ξ , similarly to Figure 11.
To obtain a flat phase shift, a given line of constant ϕ0 is chosen on Figure 12, representing a set of ( ξ , Q ) points. The minimal deviation is then found based on the Δ ϕ map shown in Figure 11. However, as already mentioned above, the optimal ( ξ   , Q ) values are such that one of them is extremely small and, therefore, not practically feasible. Thus, instead of the smallest possible Δ ϕ , the smallest practically achievable Δ ϕ is found.
These steps require us to solve Equation (20), for example, for ξ and then Δ ϕ , as expressed in Equation (19), resulting in the desired ( ξ   , Q ) point. This is very easy to do numerically, but less so analytically. Therefore, we explore numerical calculations.

3.5. Numerical Solution of the Approximative Case for the Single-Stage Filter

As mentioned above, to obtain the necessary ( ξ , Q ) points that result in ϕ ( ω ) = ϕ0, we needed to solve Equation (20) in the case of a fixed ϕ0, for an arbitrary Q value. Given [ωmin, ωmax] = [ 15   H z ,   20   k H z ] as the optimization range, ξ values providing this solution for Q [ 0.1 , 0.5 ] and ϕ0∈ [5°, 90°] in the form of a ξ ( Q ) function are shown in Figure 13 (and the values are given in Appendix A).
This gives us the required ξ value for any Q to have ϕ ( ω ) = ϕ0. It is immediately apparent that, for small Q values, the required ξ becomes very large. Recall that ξ is used to calculate the central frequencies as ω0,A = ω0 / ξ and ω0,B = ξ ω0, where ω0  = ω m i n ω m a x 548   H z in this case. Hence, ξ above a few hundred leads to ω0,B in the MHz range, and these ξ values are not feasible in a digital implementation, which limits the possible Q range depending on ϕ0. For example, in the case of ϕ0 = −90°, ξ becomes unfeasibly high at Q = 0.1 or below, while for ϕ0 = −10°, even Q = 0.1 yields usable ξ values. Regardless of this, with the required ξ values given for any Q , we can investigate the optimal Q .
Recall that the level of constantness is controlled by Δ ϕ , expressed in Equation (19), and this can now be evaluated as a function of Q only (with the ξ ( Q ) value of the above plot for the given Q ). Let us also recall that Δ ϕ is the difference of ϕ ( ω ) from ϕmin at ωmin and at ωmax, so it is more meaningful in this case to plot Δ ϕ /ϕ0, as this represents the amplitude of the oscillations within the interval. Furthermore, recall that Δ ϕ is the amplitude of ϕ ( ω ) , so the average deviation from ϕ0 is lower than that.
In Figure 14, for [ωmax, ωmin] = [ 15   H z ,   20   k H z ] , the relative amplitudes Δ ϕ /ϕ0 are shown as a function of Q (utilizing the ξ ( Q ) shown in Figure 13) for various ϕ0 values.
There is an approximate quadratic increase in the Δ ϕ /ϕ0 of Q , which is evident if one plots the above data on a log–log plot. However, the important conclusion appears to be that there is no single optimal Q , but the smaller the value of Q , the more constant ϕ ( ω ) becomes. If we aim to have a maximum deviation of 5%, then we can choose Q values up to 0.1, depending on ϕ0. So, although we can choose the value of Q , it is important to note that the choice of Q determines the level of constantness. To obtain the desired ϕ ( ω ) = ϕ0, the ξ ( Q ) values need to be determined from Figure 13. We can therefore select a given Q value and then calculate the required ξ ( Q ) values to obtain a mean equal to ϕ0. This is shown for a few Q values in Figure 15.
For example, in the case where ϕ0 = 90 ° , a choice of Q = 0.1 requires that we use ξ 61.3 (the exact value is known from the above detailed calculation), and this will lead to an amplitude of Δ ϕ /ϕ0 5 % . To give more examples for ϕ0 = 90 ° , in the case of three concrete Q choices, one finds the following ξ values, corresponding to central frequencies based on Equations (15) and (16) (with ω0  548   H z , as mentioned above) and relative amplitudes:
Q = 0.05 ,   ξ 3312 , ω 0 , A 0.16   H z ,   ω 0 , B   1814   k H z   and   Δ ϕ / ϕ 0 1.5 %
Q = 0.10 ,   ξ 61.3 , ω 0 , A 8.93   H z ,   ω 0 , B   33.58   k H z   and   Δ ϕ / ϕ 0 5.9 %
Q = 0.15 ,   ξ 16.7 , ω 0 , A 32.8   H z ,   ω 0 , B   9.158   k H z   and   Δ ϕ / ϕ 0 13.0 %
These are illustrated in Figure 16, confirming our calculations. In particular, it is important to note how the amplitude decreases with decreasing Q. This procedure can be repeated with any Q value, and the above calculations show the obtained ω0,A and ω0,B parameters and the resulting ϕ ( ω ) amplitude Δ ϕ /ϕ0.
It is important to keep in mind that the smaller the value of Q is, the larger ξ has to be, but also the smaller Δ ϕ /ϕ0 becomes. Furthermore, the definition of Δ ϕ /ϕ0 corresponds to the deviation of ϕ ( ω ) from its minimal value (reached when ω = ω m i n ω m a x   ) at the edges of the [ωmin, ωmax] interval. The maximal deviation from ϕ0 is actually smaller than that.

3.6. Numerical Solution for the Three-Stage Filter

As detailed above, the single-stage filter case around ϕ0 = 90 ° requires very small Q values and very large ξ values and central frequencies. This motivates us to utilise more stages. It turns out that a two-stage filter yields equivalent results to the single-stage filter: the numerically optimal two-stage filter is obtained when the two central frequencies coincide. If these central frequencies do not coincide, then one needs a third filter to ‘flatten out’ the phase shift. Motivated by this, we try to solve the three-stage filter case, where:
ϕ ( ω ) = ϕ 1 ( ω ) + ϕ 2 ( ω ) + ϕ 3 ( ω )
Utilising the approximative formula of Equation (20) for each of the filters as follows
ϕ i ( ω ) 4 · a t a n [ 1 2 { ξ i Q i ξ i Q i } ] + 4 Q i 2 ξ i Q i ξ i Q i 2 + ξ i 2 Q i + ξ i 2 Q i ( l n ω ω 0 i ) 2
leaves us with the following nine parameters: Q 1 , Q 2 , Q 3 , ξ 1   , ξ 2   , ξ 3 and ω0,1, ω0,2, ω0,3. The central frequencies ω0,A,i and ω0,B,i can be calculated similarly to Equations (15) and (16).
Further investigation of the amplitude of ϕ ( ω ) defined in Equation (21) reveals that many of the parameters are highly correlated. To achieve a symmetric ϕ ( ω ) in the desired frequency range, it can be empirically found that the optimal choice (in terms of the simplicity of the formulas and symmetry of ϕ ( ω ) ) is to set the following constraints as follows:
Q 3 = Q 1 ,   ξ 3 = ξ 1 ,   ω 0 , 2 = ω 0 , 1 ξ 2 ξ 1 ,   ω 0 , 3 = ω 0 , 1 ξ 2 2 .
This leaves us with five free parameters: Q 1 , Q 2 ,   ξ 1 ,   ξ 2 , ω 0 , 1 , which are still correlated. Further empirical investigation of the level of constantness of ϕ ( ω ) finds that three of these ( Q 1 , ξ 2 , ω 0 , 1 ) can be fixed to almost arbitrary values (i.e., these represent weak modes), as long as the remaining two ( Q 2 , ξ 1 , representing strong modes) are set appropriately. These remaining two have to be set such that the desired ϕ ( ω )   ϕ0 is reached. When the original formula of Equation (7) is utilised (not the above approximation of Equation (22)), the optimal choice of parameters is as follows (with ϕ understood in radians):
Q 1 = P 1 ,   Q 2 = P 2 Φ 0 ,   ω 0 , 1 = O 1 ,
ξ 1 = 1 + X 1 ϕ 0 + X 2 ϕ 0 2 X 3 ϕ 0 3 ,   ξ 2 = X 4 ,
where:
P 1 = 0.873 ,   P 2 = 0.06661 ,   O 1 = 10.668   H z ,
X 1 = 0.00063792 ,   X 2 = 0.0023086 ,   X 3 = 0.0066800 ,   X 4 = 44.595
The original central frequencies can thus be calculated from these parameters based on Equations (15) and (16). Furthermore, we find that the best result can be achieved if a small residual correction is applied, i.e., for Q 2 and ξ 1 , a slightly modified ϕ0 value is substituted. This correction can be expressed (with ϕ0 in radians) as:
ϕ 0 ( c o r r ) = 0.0054919 ϕ 0 3 0.0030961 ϕ 0 2 + 0.98601 ϕ 0 0.00044568
With this choice, a relatively constant ϕ ( ω ) can be achieved for several ϕ0 values, as illustrated in Figure 17. The absolute deviation from the desired ϕ0 value is also shown in Figure 17. Clearly, deviations increase as ϕ0 increases, but they are always below 0.5 ° . Most probably, the parameter values and functions can be numerically optimised further if required by the application.
Values for the parameters Q i , ξ i , ω 0 , i , as well as ω0,A,i and ω0,B,i, for several ϕ0 choices are given in Appendix B. One may note here that ξ 1 (and with that ξ 3 ) is extremely close to 1 for | ϕ 0 | < 20 ° . In fact, ξ 1 is even slightly lower than 1, but this is a numerical artefact. In fact, for these cases, it can be understood that ξ 1 = ξ 3 = 1 . This also means that filters number 1 and 3 are effectively cancelled, and only filter number 2 remains in use. At this point, we can recall from the previous section that the single-stage filter was quite effective for smaller absolute values of ϕ0. Here, it turns out that even with three filters, the above-described, partly intuitive numerical optimization does cancel two of them. They become important for | ϕ 0 | values above approximately 20 ° , and especially near 90 ° .

4. Discussion

We now have the optimal parameters for a single-stage and a three-stage filter as well, so it is adequate to investigate their performances in terms of the constancy of the phase shift. A comparison of the single-stage and three-stage filters for ϕ0 = π / 2 is shown in Figure 18. Here, the single-stage filter parameters were calculated based on the previous section, with Q = 0.1 and Q = 0.05 , and the interpolator was used to find the correct value for ξ (which is ξ = 61.31 in the former case, ξ = 3312 in the latter one) corresponding to ω 0 , B of 33.6 kHz and 1.814 MHz, i.e., quite large values which are potentially unattainable in a digital implementation. On the other hand, for the three-stage filter, central frequencies are always <22 kHz. This underlines that, for ϕ0 = π / 2 , the three-stage filter provides a much better solution than the single-stage one.
The codes implementing the above are given in [19] and can be readily used to implement the optimised three-stage filter.

5. Conclusions

In this paper, we present a new, frequency-independent phase shift technique that reduces the number of stages needed, and instead, we introduce the Q-factor as a variable which can be adjusted accordingly for the desired outcome. The accuracy of the technique presented here is dependent on both the frequency and the desired phase shift, with both higher and lower frequencies giving less accurate results. We find a relatively simple analytical formula for the single-stage filter, for which the optimal parameters are found numerically for the range of desired phase shifts [0–90°]. However, for the single-stage filter to be adequately uniform, unfeasibly large central frequencies have to be utilised for phase shifts above approximately 20°. In order to overcome this, a three-stage filter is introduced, and its optimal parameters are provided. In this case, the central frequencies for each of the filters are always below 22 kHz, providing a feasible possibility to implement a frequency-independent phase shift. We find that the three-stage filter is the best choice and that the numerical solution is adequate.

Author Contributions

Conceptualization, P.O.; Data curation, P.O., M.C. and A.K.F.V.B.; Formal analysis, A.K.F.V.B. and M.C.; Funding acquisition, P.O.; Investigation, P.O., A.K.F.V.B. and M.C.; Methodology, A.K.F.V.B. and M.C.; Project administration, P.O.; Resources, P.O.; Software, M.C.; Supervision, P.O.; Validation, M.C.; Visualization, M.C.; Writing—original draft, A.K.F.V.B. and M.C.; Writing—review and editing, A.K.F.V.B., M.C. and P.O. All authors have read and agreed to the published version of the manuscript.

Funding

This research received no external funding.

Data Availability Statement

The original contributions presented in the study are included in the article, further inquiries can be directed to the corresponding author/s.

Conflicts of Interest

A.K.F.V.B is from The Works Research Institute B. V. (company), other authors declare no conflicts of interest.

Appendix A

Table A1. The following table, corresponding to the Φ 0 = π / 2 case, lists the ξ values for various Q values obtained from Equation (15) and plotted on Figure 11. Values for other Φ 0 mean phase shifts with a finer binning in Q are available as a text file in [19].
Table A1. The following table, corresponding to the Φ 0 = π / 2 case, lists the ξ values for various Q values obtained from Equation (15) and plotted on Figure 11. Values for other Φ 0 mean phase shifts with a finer binning in Q are available as a text file in [19].
Q ξ Q ξ Q ξ Q ξ Q ξ Q ξ
0.013.27⋅10170.1142.8680.218.22200.314.96130.414.17620.013.27⋅1017
0.025.79⋅1080.1231.8650.227.61310.324.82590.424.14700.025.79⋅108
0.037.04⋅1050.1324.8280.237.10450.334.70720.434.12380.037.04⋅105
0.0424,6640.1420.0750.246.67550.344.60330.444.10620.0424,664
0.053312.50.1516.7200.256.31070.354.51260.454.09380.053312.5
0.06871.160.1614.2670.265.99820.364.43340.464.08610.06871.16
0.07336.390.1712.4180.275.72890.374.36470.474.08280.07336.39
0.08165.130.1810.9900.285.49570.384.30550.484.08360.08165.13
0.0995.1370.199.86350.295.29290.394.25480.494.08810.0995.137
0.161.3110.28.95920.35.11600.44.21190.54.09600.161.311

Appendix B

Table A2. The following table lists the numerically optimized parameters of the three-stage filter for various Φ 0 values. These parameters are also available as a text file in [19], along with values for central frequencies ω 0 , A , i and ω 0 , A , i for i = 1, 2, 3, calculable from ω 0 , i and ξ i based on Equation (13).
Table A2. The following table lists the numerically optimized parameters of the three-stage filter for various Φ 0 values. These parameters are also available as a text file in [19], along with values for central frequencies ω 0 , A , i and ω 0 , A , i for i = 1, 2, 3, calculable from ω 0 , i and ξ i based on Equation (13).
Φ 0 Φ 0 [rad] Φ 0 ( c o r r ) Q 1 Q 2 Q 3 ξ 1 ξ 2 ξ 3 ω 0 , 1 [Hz] ω 0 , 2 [Hz] ω 0 , 3 [Hz]
−5°−0.08727−0.086520.873470.005760.873471.000044.59511.000010.668475.7521,215
−10°−0.17453−0.172660.873470.011500.873471.000044.59511.000010.668475.7421,215
−15°−0.26180−0.258890.873470.017240.873471.000144.59511.000110.668475.6821,215
−20°−0.34907−0.345240.873470.023000.873471.000344.59511.000310.668475.5721,215
−25°−0.43633−0.431720.873470.028760.873471.000744.59511.000710.668475.4021,215
−30°−0.52360−0.518360.873470.034530.873471.001244.59511.001310.668475.1421,215
−35°−0.61087−0.605180.873470.040310.873471.001944.59511.002010.668474.7921,215
−40°−0.69813−0.692190.873470.046100.873471.002944.59511.003010.668474.3421,215
−45°−0.78540−0.779430.873470.051920.873471.004144.59511.004210.668473.7721,215
−50°−0.87267−0.866910.873470.057740.873471.005544.59511.005610.668473.0721,215
−55°−0.95993−0.954660.873470.063590.873471.007344.59511.007410.668472.2321,215
−60°−1.04720−1.042700.873470.069450.873471.009444.59511.009510.668471.2421,215
−65°−1.13446−1.131040.873470.075340.873471.011944.59511.012010.668470.0921,215
−70°−1.22173−1.219720.873470.081240.873471.014844.59511.014810.668468.7821,215
−75°−1.30900−1.308760.873470.087170.873471.018144.59511.018110.668467.2821,215
−80°−1.39626−1.398160.873470.093130.873471.021944.59511.021810.668465.5921,215
−85°−1.48353−1.487970.873470.099110.873471.026244.59511.025910.668463.7121,215
−90°−1.57080−1.578200.873470.105120.873471.031044.59511.030610.668461.6221,215
−95°−1.65806−1.668850.873470.111160.873471.036444.59511.035710.668459.3221,215

References

  1. Madihian, M.; Watanabe, K.; Yamamoto, T. A Frequency-Independent Phase Shifter. J. Phys. E Sci. Instrum. 1979, 12, 1031–1032. [Google Scholar] [CrossRef]
  2. Jones, B.K.; Sharma, B.K.; Bidle, D.H. A Frequency-Independent Phase Shifter. J. Phys. E Sci. Instrum. 1980, 13, 1346–1347. [Google Scholar] [CrossRef]
  3. Helfric, A. Phase Shifter Using Digital Techniques. Electr. Des. News 1987, 32, 289–290. [Google Scholar]
  4. Mittal, M.; Jamuar, S.S. Programmable Frequency-Independent Switched-Capacitor Phase Shifter of Unity Gain. Meas. Sci. Technol. 1991, 2, 475–477. [Google Scholar] [CrossRef]
  5. Cowan, B. A Versatile Phase Shifter for NMR Experiments and Other Applications. Meas. Sci. Technol. 1992, 3, 296–298. [Google Scholar] [CrossRef]
  6. Jung, D.H.; Ha, I.J. Low-Cost Sensorless Control of Brushless DC Motors Using a Frequency-Independent Phase Shifter. IEEE Trans. Power Electron. 2000, 15, 744–752. [Google Scholar] [CrossRef]
  7. Lobb, W.E. Acoustic Sound System for a Room. U.S. Patent 4,837,829, 6 June 1989. [Google Scholar]
  8. Zurcher, F. Sound Acquisition Method and System, and Sound Acquisition and Reproduction Apparatus. U.S. Patent 5,524,059, 4 June 1996. [Google Scholar]
  9. Elko, G.W.; Teutsch, H. Second-Order Adaptive Differential Microphone Array. J. Acoust. Soc. Am. 2004, 115, 14. [Google Scholar] [CrossRef]
  10. Oomen, P.; De Klerk, L. Environmental Sound Loudspeaker. Netherlands, Amsterdam: Patent WO/2023/287291, 19 January 2023. [Google Scholar]
  11. Sedra, A.S.; Smith, K.C. Microelectronic Circuits, 3rd ed.; Saunders College Publishing: Philadelphia, PA, USA, 1992. [Google Scholar]
  12. Cherepov, S.V. Bridge for AC Measurement of Magnetic Susceptibility. Instrum. Exp. Tech. 1986, 25, 1226–1227. [Google Scholar]
  13. Batrachenko, V.S.; Zarubina, T.V. Controllable Digital Phase Shifter. Instrum. Exp. Tech. 1978, 21, 1344–1345. [Google Scholar]
  14. Maslov, N.V.; Prikhnenko, R.E. Digital Phase Shifter for a Precision Calibrator of Phase Shifts. Instrum. Exp. Tech. 1978, 21, 1346–1347. [Google Scholar]
  15. Sankaran, P.; Jagadeesh Kumar, V.; Sudhakar Rao, K. Precision Frequency-Independent Variable-Phase Phase Shifter. Electron. Lett. 1995, 31, 154–155. [Google Scholar] [CrossRef]
  16. Abuelma’atti, M.T.; Baroudi, U. A Programmable Phase Shifter for Sinusoidal Signals. Act. Passiv. Electron. Compon. 1998, 21, 107–112. [Google Scholar] [CrossRef]
  17. Al-Absi, M.A. A Simple Low Cost Frequency-Independent Phase Shifter. Arab. J. Sci. Eng. 2009, 34, 145–152. [Google Scholar]
  18. Bitar, M.A.; Gallo, A.; Volpe, F.A. Multi-Pole Multi-Zero Frequency-Independent Phase-Shifter. Rev. Sci. Instrum. 2012, 83, 114703. [Google Scholar] [CrossRef]
  19. Csanád, M. Frequency Independent Phase Shifter. GitHub. 2023. Available online: https://github.com/theworksinstitute/fips (accessed on 25 May 2024).
Figure 1. Implementation of (a) a first-order and (b) a second-order all-pass filter.
Figure 1. Implementation of (a) a first-order and (b) a second-order all-pass filter.
Acoustics 06 00039 g001
Figure 2. Implementation of a frequency-independent phase shifter.
Figure 2. Implementation of a frequency-independent phase shifter.
Acoustics 06 00039 g002
Figure 3. Digital implementation of a (a) first-order and (b) second-order all-pass filter, where x[n] is the input signal; y[n] is the output signal; v[n] is the difference equation; Z−1 is the signal in the complex domain; and a, c, and d are parameters that control the break frequency, bandwidth, and cutoff frequency.
Figure 3. Digital implementation of a (a) first-order and (b) second-order all-pass filter, where x[n] is the input signal; y[n] is the output signal; v[n] is the difference equation; Z−1 is the signal in the complex domain; and a, c, and d are parameters that control the break frequency, bandwidth, and cutoff frequency.
Acoustics 06 00039 g003
Figure 4. An all-pass band-stop filter, where x is the input signal; y is the output signal; and fch and fcl are the higher and lower cutoff frequencies, respectively.
Figure 4. An all-pass band-stop filter, where x is the input signal; y is the output signal; and fch and fcl are the higher and lower cutoff frequencies, respectively.
Acoustics 06 00039 g004
Figure 5. Phase shift as a function of frequency, with ω 0 = 500 Hz and Q = 0.5–2.0.
Figure 5. Phase shift as a function of frequency, with ω 0 = 500 Hz and Q = 0.5–2.0.
Acoustics 06 00039 g005
Figure 6. Phase shift as a function of frequency for two three-stage filters with two different sets of parameters.
Figure 6. Phase shift as a function of frequency for two three-stage filters with two different sets of parameters.
Acoustics 06 00039 g006
Figure 7. Phase difference as a function of frequency for a filter with two three-stage filters. The function shown in this plot is the difference of the two functions shown in Figure 6.
Figure 7. Phase difference as a function of frequency for a filter with two three-stage filters. The function shown in this plot is the difference of the two functions shown in Figure 6.
Acoustics 06 00039 g007
Figure 8. Phase difference as a function of frequency with parameters optimised for ϕ0 = −π/2.
Figure 8. Phase difference as a function of frequency with parameters optimised for ϕ0 = −π/2.
Acoustics 06 00039 g008
Figure 9. Phase difference as a function of frequency: the same as Figure 8, but optimised for ϕ 0 = −0.259.
Figure 9. Phase difference as a function of frequency: the same as Figure 8, but optimised for ϕ 0 = −0.259.
Acoustics 06 00039 g009
Figure 10. Plots showing χ2 as (a) a function of ω0,A and ω0,B with Q = 0.09 and (b) a function of Q and ω0,B with ω0,A = 3.5 Hz. The deep blue ‘valleys’ on both plots represent the set of minima.
Figure 10. Plots showing χ2 as (a) a function of ω0,A and ω0,B with Q = 0.09 and (b) a function of Q and ω0,B with ω0,A = 3.5 Hz. The deep blue ‘valleys’ on both plots represent the set of minima.
Acoustics 06 00039 g010
Figure 11. Plot showing Δ ϕ as a function of Q and ξ . The deep blue region contains the most optimal solutions.
Figure 11. Plot showing Δ ϕ as a function of Q and ξ . The deep blue region contains the most optimal solutions.
Acoustics 06 00039 g011
Figure 12. Plot showing ϕ0 as a function of Q and ξ . Each of the lines corresponds to a given ϕ0, i.e., ϕ0 is constant along them.
Figure 12. Plot showing ϕ0 as a function of Q and ξ . Each of the lines corresponds to a given ϕ0, i.e., ϕ0 is constant along them.
Acoustics 06 00039 g012
Figure 13. Lines in this plot represent ξ ( Q ) functions solving Equation (20) in the case of a given ϕ0, expressed in degrees for clarity.
Figure 13. Lines in this plot represent ξ ( Q ) functions solving Equation (20) in the case of a given ϕ0, expressed in degrees for clarity.
Acoustics 06 00039 g013
Figure 14. Relative amplitude Δ ϕ /ϕ0 as a function of Q for various ϕ0 values.
Figure 14. Relative amplitude Δ ϕ /ϕ0 as a function of Q for various ϕ0 values.
Acoustics 06 00039 g014
Figure 15. The ξ value required for ϕ ( ω ) = ϕ0 as a function of ϕ0 for four different Q values.
Figure 15. The ξ value required for ϕ ( ω ) = ϕ0 as a function of ϕ0 for four different Q values.
Acoustics 06 00039 g015
Figure 16. Phase difference as a function of frequency for three different Q values.
Figure 16. Phase difference as a function of frequency for three different Q values.
Acoustics 06 00039 g016
Figure 17. Left: Numerically optimised ϕ(ω) curves for ϕ0 values from − 9 ° to − 189 ° in 9 ° increments (shown in units of radian). Right: The absolute deviation (in degrees) from the desired ϕ0 value.
Figure 17. Left: Numerically optimised ϕ(ω) curves for ϕ0 values from − 9 ° to − 189 ° in 9 ° increments (shown in units of radian). Right: The absolute deviation (in degrees) from the desired ϕ0 value.
Acoustics 06 00039 g017
Figure 18. Comparison of the numerically optimised three-stage filter and two single-stage filters for Q = 0.1 and Q = 0.05.
Figure 18. Comparison of the numerically optimised three-stage filter and two single-stage filters for Q = 0.1 and Q = 0.05.
Acoustics 06 00039 g018
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

Csanád, M.; Val Baker, A.K.F.; Oomen, P. A Frequency-Independent Phase Shifter. Acoustics 2024, 6, 713-729. https://doi.org/10.3390/acoustics6030039

AMA Style

Csanád M, Val Baker AKF, Oomen P. A Frequency-Independent Phase Shifter. Acoustics. 2024; 6(3):713-729. https://doi.org/10.3390/acoustics6030039

Chicago/Turabian Style

Csanád, Máté, Amira K. F. Val Baker, and Paul Oomen. 2024. "A Frequency-Independent Phase Shifter" Acoustics 6, no. 3: 713-729. https://doi.org/10.3390/acoustics6030039

Article Metrics

Back to TopTop