You are now following this Submission
- You will see updates in your followed content feed
- You may receive emails, depending on your communication preferences
# Discrete-Time DC Motor Model with Cascaded PI Speed and Current Control
## Description
This submission presents a discrete-time DC motor drive model implemented in MATLAB.
The model uses cascaded PI controllers for speed and current regulation and explicitly
implements electrical and mechanical motor dynamics using forward Euler discretization.
The PI controller gains are computed using a dedicated tuning function based on
first-order plant dynamics and transient response specifications.
## Files Included
- DC_Motor_Cascaded_PI.m
Main MATLAB script implementing the DC motor model and cascaded PI control.
- ee_getDCMotorFirstOrderPIParams.m
Function for calculating PI controller gains based on desired overshoot and rise time.
## How to Run
1. Place all files in the same directory.
2. Open MATLAB and set the current folder to this directory.
3. Run:
```matlab
DC_Motor_Cascaded_PI
Cite As
Dr Bansilal Bairwa (2026). DC Motor Model with Cascaded PI Speed and Current Control 2 (https://www.mathworks.com/matlabcentral/fileexchange/183074-dc-motor-model-with-cascaded-pi-speed-and-current-control-2), MATLAB Central File Exchange. Retrieved .
General Information
- Version 1.1.0 (2.1 KB)
MATLAB Release Compatibility
- Compatible with any release
Platform Compatibility
- Windows
- macOS
- Linux
