??? 11/05/10 01:09 Read: times |
#179493 - 4 Months Responding to: ???'s previous message |
I took less than that before the Net.
The basics are simple for the generic formula(s) vary and you are onyour own. 1. Calculate the error as 0 to 100% of the input range 2. P = Error I = I + Error ( read up on integral wind up) D = Error - Last Error 3a. Out = ( (Kp * P) + (Ki * I) + (Kd * D ))/Time in seconds Or 3b. Out = Kp( (P) + (Ki * I) + (Kd * D ))/Time in seconds b is mathematically better, A is easier to Tune 4. The Output is 0 to 100% scale that to you Output Control. I assume 20 megs is the Math He should be able to code code and Tune a PI Control by just playing. Most of the tuning descriptions assume you are using the exact formulas. BTW: floats make that math easy but are not strictly needed. Ints and longs can work. |
Topic | Author | Date |
PID temperature controller | 01/01/70 00:00 | |
LPC2136 | 01/01/70 00:00 | |
Did you google it? | 01/01/70 00:00 | |
RE: It has been discussed. | 01/01/70 00:00 | |
This might help you for a start... | 01/01/70 00:00 | |
how do i get p d and i | 01/01/70 00:00 | |
getting values | 01/01/70 00:00 | |
Have you actually done any research at all? | 01/01/70 00:00 | |
PID Without a PhD | 01/01/70 00:00 | |
thanks and some doubts | 01/01/70 00:00 | |
Sorry but.... | 01/01/70 00:00 | |
OK | 01/01/70 00:00 | |
lets start over again | 01/01/70 00:00 | |
First things first. | 01/01/70 00:00 | |
my email id | 01/01/70 00:00 | |
4 Months | 01/01/70 00:00 | |
Yes, Pretty true..it was in 1997 | 01/01/70 00:00 | |
How to post legible source code | 01/01/70 00:00 |