Project - Speed Control of a Direct Current (DC) motor
Given Project: In this project, a Simulink model for the DC motor will be first developed per the schematic shown in the Figure and also 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.
Solution:
To making a Simulation model with PID controller to regulate the speed of the DC Motor
Used Transfer function as per video instruction

By converting transfer function to state space we got
Then setting up some Parameters for the simulation function as -

To Workspace - To log data to workspace from Simulink model for Like: out.time, .vs, .vb, .pid, .ia, .t, .w
Sum - To provide addition and subtract operation to model
Gain - To multiply inputs with different conditions
Step - To use step function as input supply with different confugrations
Integrator - To perform Integration function to model
Transfer Fcn - Model linear system by transfer function
With configuration as Fixed type solver with Fixed step size of 0.01 for stop time of 10 seconds
Model Processing and results observation with different values
01. with Ki = 0.01 and step input as step time = 5, Initial value = 5 and Final value = 0
Result plot

02. with Ki = 0.10 and step input as step time = 5, Initial value = 5 and Final value = 0
Result plot- Observed slight changes by changing value of Ki (integral gain)

03. with Ki = 0.10 and using two step blocks as input to give input as pulse wave to observe different output and its variations for same simulation model

with step input 1 as step time = 5, Initial value = 5 and Final value = 0 and step input 2 as step time = 3, Initial value = 3 and Final value = 6
Observed result plots

Commands used to plot above plots are