Speed control of DC motor based on pi and hysteresis control
Version 1.0.0 (33.6 KB) by
Abdelrahman Farghly
These are often used together in inner-outer loop control architecture, especially in high-performance motor drives.
Concept Overview
🔹 Outer Loop: PI Speed Controller
- Compares desired speed (setpoint) with actual motor speed.
- Outputs a reference current (torque-producing current).
- Provides smooth speed tracking.
🔹 Inner Loop: Hysteresis Current Controller
- Maintains actual motor current within a narrow band around the reference current.
- Provides fast dynamic current control, ideal for torque control.
- Controls chopper/converter switching.
Example Application Scenarios
- Electric vehicles (torque control + speed regulation)
- Servo systems
- Industrial DC drives requiring fast and accurate control
Implementation Options
- PI: Use in microcontroller, Simulink, or DSP code
- Hysteresis: Can be implemented using:
- Comparator + reference band (analog)
- Logic-based PWM controller (digital)
Cite As
Abdelrahman Farghly (2025). Speed control of DC motor based on pi and hysteresis control (https://www.mathworks.com/matlabcentral/fileexchange/180955-speed-control-of-dc-motor-based-on-pi-and-hysteresis-control), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Created with
R2022b
Compatible with any release
Platform Compatibility
Windows macOS LinuxTags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
| Version | Published | Release Notes | |
|---|---|---|---|
| 1.0.0 |