Society of Robots - Robot Forum

Software => Software => Topic started by: robota on May 06, 2008, 04:25:16 PM

Title: code that do PID
Post by: robota on May 06, 2008, 04:25:16 PM
hellow friends
i look for code that do what the controller PID do
the code need to have 3 parts
pid = 1.proportional 2.integral 3.differential
i prefer in C language
where i can find this code
thanks
Title: Re: code that do PID
Post by: benji on May 06, 2008, 04:46:27 PM
Quote
3.differential
to be more precise,,its Derivative ,,

anyways tell us what do you want to do and ll shoot ya the code
and how are you going to implement the PID

you should provide information about your system

if you are asking about theory then just google PID and youll get many good links
Title: Re: code that do PID
Post by: izua on May 06, 2008, 05:03:34 PM
if you truly want PID, you must have a way of actually defining your setpoint and reading your PV.
for example, setting X position and speed of a motor, using an encoder, will require you to have a method of counting pulses and current position.

what are your values?
Title: Re: code that do PID
Post by: robota on May 07, 2008, 11:35:17 AM
i know that my inglish is not perfect.
i don't asking about theory, i only asking about the code that do PID
the code need to do what the chip controller PID do without the chip
olso i need that the code will give me the optimal values for PID (who i do this task ?)
i look for code that do this tasks or do part of this tasks
thanks
robota
Title: Re: code that do PID
Post by: superchiku on May 07, 2008, 02:45:02 PM
 i can do that for u , just be specific on what u want