Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
07/18/05 14:20
Read: times


 
#97566 - Another perspective
Responding to: ???'s previous message
Sun,

Erik's response is dead on correct.

A frequent occurrence in signal processing applications is that one wishes to measure an ac component (or range of components) of a signal, or a dc component of a signal, but for some reason the signal may have both components present. A filter can decrease the contribution of the undesired component prior to measuring it. For example, if a dc value is desired of a signal which also has an ac component, the signal should be passed through a low-pass filter prior to measuring it. Likewise, if an ac component is desired pass the signal through a high-pass filter. Now, these two filters have general 'shapes' in the frequency domain, but many implementations depending on the precise nature of the 'shape' desired.

Since your original question related to a PID, I'm guessing you want to understand how to smooth a feedback signal before applying it to a PID, or how to implement a PID as a filter. I'll give you the first here, but the second is a bit tricky as a purely linear implementation is fraught with faults in the real world. This is an easy, first order difference equation that implements a low pass filter as an infinte impulse response (IIR) filter -

y(n) = b*y(n-1) + a*x(n)

where n is an index (n is the present value, n-1 is the value from the last iteration),
x is the input
y is the output
a & b are cofficients whose sum is one individually greater than zero. To make the filter have a fast response make a greater than b. To make the filter have a slower response, make b greater than a.

If after reading this, you still wish to implement a linear PID, I'd be happy to work through it with you in this thread.

Cheers,

Bruce


List of 15 messages in thread
TopicAuthorDate
Off Topic - A control systems question            01/01/70 00:00      
   Filters to provide PID-controlling            01/01/70 00:00      
      A question            01/01/70 00:00      
         frequency - delay            01/01/70 00:00      
            Another perspective            01/01/70 00:00      
               I would to understand            01/01/70 00:00      
                  Plant response            01/01/70 00:00      
                  How the controller controls the plant            01/01/70 00:00      
         filters ...            01/01/70 00:00      
         Mathematics helps to understand...            01/01/70 00:00      
            How come ?            01/01/70 00:00      
               Fluxions            01/01/70 00:00      
   Pictures and animated graphics and all            01/01/70 00:00      
      Very nice link, indeed!            01/01/70 00:00      
   thank you all.            01/01/70 00:00      

Back to Subject List