hai...I have a question about P controller for speed control. I have no idea on how to create a P controller for speed. Do I have to find the gain by doing the experiment. I develop it by using the microsoft VC++. The set point is speed of the motor in RPM and a steeping motor is used to control the rotation of the DC Brushless motor.How about the error. Do I need to find the values of error first by doing the experiment. I have no experience on designing the controller. I am waiting for the idea from members. Thank You. Bye...
Thank You Mr Jay Daniel and Erik for your help. From the equation of the P controller only, Control=Control + (PropGain*Error) by assuming the PropGain is ranging from 0 to 1. I am not really understand about the variable Control. I guess the variable Control here is the input pulse to the motor. It is means that if the error is large or the different of value between desired speed and the present speeed is large, there are a lot of numbers of pulse is produced by the motor controller board until the errror is become zero. When the error is zero, what happen to the numbers of pulse? I guess that the controller board stop producing the pulse numbers. Let take the example in my project. A pulse is given to the motor and a rotary encoder is used to monitor the RPM of it. After doing the experiment I found that by giving 590 pulse it give almost the same value of RPM after doing 4-5 time experiment. The different here is only the rise time to reach the stable RPM. As in my project, can I use P controller to reduce the rise time. After doing many time experiment I found the by giving the pulse number 590 the average of RPM is 30RPM. From your explaination, 30RPM will be a desired speed, I guess. The error here is, Error=(30RPM-Actual Speed). PropGain is assuming from 0-1.0. How about a variable "Control"? It is means that the pulseout. Sorry for asking you with a long question. Thank You.
Agus, Yes... the "control" signal can have something to do with your pulse output, and the speed feedback can be in any units you like (like pulses/second from an encoder). What you would likely do in convert your desired "speed" into a "desired number of encoder pulses per second" and compare that to the "actual number of encoder pulses per second." The equations I gave you aren't quite literal. They're just the basic idea of a proportional controller. You'll have to look at your situation and decide what your control signal is and what feedback you get from your process, etc.