Project - Speed Control of a Direct Current (DC) motor
AIM: To design a Simulink model for the DC motor shown in Figure 1. amd aslo by Using the Proportional, Integral, and Derivative (PID) control design knowledge gained in the training to design, develop and test a controller to maintain a desired speed for the motor.
ANSWER:
- Here the Speed control of a DC motor is either done manually by the operator or by means of an automatic control device.
- This is different to speed regulation where the speed is trying to be maintained or regulated against the natural change in speed due to a change in the load on the shaft
-
so the speed can be varied by changing:
- The terminal voltage of the armature V
- The external resistance in armature circuit Ra
- The flux per pole
-
So Terminal voltage and external resistance involve a change that affects the armature circuit while flux involves a change in the maginetic field
-
so Therefore speed control of DC motor can be classified into:
- Armature Control Methods
- Field Control Methods
Simulink model :
- Here first we need to creat simulink model of the DC motor and make it as subsytem called the DC motor
- So next the subsytem of DC motor is connected to the discrete PID controller which helps in maintaining the desired speed
- So after the PID controller we need to start with the kp ki kd such as 1.0 1.0 0 after tunin accordingly so by this we can adjust the kp ki kd values as 31.5 82.3 2.3
- Which is used to obtaine the control design objectives

Simulink model of DC motor:

MATLAB SCRIPT:
Here we consider the following paramters:
% This file contains the design paramters to model a Dc motor
J = 0.01; % momemt of inertia
B = 0.1; % motor friction
Km = 0.01; % back emf
Kt = 0.01; % Motor torque constant
Ra = 1.0; % aramture resistance
La = 0.5; % aramture inductance
Output results for the subsystem DC_motor:
Now for the Design of the DC motor with Discrete PID ccontroller:
Here we consider the PID control paramters as :
Kp =1 ki = 1 kd 0
But after tuning we set kp ki kd to 31.5 82.3 2.3 which is used to obtaine the control objectives of the settling time overshoot time and steady state error
Plot for when tuning settling time as 1.5sec:
Plot for tuning as overshoot is less than 5%:
Plot for tuning as steadt state error less than 1 %
FINAL PLOT:
Now For maintaing the stabilty of a dynamic system :
OUTPUT RESULTS:
Case : 1 When maintaining a desired speed of the motor at 100 :

Case : 2 When maintaining a desired speed of the motor at 230v :

- Here by observing the above two graphs we change the desired speed as 100 in the case1 and 230 in the case 2
- But here both the plots reamains same
- So by this we can say that we maintained desired speed of a DC motor
CONCLUSION:
we have desined In this project a Simulink model for the DC motor as shown in Figure 1.and also we Use the Proportional Integral and Derivative PID control design knowledge gained in the training to design develop and test a controller to maintain a desired speed for the motor