PID Control of DC Motor Speed
PID Control of DC Motor Speed
MOTOR CONTROL.
This is the circuit used for the P.I.D control of a DC motor. It is the same
using TL082 operational amplifiers as well as potentiometers of different
ranges which help us better calibrate the work of the control for the
motor, además de esto, este circuito ira acoplado al circuito de potencia, y será
fed back through the tachometer.
CIRCUITO DE POTENCIA.
Fig. 2. Power circuit.
Basic Terms.
For the development of the work, it is necessary to understand certain basic concepts such as:
Señal de salida:es la variable que se desea controlar (en nuestro caso la velocidad del
motor.). También se denomina variable controlada.
Reference signal: it is the value that is desired for the output signal to reach.
Error: it is the difference between the reference signal and the actual output signal.
Control signal: it is the signal produced by the controller to modify the variable.
controlada de tal forma que se disminuya, o elimine, el error.
Planta:es el elemento físico que se desea controlar. En nuestro caso la planta es el motor
de corriente continua que vamos a controlar.
Disturbance: it is a signal that tends to affect the output of the system, deviating it from
desired value, in our case what is sought is to give stability to the system for which
we impose the P.I.D. system.
Closed-loop control system: It is one in which there is continuous feedback.
monitoring the output signal to compare it with the reference signal and calculate the
señal de error, la cual a su vez es aplicada al controlador para generar la señal de control y
try to bring the output signal to the desired value.
The three components of a PID controller are its Proportional part, action
Integral y acciónDerivativa. El peso de la influencia que cada una de estas partes
it has in the final sum, given by the proportional constant, the integral time
and the derivative time, respectively, so it will be sought to achieve that the
bucle de control corrija eficazmente y en el mínimo tiempo posible los efectos de
the disturbances.
Control P.I.D:
-9 1KΩ resistors.
-4 Resistors of 10 KΩ.
-1 Potenciómetro de 10 KΩ.
-1 Potenciómetro de 5 KΩ.
-1 Potentiometer of 1 KΩ.
-1 50 KΩ potentiometer.
-1 Potentiometer of 53 KΩ.
-1 Resistencia de 1 KΩ.
-1 Resistance of 4.7 KΩ.
1 Capacitor of 22µF.
1 Capacitor of 4.7 µF.
- 4 Amplificadores operacionales TL082.
- 1 Fuente de voltaje de +12v, -12v.
Circuito de Potencia:
- 1 Transformador 120/24v
1 Transistor 2N3904
- 1 Transistor 2N3906.
1 Pulse transformer.
- 1 UJT 2646.
1 SCR BT151.
- 2 resistors of 2.2KΩ.
-1 Resistance of 3.3 KΩ.
-1 Resistance of 470 KΩ.
-1 Resistencia de 22 Ω/5W.
1 Capacitor of 0.47 µF/250v
1 Diode 6A.
- 2 Puente de Greatz de 10A, 1A
2 fuses of 8A.
The operating ranges of these devices cover ranges from 0°C to 70°C, for
the operation from -40°C to 85°C under normal conditions and values from -40°C to 125°C
for special and industrial-type applications.
Las características generales del amplificador operacional TL082 son las siguientes:
- Modo de ancho común y comparación.
Differential voltage range.
- Entrada baja y de desplazamiento de corriente.
- Rendimiento de protección de cortocircuito.
High input impedance of the J-Fet to the phase.
- La compensación de frecuencia interior.
Free operation latch.
Verification time at high 16V/ms.
UJT 2N 2646.
The UJT transistor or unijunction transistor is a triggering device that consists of
una sola unión PN.
El UJT se utiliza generalmente para generar señales de disparo (como por ejemplo en los
SCR).
The UJT has three terminals which are known as emitter E, base 1 (B1), and base.
2 (B2).
Between terminals B1 and B2, the mono-junction has the characteristics of a resistor.
ordinaria, la resistencia entre bases RBB tiene valores en el rango de 4.7 y 9.1 KΩ.
The trigger voltage VB1 must be designed to be large enough to activate the
SCR.
SCR BT151.
The SCR BT151 is a thyristor encapsulated in a plastic package, intended for use in
applications that require high bidirectional block voltage capacity as well as the
high thermal cycling performance.
Typical applications include motor control, heating of industrial lighting
y doméstica así como cambio de valores de la estática.
6.- SIMULATION:
Utilizando la aplicación de Matlab “Simulink” procedemos a obtener los valores de Kp,
Ki, y Kd mediante la variación de sus valores y visualizando su establecimiento en el
time that we propose and is 2 seconds, in this way we proceed to locate
a block diagram with the previously set constants and applying the function of
the following scheme is for transfer:
Fig. 3. Simulation. As can be visualized, the values of Kp, Ki, Kd obtained allow
que el sistema se estabilice en un tiempo aproximado de 2seg, y en una velocidad de 1500
r.p.m.
By increasing the Kd of the PID control, we observe that in addition to a jump occurring
al arranque del motor, el tiempo de estabilización aumenta cerca de lo 20 segundos como
response to the unit step function:
Transfer function:
1.479
-----------------------------------
0.05737 s^2 + 2.019 s + 2.149
>> sys=feedback(G,1)
Transfer function:
1.479
-----------------------------------
0.05737 s^2 + 2.019 s + 3.628
>> step(sys);grid
To obtain the geometric locus of the roots, the following command is used after
the previously used ones in the following way:
>> rlocus(G);grid
7.- CALCULOS:
First, a transfer function is established, which will be proposed.
taking into account the engine parameters which in this case are the following:
(s) kI
a(s)L a Js (L aB RaJ ) s (R aB kb ki)
2
(s) 1.479
a 0.05737s 2.0190s 2.14925
2
Ahora se procede a calcular los elementos de los tres tipos de control de la siguiente
way
Kp = R2 / R1 Proporcional
Ki = 1 / (Ri * Ci)Integral
Kd=RdCd Derivativo
R2
Kp
R1
5K
2.5K donde R1 2K
R1
1
Who
Ri Yes
1
1.479 therefore Ri 30733.29K
Ri 22 F
Ri 30K
Kd Rd Cd
0.01 Rd 1 F donde Rd 10K
8. EXPLICACION DEL FUNCIONAMIENTO DE LA PRÁCTICA:
Control Circuit:
In a more structured way, the development of the practice is based on the correct
use of the P.I.D controller, for which we start from knowledge obtained in class in the
that refers to motor control, once these concepts are present a
general visualization of the practice goal in order to develop it in an organized manner
and consistent in addition to these aspects we must consider that the calculations developed are
the basis for the practical part because it will only operate governed by the various measurements and
pruebas obtenidas del motor.
K Ds
1 ,KP 1.
KP
1). A sensor that determines the state of the system, in this case, a direct current motor.
continue that will make the tachometer work this device will be connected to the
sistemas de manera que se de una retroalimentación de este modo se podrá variar la
motor speed.
The 3 summed signals make up the output signal that the controller will
used to control the actuator. The resulting signal from the sum of these three is called
variable manipulada y no se aplica directamente sobre el actuador, si no que debe ser
transformed to be compatible with the engine we use.
Power Circuit:
For our circuit, we use a UJT as a triggering device for the SCR.
The UJT produces a pulse-type output, which is effective for ensuring the ignition of an SCR.
without forcing the charge dissipation capacity of the SCR gate.
When initially testing the circuit, we encountered the problem of a phase shift in the signal.
towards the load, as well as a noise signal as shown in the figure. These problems are
they solved it by reviewing the power circuit making the following changes: the value was changed
del capacitor de la base del UJT a 1uF; se coloco un diodo en antiparalelo al transformador de
pulsos; y se variaron levemente el valor de las resistencias (circuito de potencia) a fin de que se
reduce the problem.
Ahora, en el momento en que se acopla el control PID al circuito de potencia que
comanda el motor, la forma de onda que se presenta al incrementar el voltaje de referencia en el
control y por consiguiente la velocidad del motor es la siguiente.
By regulating the speed of the motor, the following waveform is obtained, in which
we can observe that while we vary the speed of the motor, the PID control acts on the
signal towards the engine, this is visualized in the lower part of the wave.
Al aumentar la carga en le motor vemos que el voltaje aumenta en la carga para compensar la
velocidad del motor.
10.- CONCLUSIONES:
A correct control of a DC motor was achieved through the P.I.D. system, which was
established through calculations and simulations that helped to obtain the parameters
correct and thus achieve a balanced system with a great response speed
alrededor de 2 segundos.
When there is a load change, the controller measures the feedback error and
Respond with the necessary speed to prevent the error from increasing.
11.- COMENTARIOS:
Through this practice, a PID control was achieved, which was obtained
finalmente al realizar varias pruebas tanto en la parte de control como en la de potencia
incrementando la carga en el motor para lograr estabilizar el sistema y obtener las
respuestas esperadas.