Author Topic: code that do PID  (Read 3468 times)

0 Members and 1 Guest are viewing this topic.

Offline robotaTopic starter

  • Jr. Member
  • **
  • Posts: 41
  • Helpful? 0
code that do PID
« 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

Offline benji

  • Supreme Robot
  • *****
  • Posts: 830
  • Helpful? 0
Re: code that do PID
« Reply #1 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
good ol' BeNNy

Offline izua

  • Supreme Robot
  • *****
  • Posts: 682
  • Helpful? 0
    • izua electronics
Re: code that do PID
« Reply #2 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?
Check out my homepage for in depth tutorials on microcontrollers and electronics.

Offline robotaTopic starter

  • Jr. Member
  • **
  • Posts: 41
  • Helpful? 0
Re: code that do PID
« Reply #3 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

Offline superchiku

  • Supreme Robot
  • *****
  • Posts: 952
  • Helpful? 5
  • cooll
Re: code that do PID
« Reply #4 on: May 07, 2008, 02:45:02 PM »
 i can do that for u , just be specific on what u want
JAYDEEP ...

IT AND ROBOTICS ENGINEER

"IN THE END IT DOESNT EVEN MATTER"

 

SMF spam blocked by CleanTalk