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.

[SOLVED] I need help in PID implementation

Status
Not open for further replies.

mohamed.elsabagh

Full Member level 2
Joined
Oct 27, 2010
Messages
145
Helped
7
Reputation
14
Reaction score
7
Trophy points
1,298
Activity points
2,320
I need to ask question on PID controller algorithm, my goal is to implement a PID to control heater using PID algorithm, but in my case I would like to control the settling time, which means that I may like to increase it or decrease it at run time. Can any one guide me please.
 

what hardware are you using and how can you interact with it?
For example, I have microcontroller systems connected to a PC and controlled via a GUI written in C++.
I can vary the constants of the PID algorithm using sliders the values of which are sent to the micrcontroller.
The microcontroller monitors the communications (e.g.serial line, USB, ethernet, WiFi, Zigbee) and updateds the control system.
 
what hardware are you using and how can you interact with it?
For example, I have microcontroller systems connected to a PC and controlled via a GUI written in C++.
I can vary the constants of the PID algorithm using sliders the values of which are sent to the micrcontroller.
The microcontroller monitors the communications (e.g.serial line, USB, ethernet, WiFi, Zigbee) and updateds the control system.

if i have the same example , how can i get a relation between the new settling time and the new K's ( PID constans ) ??
 

what hardware are you using and how can you interact with it?
For example, I have microcontroller systems connected to a PC and controlled via a GUI written in C++.
I can vary the constants of the PID algorithm using sliders the values of which are sent to the micrcontroller.
The microcontroller monitors the communications (e.g.serial line, USB, ethernet, WiFi, Zigbee) and updateds the control system.



I am using silab microcontroller c8051f340 which supports usb communication and I wrote the GUI but the real question here is that I need to do the tunning in the run time without running the open loop test, which means I need a mathematical relation between the settling time and the parameters of my systems

---------- Post added at 21:05 ---------- Previous post was at 21:00 ----------

I can see from the first pdf that the settling time, the steady state error and the overshoot of the system is related to the parameters of the system (either directly or inversly prportional) but I need a mathematical relation to use, in order to get the required settling time from the parameters without the need to more fine tunnig ofcourse because I am already in the run time.

---------- Post added at 22:53 ---------- Previous post was at 21:05 ----------

Hi,

You can adjust 3 PID control parameters in run-time to get desired settling time,
**broken link removed**
https://www.cds.caltech.edu/~murray/courses/cds101/fa04/caltech/am04_ch8-3nov04.pdf


I can see from the first pdf that the settling time, the steady state error and the overshoot of the system is related to the parameters of the system (either directly or inversly prportional) but I need a mathematical relation to use, in order to get the required settling time from the parameters without the need to more fine tunnig ofcourse because I am already in the run time.
 

what are the equations you used in GUI to relate the PID parameters (kp, ki, kd) to the settling time.
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top