Project - Speed Control of a Direct Current (DC) motor
Speed control of a DC motor
- at first we create a simulink model of dc motor and make it as subsystem
- after that subsystem is connected to Proportional,integrative,derivative(PID) controller.
- by varying the values of kp ki and kd we can maintain the speed.
- in dc motor speed can be varied by armature control method and field control method.

Simulink model of DC motor

Matlab script :
following parameters are
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 plot results of supply voltage,armature current,torque,speed,back emf

DC motor with discrete PID model to control speed

The values for kp,ki,kd in pid controller:

Output Results:
maintaining desired speed at 230v

desired speed at 100v

conclusion
we have designed a simulink model for controlling speed of dc motor usings pid controller here the output obtained is at desired speed of 100 and 230 the plot remains same.for pid controller values used for kp=31.5, ki=54 kd=2.3.