Continue to Site

Welcome to our site!

Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

  • Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

Graphing Transfer Function

Status
Not open for further replies.
Hello again,


Oh ok that's great. If you want to work on more filters that's cool too, and now that we've done a couple like that we can look at another way to get the amplitude when we have real and imag in the numerator and real and imag in the denominator. I'll use RN and IN for numerator real and imag, and RD and ID for denominator real and imag.

For an equation thus:

(RN+IN*j)/(RD+ID*j)

we can calculate the amplitude like this:
Ampl=sqrt(RN^2+IN^2)/sqrt(RD^2+ID^2)

so that might make it a little easier for you to calculate the amplitudes of these more complex filters.
 
Last edited:
Hey MrAl,

I'd love to continue learning more about filters! That math gimmick you provided is very useful, I'll use that from now on.

What should I do next?
 
Hi again,


Well, now that you have a few formulas you should probably plot a couple of them. For example, plot the low pass filter without that extra resistor R2 and then plot it with the extra resistor, making the resistor somewhat comparable to the first resistor R1. You should then find the -3db point for both and also the passband gain, then compare these findings.
This should be interesting.
 
Hi again,

You can do it however you want, but it may be more illustrative if the two plots are on the same graph, if you have the software to do that of course.
 
Hey MrAl,

I’ll try to produce the graphs via MathCAD. If that doesn’t work, I believe I can upload the graphs I produce on my HP-50G calculator.

Thanks,

Austin
 
Last edited:
Hello again,


Oh ok that's great. If you want to work on more filters that's cool too, and now that we've done a couple like that we can look at another way to get the amplitude when we have real and imag in the numerator and real and imag in the denominator. I'll use RN and IN for numerator real and imag, and RD and ID for denominator real and imag.

For an equation thus:

(RN+IN*j)/(RD+ID*j)

we can calculate the amplitude like this:
Ampl=sqrt(RN^2+IN^2)/sqrt(RD^2+ID^2)

so that might make it a little easier for you to calculate the amplitudes of these more complex filters.

Hey MrAl,

I guess I'm still not quite sure how I seperate the imaginary and real parts, given a circuit? I suppose that I solve it using nodal analysis, and then try to get the terms in the order of that first equation you listed? Or is that first equation just an example equation?

Thanks!
 
Hi again,


It's all in the grouping. Let me give a few examples...

A+B+C+D

Those four terms are all real, so the real part is A+B+C+D. They are all real because there is no 'j' multiplying any of them.

A+B+C*j+D

Here we have to group the terms that contain 'j' as imag and those that dont as real, so the real part is A+B+D and the imag part is C.

A+B*j+C+D*j

Here we have two terms that have 'j' multiplying them, and two that dont. The two that dont are real, and the two that do are imag, so the real is A+C and the imag is B+D.

A*j+B*j+C*j+D*j

Here everything is multiplied by j, so everything is imag and the real part is zero.

One way to look at it is we group all the 'j' terms together and that forms the imag part, and whatever is left over is real.

A+B*j+C*j+D*j

we can regroup this as A+j*(B+C+D) so A is real and B+C+D is imag.

When we have a numerator and denominator, we do the same thing except separately for each one.

(A+B*j+C*j)/(D+E+F*j+G*j)

we can regroup as:
(A+j*(B+C))/(D+E+j*(F+G))

and so real in the numerator is A, and imag numerator is B+C, and real in denom is D+E and imag is F+G.

Make sense?

Now you try one:

(A+B+C*j+D+E*j+1)/(F*j+G+H*j+3)

Find the real and imag in numerator, and real and imag in denominator.
 
Last edited:
Hi,

[LATEX]\frac{A + B + Cj + D + Ej + 1}{Fj + G + Hj + 3} = \frac{A + B + D + 1 + j(C + E)}{G + 3 + j(F + H)}[/LATEX]

[LATEX]R_N = (A + B + D+ 1)[/LATEX]

[LATEX]R_D = (G + 3)[/LATEX]

[LATEX]I_N = (C + E)[/LATEX]

[LATEX]I_D = (F + H)[/LATEX]

Thanks for the examples.
 
Hi again,


Did that help, as in did that help you understand how to go about identifying the real parts and imag parts?
 
Hi MrAl,

Yes, that did help.

I have produced the equations you wanted, and I've been trying to graph them but unfortunately I can't get MathCAD to graph anything! Have you had any experience with MathCAD? I'm trying to get my HP-50G to download the graphs on the PC.

Here are the equations:

Low-Pass Filter:

[LATEX]V_O = V_{IN} \left(\frac{\frac{1}{j \omega C}}{\frac{1}{j \omega C} + Z_R}\right)[/LATEX]

Simplify:

[LATEX]V_O = V_{IN} \left(\frac{\frac{1}{j \omega C}}{\frac{1}{j \omega C} + Z_R}\right) * \frac{ j \omega C}{ j \omega C}[/LATEX]

[LATEX]V_O = \frac{V_{IN}}{1 + Z_R j \omega C}[/LATEX]

Seperate Real & Imaginary:

[LATEX]\frac{R_N + I_N * j)}{(R_D + I_D * j)}[/LATEX]

[LATEX]\frac{V_{IN}^2}{(1 + Z_R^2 \omega^2 C^2)}[/LATEX]

Calculate Amplitude:

[LATEX]Amplitude = \frac{V_{IN}}{\sqrt{1 + Z_R^2 \omega^2 C^2}[/LATEX]

Low-Pass Filter With Loading Effect:

[LATEX]\frac{V_{IN} - V_O}{Z_R} = V_O j \omega C + \frac{V_O}{R_L}[/LATEX]

Simplify:

[LATEX]\frac{V_{IN}}{Z_R} - \frac{V_O}{Z_R} = V_O j \omega C + \frac{V_O}{R_L} [/LATEX]

[LATEX]V_{IN} = V_O R_L + V_O Z_R + V_O R_L Z_R j \omega C[/LATEX]

[LATEX]V_O = \frac{V_{IN} R_L}{R_L + Z_R + R_L Z_R j \omega C}[/LATEX]

Seperate Real & Imaginary:

[LATEX]\frac{V_{IN}^2 R_L^2}{R_L^2 + Z_R^2 R_L^2 Z_R^2 \omega^2 C^2}[/LATEX]

Calculate Amplitude:

[LATEX]Amplitude = \frac{V_{IN} R_L}{\sqrt{R_L^2 + Z_R^2 + R_L^2 Z_R^2 \omega^2 C^2}}[/LATEX]
 
Last edited:
Hi,

I got my HP-50G to show the graphs, but only individually. I don't have a large enough span in order to plot them both. The problem is that with the 50Ω load, it reduces [LATEX]V_O[/LATEX] drastically down to the mV range. So I don't even see the latter graph, only the former one.

For some reason I still can't get MathCAD to graph anything!
 
Last edited:
Here are the individual graphs, in case you'd like to see them.
 

Attachments

  • LowPassTransferFunction1.JPG
    LowPassTransferFunction1.JPG
    3.9 KB · Views: 334
  • LowPassLoadTransferFunction1.JPG
    LowPassLoadTransferFunction1.JPG
    3.8 KB · Views: 345
Hi again,


What values are you using for R1 and C, and R2 ?

Also, did you find the -3db point for these curves?

I think you might also have to label the graph tic marks so we know what the amplitude came out to, and what the frequency is for each point.

I havent used MathCad, is there a free download?
 
Last edited:
Hey MrAl,

[LATEX]R_1 = 1k\Omega[/LATEX]

[LATEX]R_L = 50\Omega[/LATEX]

[LATEX]C = 10nF[/LATEX]

R1 and C are the same for both circuits.

There are other math softwares around for free, I'll check into them.

-3dB Point of Low-Pass:

[LATEX]f_R = \frac{1}{2 \pi RC}[/LATEX]


[LATEX]f_R = \frac{1}{2 \pi (1*10^3)(10*10^{-9})[/LATEX]

[LATEX]f_R = 15,915 Hz[/LATEX]

The -3dB point frequency is the same for both filters, since I have the same values.
 
Last edited:
Hi again,


There is something wrong with the denominator for your loaded filter. You'll have to go over that.

Also, try using 1k for R1 and 1k also for RL so that the load is comparable to R1. Once you do that, find the passband gain and -3db point for both filters and dont assume anything.
 
Hi MrAl,

I really don't see anything wrong with the denominator, can you provide a hint?

I'll use the same values for RL and R1.

Thanks,

Austin
 
Hi MrAl,

Yes, that did help.

I have produced the equations you wanted, and I've been trying to graph them but unfortunately I can't get MathCAD to graph anything! Have you had any experience with MathCAD? I'm trying to get my HP-50G to download the graphs on the PC.

Here are the equations:

Low-Pass Filter:

[LATEX]V_O = V_{IN} \left(\frac{\frac{1}{j \omega C}}{\frac{1}{j \omega C} + Z_R}\right)[/LATEX]

Simplify:

[LATEX]V_O = V_{IN} \left(\frac{\frac{1}{j \omega C}}{\frac{1}{j \omega C} + Z_R}\right) * \frac{ j \omega C}{ j \omega C}[/LATEX]

[LATEX]V_O = \frac{V_{IN}}{1 + Z_R j \omega C}[/LATEX]

Seperate Real & Imaginary:

[LATEX]\frac{R_N + I_N * j)}{(R_D + I_D * j)}[/LATEX]

[LATEX]\frac{V_{IN}^2}{(1 + Z_R^2 \omega^2 C^2)}[/LATEX]

Calculate Amplitude:

[LATEX]Amplitude = \frac{V_{IN}}{\sqrt{1 + Z_R^2 \omega^2 C^2}[/LATEX]

Low-Pass Filter With Loading Effect:

[LATEX]\frac{V_{IN} - V_O}{Z_R} = V_O j \omega C + \frac{V_O}{R_L}[/LATEX]

Simplify:

[LATEX]\frac{V_{IN}}{Z_R} - \frac{V_O}{Z_R} = V_O j \omega C + \frac{V_O}{R_L} [/LATEX]

[LATEX]V_{IN} = V_O R_L + V_O Z_R + V_O R_L Z_R j \omega C[/LATEX]

[LATEX]V_O = \frac{V_{IN} R_L}{R_L + Z_R + R_L Z_R j \omega C}[/LATEX]

Seperate Real & Imaginary:

[LATEX]\frac{V_{IN}^2 R_L^2}{R_L^2 + Z_R^2 R_L^2 Z_R^2 \omega^2 C^2}[/LATEX]

Calculate Amplitude:

[LATEX]Amplitude = \frac{V_{IN} R_L}{\sqrt{R_L^2 + Z_R^2 + R_L^2 Z_R^2 \omega^2 C^2}}[/LATEX]


THIS LINE LOOKS OK:
[LATEX]V_O = \frac{V_{IN} R_L}{R_L + Z_R + R_L Z_R j \omega C}[/LATEX]

Seperate Real & Imaginary:
THIS LINE DOESNT:
[LATEX]\frac{V_{IN}^2 R_L^2}{R_L^2 + Z_R^2 R_L^2 Z_R^2 \omega^2 C^2}[/LATEX]

Calculate Amplitude:
SO THIS LINE IS NOT CORRECT EITHER:
[LATEX]Amplitude = \frac{V_{IN} R_L}{\sqrt{R_L^2 + Z_R^2 + R_L^2 Z_R^2 \omega^2 C^2}}[/LATEX]

Note in the second line you lost a variable again, and in the third line it comes back but it's not correct.
I think you should take one step at a time, so instead of separating real and imag parts and squaring all in one step, do the separation first and after that is completely done THEN do the squaring or whatever else is needed.
 
Last edited:
I forgot to include the "+" into the second line, sorry.

[LATEX]\frac{(V_{IN} R_L)^2}{(R_L + Z_R)^2 + (Z_R \omega C)^2}[/LATEX]

[LATEX]Amplitude = \frac{\sqrt{V_{IN}^2 R_L^2}}{\sqrt{R_L^2 + 2R_L Z_R + Z_R^2 + Z_R^2 \omega^2 C^2}}[/LATEX]

[LATEX]Amplitude = \frac{V_{IN} R_L}{\sqrt{R_L^2 + 2R_L Z_R + Z_R^2 + Z_R^2 \omega^2 C^2}}[/LATEX]

Sorry about that!

I'll get the graphs produced for you soon.

Thanks,

Austin
 
Last edited:
Status
Not open for further replies.

Latest threads

New Articles From Microcontroller Tips

Back
Top