Speed control of DC motor based on pi and hysteresis control

These are often used together in inner-outer loop control architecture, especially in high-performance motor drives.
60 Downloads
Updated 1 May 2025

View License

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 Linux
Tags Add Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes
1.0.0