DC Motor Speed Control Report Part2
DC Motor Speed Control Report Part2
MATLAB/Simulink
Department of Mechanical Engineering
Engineering Control Systems Project
Supervisor: Xamse Kaarshe
Group Two – Somali National University
Members:
5 B7EN746 - Maxamed Cabdirashiid Axmed Saciid
6 B7EN750 - Xuseen Cabduqaadir Daahir Aweys
7 B7EN751 - Maxamed Yuusuf Maxamed Axmed
8 B7EN752 - Axmed Cabdirisaaq Sahal Diiriye
9 B7EN753 - Ibraahim Maxamed Yuusuf Xuseen
Abstract
This project focuses on the design and simulation of a DC motor speed control system using
MATLAB/Simulink. The aim is to analyze the behavior of the motor and implement a
suitable control strategy—specifically, a PID (Proportional-Integral-Derivative) controller—
to maintain the desired motor speed under varying load conditions. Through system
modeling, controller tuning, and simulation, the dynamic response of the motor is
evaluated. The study demonstrates that effective speed control can be achieved by adjusting
the PID parameters to minimize rise time, settling time, and steady-state error.
Acknowledgement
We would like to express our sincere gratitude to our supervisor Mr. Xamse Kaarshe for
providing continuous guidance and support throughout the course of this project. We are
also thankful to the Department of Mechanical Engineering for equipping us with the
necessary resources and MATLAB tools. Special thanks to our fellow group members for
their teamwork and collaboration in completing this assignment successfully.
Introduction
DC motors are widely used in industrial, automotive, and robotics applications due to their
simplicity, reliability, and ease of speed control. Speed control of a DC motor is essential in
many applications where performance and precision are required. The ability to adjust
motor speed dynamically can enhance the efficiency and functionality of machines.
There are several methods to control the speed of a DC motor, including armature voltage
control, field flux control, and pulse width modulation (PWM). However, for precise and
stable control, feedback systems such as PID controllers are commonly used. MATLAB and
Simulink provide a robust platform for modeling, simulating, and analyzing motor control
systems. This project aims to model a DC motor, design a PID controller, and simulate its
performance using MATLAB.
Methodology
This section describes the theoretical background, modeling approach, and controller
design used to control the speed of a DC motor using MATLAB/Simulink.
1. DC Motor Modeling
A DC motor can be mathematically modeled using differential equations derived from its
electrical and mechanical components. The transfer function of a standard DC motor is
given by:
Where:
ω(s): Angular velocity (output)
V(s): Armature voltage (input)
K: Motor constant
J: Rotor inertia
b: Damping coefficient
R: Armature resistance
L: Armature inductance
Figure 1: Simulink block diagram of the DC Motor model (to be inserted from MATLAB).
2. PID Controller Design
A PID controller is designed to achieve accurate and stable speed control. The transfer
function of a PID controller is:
Where:
Kp: Proportional gain
Ki: Integral gain
Kd: Derivative gain
Using MATLAB’s PID Tuner tool, the parameters are tuned to meet performance
specifications like minimal overshoot, fast rise time, and low steady-state error.
Figure 2: PID Controller connected in a feedback loop with DC Motor (insert from MATLAB).
3. Simulation Parameters
Parameter Value