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.

how to make PID algorithm? how PID loop works?

Status
Not open for further replies.

Sahara

Member level 5
Joined
Nov 1, 2007
Messages
83
Helped
2
Reputation
4
Reaction score
0
Trophy points
1,286
Activity points
1,859
PID Algorithm

can anyone define PID loop. or how to make PID algorithm
 

Re: PID Algorithm

Hi,
I suppose the overall concept is as follows and I am sure other members here will be able to clarify it further.
In a PID controller, the control voltage is calculated as a sum of Proportional, Integral and Differential of the error voltage. So, the control voltage Vc can be written as :

Vc = K1*Ve + K2*∫Vedt + K3* dVe/dt

In many feeback control systems, only the proportional term K1*Ve is used. So when a step input is applied, the initial correction takes place as decided by the magnitude of error voltage.
By adding to the control voltage a term proportional to the rate of change of error (differential term ), the initial correction time can be reduced and as the error gets reduced this term will also get reduced. Thus the addition of the differential term improves the initial speed of response of the control system. But if you add more of this term there could be overshoots and damped oscillations in the sytem depending on the phase and gain margins of the system.
The integral term on the other hand adds a time average of the error signal which also gets reduced as the magnitude of error reduces. The effect of integral is more to stabilise the system response and to improve the accuracy of control, since it integrates the error term and even a small error gets corrected in the process.

The PID algorithm should therefore be able to calculate the value of Vc dynamically for given values of k1,k2 and k3.

Regards,
Laktronics
 

Re: PID Algorithm

This could help you.
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top