+ Post New Thread
Results 1 to 4 of 4
  1. #1
    Full Member level 3
    Points: 2,393, Level: 11
    Achievements:
    7 years registered

    Join Date
    May 2010
    Posts
    150
    Helped
    1 / 1
    Points
    2,393
    Level
    11

    filter unwanted signal keeping fast RMS settling time

    Hi,
    i designed a sinusoidal pwm amplifier (3KHz to 20KHz) that regulates its output voltage reading the RMS value of output current.
    The RMS is obtained squaring the signal sampled by AD converter @200KHz and then applyng a FIR filter with 120 TAPS.
    The advantage of this method is that the settling time of the FIR (so the response to amplitude changing) is about 600us so i can correct the pwm duty every 1ms because the value is alread stable.
    All works fine but the problem arises when an external signal is added to the signal the amplifier is generating.
    Infact a signal of about 600Hz different from original one (i.e. amplifier generates 4950Hz and a 5550Hz signal is added as external noise) causes an oscllation in RMS measure makes the amplidifer works in wrong way.
    Applying a bandpass FIR makes the response of FIR slower. I tried downsampling by a factor of 4 and make a FIR of 1KHz bandwith but the fastest settling time i obtained was about 5ms that is too much because i've to regulate every 1ms.
    Have you any idea or advice? Is there any algorithm to cancel unwanted component maintaing fast RMS response?
    Thank you . Let me know.

    •   AltAdvertisement

        
       

  2. #2
    Super Moderator
    Points: 80,340, Level: 69
    Achievements:
    7 years registered
    Awards:
    Most Frequent Poster 3rd Helpful Member

    Join Date
    Apr 2014
    Posts
    16,299
    Helped
    3697 / 3697
    Points
    80,340
    Level
    69

    Re: filter unwanted signal keeping fast RMS settling time

    Hi,

    FIR filter doesn't say much....it can be of any characteristic....

    I'd go with at least 4'th order FIR LPF. It needs to pass 40kHz and suppress 400kHz. (squaring doubles frequency)

    Maybe sqrt(40kHz x 400kHz) = 125kHz is a good compromise as fc.

    Klaus
    Please don´t contact me via PM, because there is no time to respond to them. No friend requests. Thank you.



    •   AltAdvertisement

        
       

  3. #3
    Super Moderator
    Points: 263,599, Level: 100
    Awards:
    1st Helpful Member

    Join Date
    Jan 2008
    Location
    Bochum, Germany
    Posts
    46,053
    Helped
    14006 / 14006
    Points
    263,599
    Level
    100

    Re: filter unwanted signal keeping fast RMS settling time

    How can the output current regulated correctly if the current measurement contains significant foreign signals? Also when suppressing beat frequencies the RMS value will be wrong.



    •   AltAdvertisement

        
       

  4. #4
    Advanced Member level 5
    Points: 12,477, Level: 26

    Join Date
    Aug 2015
    Location
    Melbourne
    Posts
    2,039
    Helped
    748 / 748
    Points
    12,477
    Level
    26

    Re: filter unwanted signal keeping fast RMS settling time

    Assuming you want to regulate the rms output voltage - and the additional signal is a net average zero - it is AC after all right?

    then because the fundamental is a sine wave - you do do a fast rectify and simple RC filter ave = 0.9009 of the rms ( 1 / 1.11 )

    try and filter out the extra signal to just leave the fundamental to be rectified and minimally filtered ...



--[[ ]]--