I have searched the internet but have failed to find sufficient info on how to program a controller to work as PID...........can u pls help me solve this problem...............also can we use hardware format PID in conjunction with AVR that too how...........pls help me out

I wish to be using this PID controler for controlling a heater , compresser and a piltier module. I am basically making a final year project in which i have to control the temprature of an incubator between -10c to +40c..........so how will I use the error should I use a comparator and till the time the value doesnot become 0 keep the related equipment on some thing like that.........Also as the user needs to set the temprature the setpoint would become the input temprature..........Pls provide me with some usefull tips........is this block diagram oksensor-->ADC-->PID-->controller-->relay-->heater

..........so how will I use the error should I use a comparator and till the time the value doesnot become 0 keep the related equipment on some thing like that.........

yea osmthing like that ,,but lets put it this waywhen your error is 0 (that means the heat is the same as the setpoint) then Kp*0=0 so no output and no changin anythingwhen your error has a number then you need to react someway,, this is how you determine kp.so what you mentioned is just P ,,

, do you want to make all controls? P and I and D?

D helps you to run faster towards fixing your error when the error changes

do you need this property?

anyways that was a block diagram to understand the conceptyou can turn it into a circuit the way you like,,you can use a microcontroller,,or not ,,the design can take many forms,

well yes I have to use all of the three P,I and D. how will i determine Kp, Ki and Kd.........I i wish to use a PID controller which work for diffrent tempratures so it needs to be made through programming so that it can be easily varied........

The resulting actuator output exerts a correcting influence on the system. By definition, this influence is proportional to the measured error. Since the actuator output has some effect on the system, the sensor value is checked again, and the whole process is repeated, over and over again to maintain the level(s) in the system

your answer is here ,read it over and over,,the explains the whole thingyou determine your constants depending on how your system works,,your circuit,,you just have to build a circuit that resembles this concepti dont know whats your type of actuator output to answer that,, it could be a pwm signal , an analog signal,, ,,etci hoped this helped ya a little

well yes I have to use all of the three P,I and D. how will i determine Kp, Ki and Kd.........I i wish to use a PID controller which work for diffrent tempratures so it needs to be made through programming so that it can be easily varied........

I don't think you fully understand what PID control means, as banji also said, read the link through.

Logged

To relax after some hard work on robotics: A very fun free online text based MMORPGorgcrime.net