Objectives • To design different types filters using various platforms such as MATLAB program, Simulink, Filter design app of MATLAB, Filter design apps • To perform simple filter circuit in Test board and measure filter action using oscilloscope Passive low pass filter Cutoff frequency • P=v2 • ½=v2 • V=1/√2=0.707 • Power gain =0.5 • Pout/Pin =0.5=10(-3/10) • -3/10=log10(p out/Pin) • -3dB= log10(p out/Pin) MATLAB program for Low pass filter laplace for R=R which is expressed in matlab written as tf(R,1) in matlab as R/1, which in result is R Laplace for L as LS which in matlab written as tf([L 0],1) as (L+0)/1, which in result is LS . VL =i Laplace transform for C as which in matlab written as tf[1, (C 0)] which in result 1/ CS+0 =1/CS
• L = 5000; R = 1200; C = (10.^-3) ;
• ZR = tf(R, 1); • ZL = tf([L 0],1); • ZC = tf(1,[C 0]); • H = ZC/(ZR+ZL+ZC); bode (H) • Another method • Num=[1]; • Den=[1 R/L 1/L*C]; • H=tf(num,den); • Bode(H) to convert radian to freq-> multiply radian X 0.159155 esign Method Function Butterworth butter Chebyshev Type I cheby1 Chebyshev Type II cheby2 Elliptic ellip Maximally Flat maxflat Equiripple firpm Least-squares firls Constrained least-squares fircls Complex equiripple cfirpm Window fir1 Second Order low pass filter
LAB works-1 • Find the critical frequency and phase shift for LP,HP,BP and BS using values R1=1K and C1=1uF for HP and LP, similarly for BP and BS use R2=1K,C2=1nF RC filter Active filter Butter filter Low Pass Filter HP filter Bandpass Filter The Filter Designer app gives you access to the following Signal Processing Toolbox™ filter design methods. 1.The Filter Designer app is a user interface for designing and analyzing filters quickly. 2.The app enables you to design digital FIR or IIR filters by setting filter specifications, by importing filters from your MATLAB® workspace, or by adding, moving or deleting poles and zeros. 3.It also provides tools for analyzing filters, such as magnitude and phase response and pole-zero plots.