Previous in Forum: Lightning Surgers   Next in Forum: Wanted: EEs with PCB and 802.11 Experience in NC
Close
Close
Close
24 comments
Rate Comments: Nested
Participant

Join Date: Mar 2007
Posts: 1

Analog Controller for Speed Control of DC Servo Motor

03/13/2007 6:15 AM

An input signal to a DC servo motor is the applied DC voltage in volts and the output is the voltage representing the speed. Requirement is to design a conventional controller and the implementation of the controller using analogue components so that the following specifications are met:

1. The closed loop system should have the shortest time possible in response to a set point change of 50% without controller signal saturation.

2. For a step change in the reference or set point the overshoot must not exceed 20% of the difference between the old and the new set point.

3. The closed loop system should track a step change in the reference input perfectly at steady state.

Any ideas on how to go about designing a feedback system (to measure output in reference to the input)? Would Analogue controller just be voltage divider or will an op-amp be more ideal? Any feedback would be much appreciated

Register to Reply
Interested in this topic? By joining CR4 you can "subscribe" to
this discussion and receive notification when new comments are added.
Guru
United Kingdom - Member - Indeterminate Engineering Fields - Control Engineering - New Member

Join Date: Jan 2007
Location: In the bothy, 7 chains down the line from Dodman's Lane level crossing, in the nation formerly known as Great Britain. Kettle's on.
Posts: 32175
Good Answers: 839
#1

Re: Analogue Controller for Speed Control of a DC Servo Motor

03/13/2007 9:05 AM

One option is to purchase a "feedback controller" intended for 12VDC model railway applications, available in the UK for a few tens of pounds Sterling. http://www.gaugemaster.co.uk/controls.html

Feedback control is used in battery electric drills to maintain bit speed. So another option is to dissect a drill and use its controller.

Behaviour of any feedback control loop depends on the gain, the integral action and the derivative action applied to the system of which the controller is only a part. These parameters are determined by the user by "tuning" the loop or by a pre-programmed tuning algorithm according to principles established by Zeigler & Nicholls and repeated by controls engineers ever since.

__________________
"Did you get my e-mail?" - "The biggest problem in communication is the illusion that it has taken place" - George Bernard Shaw, 1856
Register to Reply
Participant

Join Date: Jun 2006
Posts: 4
#2

Re: Analog Controller for Speed Control of DC Servo Motor

03/13/2007 11:55 PM

Something most people forget is that a DC motor has inherent feedback with its back EMF. If positive feedback is applied to cancel out the losses caused by the motors resistance, the motor and load is far easier to stabilize because this "inner" feedback is instantaneous. This means the "outer" feedback loop is doing far less to control the motor speed and is nowhere near as critical for the phase and gain needed to stabilize the loop. In fact, if you don't need high accuracy in the absolute motor speed, you don't even need an "outer" feedback loop at all. Here is a link from an application note. http://focus.ti.com/lit/an/sboa043/sboa043.pdf

Register to Reply
Power-User

Join Date: Dec 2005
Posts: 200
Good Answers: 8
#3

Re: Analog Controller for Speed Control of DC Servo Motor

03/14/2007 12:30 AM

A simple PID contol loop should be used. No. 3 is not a reasonable expectation. Please note No. 3 (directly following) conflicts with No. 2 (20% overshoot)

__________________
Corn Stoves
Register to Reply
Participant

Join Date: Jun 2006
Posts: 4
#4
In reply to #3

Re: Analog Controller for Speed Control of DC Servo Motor

03/14/2007 2:14 AM

#3 does not conflict with #2. What he's saying is that after the overshoot, when the speed settles down to a steady value, that speed should be exactly what is requested/set by the input.

Register to Reply
Power-User
Technical Fields - Education - New Member Technical Fields - Technical Writing - New Member

Join Date: Sep 2006
Posts: 367
Good Answers: 1
#5

Re: Analog Controller for Speed Control of DC Servo Motor

03/14/2007 10:43 AM

Student's project?

No 3 suggest at least PI type controller.

No 1 suggest more: PID.

Simple Voltage Divider "represents" P type control so if you are in charge to design analog controller the Operational Amplifier is the one with capacitors. First of course must be calculted Kp, Ki, Kd parameters so remarks about the load (final elementin the loop) parameters (DC motor + inertia + voltage/current as a function of the speed/or maybe position? ..) are significant to calculate dynamics (requirements in No 2).

Your "input" (as a set point) is added to error signal from the PID controller.

PID controller is the feedback in the control loop. Its input is an electrical value representing speed and output is the error signal

I believe you have a book about process control (automation) so my notes are just a simple piece of info to avoid confusion in the beginning of the designing.

If this is a project to existing DC servo... buy one of available contollers with ability to wide setting adjustments.

Register to Reply
Anonymous Poster
#6

Re: Analog Controller for Speed Control of DC Servo Motor

03/16/2007 1:10 AM

Since you are controlling a DC motor you automatically get #3 (because you have a pole at DC). All you need is a proportional controller; so an op-amp with two resistors is all you need. I have one question for you, do you have a DC motor driver or did you want to build or buy one of these. I can help with that too.

If you know how to do pole placement design it's pretty easy to design this controller. The open loop poles of your dc motor are at zero and 1/tau, where tau depends on your dc motor. With I proportional controller, as you increase K the poles come together and slit (this is a root locus plot). To meet #2 of your demands, the angle that your poles make (with the intersection of the real and imaginary axis) can not be more than 62.8 degrees. So this will limit your maximum gain value that you can use. The more gain that you use the faster the motor will move but the more ringing and overshoot you will have in your motor. If you increase the gain so that the poles make more than the 62.8 degrees the motor will overshoot more than 20%. You have to know your motor to meet #1.

You can do better if you do a PID. It's easy to do this with one op-amp, 3 caps, and 3 resistors. It's more complicated but it can give you a little bit better results.

The saturation problem should be thought about after you understand how to control the motor with a proportional controller. If you use too much K then your motor can saturate faster when there is more speed error. It's easiest to matlab it and see how much power you have to use. You can calculate "regions" where the poles should lie to give optimal power but if you don't really know root locus then it's easier to try picking gains and check it to see what you get.

If you tell me a little bit more about your motor, motor driver, and tach that you are using, I might be able to help out more.

B

Register to Reply
Power-User
Technical Fields - Education - New Member Technical Fields - Technical Writing - New Member

Join Date: Sep 2006
Posts: 367
Good Answers: 1
#7
In reply to #6

Re: Analog Controller for Speed Control of DC Servo Motor

03/16/2007 10:09 AM

Proportional (P) controller CANNOT make error = 0(zero) which is required for steady state! Again: PID controller is the solution. To select elements to OpAmp you MUST do calculation to find Kp (for P regulation), Ti for Integral and Td for Derivative parts (your design)/or settings (controller selected from catalogs) of the controller. Remember that power supply voltages (+/-) must be over the span of adjustement/setting to avoid saturation. Process control teachers easily would find the errors!

Register to Reply
Anonymous Poster
#8
In reply to #7

Re: Analog Controller for Speed Control of DC Servo Motor

03/16/2007 11:38 AM

The transfer function of a DC motor looks something like A/(s*(tau*s+1). If I use a proportional controller with a gain of K and I look at the closed loop response from the input (r) to the Input of the controller (e) some like 1/(1 + K*A/s*(tau*s+1)) or s*(tau*s +1)/(s*(tau*s+1)+K*A). If I put a step input then it looks something like (1/s)* s*(tau*s +1)/(s*(tau*s+1)+K*A). If I do the final value theorem ( taking the limit as s->0 and multiplying the closed loop transfer function by s) I get the limit as (s->0) pf s*(tau*s +1)/(s*(tau*s+1)+K*A)=0. So the steady state value of the error is indeed 0. All you need is a P controller for a steady state error of 0.

B

Register to Reply
Power-User

Join Date: Dec 2005
Posts: 200
Good Answers: 8
#10
In reply to #8

Re: Analog Controller for Speed Control of DC Servo Motor

03/20/2007 12:37 AM

The above prop algro settles out and becomes stable above or below set point with zero error and no method of integrating to set point.

Tuning for a PID controller will be required to achieve the desired amount of stability vs activity. Required Overshoot to meet SP in a single Hz could pitch #1 vs #3.

To properly tune at 6000 Hz, there are two major and completely different approaches. High P and low I vs high I and low P. Values of D correct for a sticky/slicky response ie lack of lube.

__________________
Corn Stoves
Register to Reply
Anonymous Poster
#11
In reply to #10

Re: Analog Controller for Speed Control of DC Servo Motor

03/20/2007 11:03 PM

The Proportional controller does produce zero error but it also goes to the set point value. Above is the transfer function from the input to the error. The transfer function from output to input looks something like K*A/(s*(tau*s+1)/(1+K*A/(s*(tau*s+1))) or K*A/(s^2*tau+s+K*A). If you do the final value theorem on this, it does go to the exact set point.

B

Register to Reply
Guru
United Kingdom - Member - Indeterminate Engineering Fields - Control Engineering - New Member

Join Date: Jan 2007
Location: In the bothy, 7 chains down the line from Dodman's Lane level crossing, in the nation formerly known as Great Britain. Kettle's on.
Posts: 32175
Good Answers: 839
#13
In reply to #8

Re: Analog Controller for Speed Control of DC Servo Motor

04/02/2007 4:22 AM

Oscilloscope observations of PWM feedback controllers on DC motors would suggest that there is no integral or derivative action to be found, and that proportional-only control is used.

Note that a motor-controller system will behave differently depending on the inertia of the motor - its "flywheel effect". Modern coreless motors can behave irritatingly badly when coupled to PWM controllers when applied to model and miniature applications, spoiling illusions of mass and momentum.

__________________
"Did you get my e-mail?" - "The biggest problem in communication is the illusion that it has taken place" - George Bernard Shaw, 1856
Register to Reply
Anonymous Poster
#15
In reply to #13

Re: Analog Controller for Speed Control of DC Servo Motor

04/02/2007 10:44 PM

The integral is there. If put a DC voltage on the DC motor, the motor will turn at some speed. The position of the dc shaft is the integral of the input voltage. As I increase the DC voltage the DC motor spins faster and faster, integrating more and more signal. The second pole can be seen if you put a sin wave voltage into the motor, at some point the motor doesn't respond to the input. That second pole is a low pass filter. So you can pwm the motor and the motor will filter out the AC component and you will be left with the DC potion of the signal, witch will determine the speed of the motor. (Remember the integral of position is speed).

B

Register to Reply
Guru
United Kingdom - Member - Indeterminate Engineering Fields - Control Engineering - New Member

Join Date: Jan 2007
Location: In the bothy, 7 chains down the line from Dodman's Lane level crossing, in the nation formerly known as Great Britain. Kettle's on.
Posts: 32175
Good Answers: 839
#16
In reply to #15

Re: Analog Controller for Speed Control of DC Servo Motor

04/03/2007 3:49 AM

So the motor is doing the integration. Fine, but what about the controller terms?

__________________
"Did you get my e-mail?" - "The biggest problem in communication is the illusion that it has taken place" - George Bernard Shaw, 1856
Register to Reply
Anonymous Poster
#17
In reply to #16

Re: Analog Controller for Speed Control of DC Servo Motor

04/03/2007 9:36 AM

I guess my point is that all you need is a proportional controller. So the controller terms would be just some gain. If the person doing this design is using a relatively small DC motor, you can use just an op-amp or power op-amp with two resistors to drive the motor to the correct position and settling time. If the motor is bigger and you can not use just an op-amp then other methods have to be used like a power amplifier, PWM or something else. To implement this control, the position has to be fed back. So you must use some shaft encoder or something else like that. To get maximum performance out of the system you can add one resistor and three caps and you can make a PID controller (you might need a few more components for the non-inverting node. I have not thought about that enough).

The signal that drives your motor is the error signal that comes from comparing the setpoint to the actual motor position. This error signal is multiplied by some gain either a proportional gain or a PID gains. It doesn't really matter so much. Both are easy to make. All of this error stuff is done by the op-amp.

B

Register to Reply
Guru
United Kingdom - Member - Indeterminate Engineering Fields - Control Engineering - New Member

Join Date: Jan 2007
Location: In the bothy, 7 chains down the line from Dodman's Lane level crossing, in the nation formerly known as Great Britain. Kettle's on.
Posts: 32175
Good Answers: 839
#18
In reply to #17

Re: Analog Controller for Speed Control of DC Servo Motor

04/03/2007 9:41 AM

Usually, one measures the back-EMF from the spinning motor in between each pulse, and uses that as the input for the speed signal. As for the controller, providing it's fast acting, "how" is secondary.

__________________
"Did you get my e-mail?" - "The biggest problem in communication is the illusion that it has taken place" - George Bernard Shaw, 1856
Register to Reply
Anonymous Poster
#19
In reply to #18

Re: Analog Controller for Speed Control of DC Servo Motor

04/03/2007 10:02 AM

Measuring the back-EMF is one technique to do the position control. It has its advantages and disadvantages. The advantages are its pretty easy to do and you don't need a shaft encoder or anything else like that. A disadvantage is that signal is very noisy. The equations that I was talking about above don't relate to feeding back the speed of the motor. Only the position. You can't just use a P controller feeding back the speed for zero steady state error.

PWSlack, I don't understand your statement "As for the controller, providing it's fast acting, "how" is secondary". Can you elaborate a little more? Thanks.

B

Register to Reply
Guru
United Kingdom - Member - Indeterminate Engineering Fields - Control Engineering - New Member

Join Date: Jan 2007
Location: In the bothy, 7 chains down the line from Dodman's Lane level crossing, in the nation formerly known as Great Britain. Kettle's on.
Posts: 32175
Good Answers: 839
#20
In reply to #19

Re: Analog Controller for Speed Control of DC Servo Motor

04/03/2007 10:10 AM

Er, back-EMF is proportional to angular velocity, which is why it is used.

Why, what, where, when and who are primary. How is secondary.

Controllers can use pneumatics, and a "Portsmouth Valve" uses a proportional-only control technique, and there usually isn't a free electron in sight...

__________________
"Did you get my e-mail?" - "The biggest problem in communication is the illusion that it has taken place" - George Bernard Shaw, 1856
Register to Reply
Power-User
Technical Fields - Education - New Member Technical Fields - Technical Writing - New Member

Join Date: Sep 2006
Posts: 367
Good Answers: 1
#21
In reply to #20

Re: Analog Controller for Speed Control of DC Servo Motor

04/03/2007 11:48 AM

How to directly measure back-EMF? We have access to terminals not to "inside world of magnetic field of motor". Of course : EMF = Vmot - Imot * Rmot so you must install two sensors for Vmot and Imot (motor's voltage and current as functions of time)and do calculation.

Register to Reply
Guru
United Kingdom - Member - Indeterminate Engineering Fields - Control Engineering - New Member

Join Date: Jan 2007
Location: In the bothy, 7 chains down the line from Dodman's Lane level crossing, in the nation formerly known as Great Britain. Kettle's on.
Posts: 32175
Good Answers: 839
#22
In reply to #21

Re: Analog Controller for Speed Control of DC Servo Motor

04/03/2007 11:51 AM

While one could do that most devices use the 2 wires connected to the motor terminals instead.

__________________
"Did you get my e-mail?" - "The biggest problem in communication is the illusion that it has taken place" - George Bernard Shaw, 1856
Register to Reply
Power-User
Technical Fields - Education - New Member Technical Fields - Technical Writing - New Member

Join Date: Sep 2006
Posts: 367
Good Answers: 1
#23
In reply to #22

Re: Analog Controller for Speed Control of DC Servo Motor

04/03/2007 12:07 PM

The voltage between these two terminals represents the output voltage from the controller not an EMF which is proportional to rpm of motor shaft and, how you stated is good as an input to the controller.

In practical systems the analog tachometers or digital encoders are used to get electrical/or numerical signal to represent a motor speed (rpm).

Having a Data Acquisition you may use two sensing devices and get two voltages, then do calculation (EMF = Vmot - Imot * Rmot) by its program then...do PID in controller but this more expensive way and probably is not the one the initiator of this discussion wanted.

Register to Reply
Guru
United Kingdom - Member - Indeterminate Engineering Fields - Control Engineering - New Member

Join Date: Jan 2007
Location: In the bothy, 7 chains down the line from Dodman's Lane level crossing, in the nation formerly known as Great Britain. Kettle's on.
Posts: 32175
Good Answers: 839
#24
In reply to #23

Re: Analog Controller for Speed Control of DC Servo Motor

04/03/2007 12:10 PM

Exactly. As above, it can be done for a few tens of £Sterling using the 2 power supply wires. Why reinvent the wheel (rhetorical question)?

__________________
"Did you get my e-mail?" - "The biggest problem in communication is the illusion that it has taken place" - George Bernard Shaw, 1856
Register to Reply
Anonymous Poster
#9
In reply to #7

Re: Analog Controller for Speed Control of DC Servo Motor

03/16/2007 11:41 AM

I do agree that the PID is the right answer but a P works too.

B

Register to Reply
Guru
United Kingdom - Member - Indeterminate Engineering Fields - Control Engineering - New Member

Join Date: Jan 2007
Location: In the bothy, 7 chains down the line from Dodman's Lane level crossing, in the nation formerly known as Great Britain. Kettle's on.
Posts: 32175
Good Answers: 839
#14
In reply to #9

Re: Analog Controller for Speed Control of DC Servo Motor

04/02/2007 4:23 AM

Quite.

__________________
"Did you get my e-mail?" - "The biggest problem in communication is the illusion that it has taken place" - George Bernard Shaw, 1856
Register to Reply
Guru
Popular Science - Weaponology - New Member

Join Date: Feb 2006
Posts: 962
#12

Re: Analog Controller for Speed Control of DC Servo Motor

03/28/2007 8:12 PM

You don't give the vital piece of info required what size of motor, what application do you want, ie: constant torque or constant speed? Fit a opto tacho and pulse width modulate the DC supply. It all works rather well with an op amp or two.

__________________
There's them that knows and them that just thinks they know, whitch are you? Stir the pot and see what rises up. I have catalytic properties I get a reaction going.
Register to Reply
Register to Reply 24 comments
Copy to Clipboard

Users who posted comments:

Anonymous Poster (7); BrainWave (1); Cornstoves (2); PWSlack (8); southern123 (4); tpb (2)

Previous in Forum: Lightning Surgers   Next in Forum: Wanted: EEs with PCB and 802.11 Experience in NC

Advertisement