Cascading LP filter transfer function

Click For Summary
The discussion centers on designing a three-stage cascading digital low-pass filter to address DC offset errors encountered during the integration of an AC waveform. The user is attempting to convert the transfer function from the s-domain to the z-domain using the Tustin transformation but is uncertain about the correct formulation. They express confusion regarding the application of partial fractions and the representation of z terms, questioning if z should be z^{-1}. Additionally, there is a mention of MATLAB's approach to transfer functions, suggesting a possible difference in definitions. The conversation emphasizes the complexity of s to z domain transformations and encourages further study on digital filter design.
stiive
Messages
2
Reaction score
0
Hi All,
I'm new to this forum. Its been awhile since university, so I've unfortuntely forgotten most of my teachings on transfer functions it seems!

Basically I am trying to design a 3 stage cascading digital low pass filter. I am sampling an AC waveform and need to integrate the signal. I'm getting some DC offset error from pure integration (trapezoidal method), so have decided to use a cascading filter with an adjustable cut-off freq (set just above the current variable AC electrical freq), and gain multiplication to compensate for attenuation and for the integration.

I have been told that the transfer function for the 3 identical stage filter of a sine would be
H(s)=G*(\frac{1}{\tau*s+1})^{3}

Obviously as i am sampling discretely, I need to be in Z domain
So I think i'd apply tunstin transformation(?) ;

s=\frac{2(z-1)}{T(z+1)}

therefore,

H(Z) = G*(\frac{1}{\tau[\frac{2(z-1)}{T(z+1)}]+1})^{3}

where \tau= cut-off freq, G = gain, T = Δtime

But from here I'm kinda stuck, and would appreciate any prompting/help in the right direction. I'm guessing i'll need to do partial fractions? I have tried this, but the answer I got I'm fairly sure is wrong as most of the terms are future sample input/outputs (ie y[n+3], x[n+3]). Is perhaps the z term meant to be z^{-1}? For instance, I have seen in MATLAB simulink the trapezoidal transfer function as;

\frac{K*Ts(z+1)}{2(z-1)}

whereas i think it should be;

\frac{K*Ts(z^{-1}+1)}{2(z^{-1}-1)}

Perhaps MATLAB uses geophysical(?) definition?

Perhaps also instead of tunstin transformation, i should just use s=z^{-1}??

Thanks for any help in advance!
 
Engineering news on Phys.org
Thread 'I thought it was only Amazon that sold unsafe junk'
I grabbed an under cabinet LED light today at a big box store. Nothing special. 18 inches in length and made to plug several lights together. Here is a pic of the power cord: The drawing on the box led me to believe that it would accept a standard IEC cord which surprised me. But it's a variation of it. I didn't try it, but I would assume you could plug a standard IEC cord into this and have a double male cord AKA suicide cord. And to boot, it's likely going to reverse the hot and...

Similar threads

Replies
5
Views
2K
  • · Replies 40 ·
2
Replies
40
Views
6K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 20 ·
Replies
20
Views
2K
  • · Replies 30 ·
2
Replies
30
Views
5K
  • · Replies 16 ·
Replies
16
Views
2K
Replies
11
Views
3K
Replies
3
Views
7K
Replies
14
Views
3K
  • · Replies 4 ·
Replies
4
Views
1K