Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Digital PID implementation - considerations

Status
Not open for further replies.

banh

Advanced Member level 1
Joined
Dec 16, 2004
Messages
458
Helped
17
Reputation
34
Reaction score
5
Trophy points
1,298
Activity points
3,935
site:www.edaboard.com pid+z transform

when implementing PID using microcontroller, there are a few methods, esp. for differentiation and integration.

what are the methods of differentiation ( for e.g. D[n] = e[n]-e[n-1] or e[n]-2[n-1]+e[n-2], etc.) and what are their pros & cons?

what are the methods of integration (summing all errors, or I[n] = I[n-1]+t0*e[t], etc.) and what are their pros & cons ?
 

as far as i know, those that you mentioned are the standard way of implementing differentiation and integration in Digital PID algorithms. Mostly the question in PID or the challenge there is to determine the gain for the integral, derivative, and pro terms.
 

As far as I know, there is only one standard form for implementing differentiators and integrators. But in digital control, we usually find the overall transfer function, then use the inverse Z-transform to get the difference equations.

banh said:
what are the methods of differentiation ( for e.g. D[n] = e[n]-e[n-1] or e[n]-2[n-1]+e[n-2], etc.) and what are their pros & cons?
The 2nd form is simply a double differentiator (without consideration for the differential gain of course). You can work it out yourself.
 

oh yes, i noticed again the 2nd form of differentiation is double. for differentiation -> noise is amplified. double differentiation -> more noise?
 

I worked through the inverse Z-transform for a digital PID. Hope it will help you.
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top