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.

Who have example code for PID Control ?

Status
Not open for further replies.

SPATAN

Full Member level 2
Joined
Aug 17, 2004
Messages
135
Helped
8
Reputation
16
Reaction score
3
Trophy points
1,298
Activity points
1,021
PID Control

Who have example code for PID Control ?
Please help me. MCS51 or PIC
 

raja_srs

Newbie level 4
Joined
Oct 6, 2004
Messages
6
Helped
1
Reputation
2
Reaction score
1
Trophy points
1,283
Activity points
45
Re: PID Control

Hello,
In what application your using PID Algorithm. Give details of your Quary. I already worked in this Algorithm in Temperature Controllers.
 

Cluricaun

Advanced Member level 2
Joined
Sep 28, 2001
Messages
627
Helped
17
Reputation
34
Reaction score
7
Trophy points
1,298
Activity points
3,315
Re: PID Control

Hi

Hi search for PID AND code, I hope there are anything usefull.
Here are some suggestions that might point you in the right direction.





/Cl
 

    SPATAN

    Points: 2
    Helpful Answer Positive Rating

SPATAN

Full Member level 2
Joined
Aug 17, 2004
Messages
135
Helped
8
Reputation
16
Reaction score
3
Trophy points
1,298
Activity points
1,021
Re: PID Control

I use for Temperature control.
my sensor is thermocouple.
 

Bluechem

Member level 4
Joined
Sep 5, 2004
Messages
70
Helped
1
Reputation
2
Reaction score
0
Trophy points
1,286
Activity points
698
PID Control

It deponds on the acceptable tolerance, needed response time, temprature range and consequences of failing.
 

raja_srs

Newbie level 4
Joined
Oct 6, 2004
Messages
6
Helped
1
Reputation
2
Reaction score
1
Trophy points
1,283
Activity points
45
Re: PID Control

For Temp. calculations using PID , U must have 5 i/p values,i.e expexted temp, absorbed temp form TC, P constant(PC), I constant(IC), D constant(DC)

then
1. error(praportional)=temp. diff
2. abs(error) * PC >100 goto line6
3. reset(integration)=reset+(error*IC) intial reset is 0
4. reset*PC >100 reset = PC/100
5. reset is -ve put zero
6. rate(Differential)=error-prv.error
7. add P+I+D
 

Fragrance

Advanced Member level 4
Joined
Jul 26, 2002
Messages
1,191
Helped
248
Reputation
496
Reaction score
200
Trophy points
1,343
Location
East Of Earth
Activity points
8,917
Re: PID Control

hi

also look at that topic may help full for you
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Top