Transfer Function of Second Order Notch Filter - Mechatronics

By Beatrice Black,2014-02-08 04:40
7 views 0
Transfer Function of Second Order Notch Filter - Mechatronicsof,Of,order,notch,Notch

    In this effort, we will assume that the dynamics of light incident on a spherical bead

    satisfies the model of a notch filter with a given notch frequency . The input into the system n

    consists of light of a given wavelength (correspondingly an excitation frequency ) and a known magnitude denoted as A. The output from the system consists of a light waveform with a given

    attenuated amplitude denoted as B.

    System identification of a Notch Filter

    The following methodology will utilize a measurement of B given a known input waveform consisting of A and , to estimate the notch frequency . To compute the notch n

    frequency we employ the model of a second order notch filter with a given transfer function

    given by

    22sY(s)n. (1) 22R(s)s2snn

    Figure 1 shows the resulting magnitude bode plot of (1).

    Bode Diagram0






    Magnitude (dB)





    Frequency (rad/sec)

    Figure 1: Magnitude bode plot of (1)

    r(t)AcostThe input signal R(s) can be modeled as a pure cosine function described by . Using this excitation function into (1) produces a steady state solution for y(t) as follows

    , y(t)Bcos(t)Bsin(t) (2) 12

    where and are defined as BB122222AAnn22(), (2,,) BB. (3) 1n2n22222222()4()()4(),,,,nnnn

Using (2) and (3), we can compute the magnitude of the output signal B to be

    22An, which can be further simplified as follows B2222()4(,,)nn

    22An B, (4) 22n

    From (4), if we choose an excitation frequency that is smaller than the notch frequency, then we can ignore the absolute sign and solve for to yield an explicit solution for as follows nn

    AB (5a) . nAB

    If we choose an excitation frequency that is larger than the notch frequency, then we can replace the absolute sign with a negative sign and solve for to yield an explicit solution for as nn


    AB (5b) . nAB

    Now since we do not explicitly know what the notch frequency is, thus we can not determine whether the excitation frequency is larger or smaller than . However, we can n

    compute two estimates of the notch frequency for a given data set of A, B, . So, if we compute

    another two estimates of the notch frequency for another data set that is relatively close to the first data set, then we can compare which of the two estimates does not vary. Thus, if we know the input and output signal amplitudes and the input signal frequency, we can determine the system notch frequency from (5).

Determine Notch Frequency using Feedback Control

     The following methodology will utilize a hybrid feedback control algorithm to numerically converge to the system notch frequency. Specifically, we will employ the form of the excitation signal r(t) given in the previous section such that we will use the excitation frequency as the control input.

    At a given time step of the control algorithm, we will obtain two responses of the system dynamics using the excitation function previously mentioned for two values of , i.e.,

    , where is the control frequency at a given step k -1 (k1), (k1)!,(k1)1o2oo

    and !, is a small, positive frequency. From these responses, we can compute the output amplitudes denoted by B and B which we will use to update for the current time step. (k)12o

     We choose the following form for the control algorithm

    B(k1)1;;(k)KsgnB(k1)B(k1)(k1). (6) oo21A(k1)

    thwhere A(k-1) is the input amplitude of the (k-1) time step, K is an arbitrary, positive, constant,

    feedback control gain, and the sgn(?) is the sign function. The purpose of the sign function in (6) is to determine which direction the frequency change should occur in order to converge to the

    B(k1)1notch frequency. In addition, the term in (6) should decrease at every time step as we A(k1)

    approach the notch frequency, such that when it comes close enough to the notch frequency the subsequent changes in (6) will only oscillate within two values of the excitation frequency. In this region, the oscillation will occur as a result of the sign function since near the notch frequency the sign function will repeatedly switch between positive and negative 1 while all other terms in (6) will be invariant with respect to time step. Taking the average of oscillating excitation frequencies should provide a good estimate for the notch frequency. Note that choosing a small the control gain K results in higher accuracy estimates of the notch frequency. However, the small values of K will also result in slower convergence rates to the notch frequency.

     The following is a step-by-step procedure for computing the notch frequency using this methodology:

    1) Guess an initial excitation frequency (1)o

    2) Compute the amplitudes B(1) and B(1) using the system dynamics 12

    (2)o3) Compute the new excitation frequency using (6) when k=2

    (k)(k1)oo4) Repeat the following until is small:

    a) Compute the amplitudes B(k-1) and B (k-1) using the system dynamics 12

    b) Compute the new excitation frequency using (6) (k)o

    We simulated the control algorithm of (6) on the system dynamics of (1) using the following parameters: , K = 5000, . Figure 2 shows the resulting control (1)50010,000on

    frequency time history. Within 8-9 time steps, figure 2 shows the control frequency has converged to almost the exact value of the notch frequency.








    Frequency rad/sec





    Time step

    Figure 2: Sample iteration control plot to compute the notch frequency

Report this document

For any questions or suggestions please email