PID and State Feedback Control of DC Motors

A number of example models about how to control a DC Motor (Speed and Position)

You are now following this Submission

The files include a number of Simulink(R) models with different controllers for a DC motor. There is also a document included that describes the different controllers PID and pole placement with state feedback. The models can serve as a starting point when you develop your control systems in Simulink. The key point is that a text-book controller can almost never be used directly in a real application, there are several additional features needed. There is also an example of a PID controller in C-code and a model that can be used to verify the implementation in Simulink.

To install: Unpack the zip-file in a directory. To run some of the models you also nees the DC Motor library which you can download here: https://www.mathworks.com/matlabcentral/fileexchange/11829

Cite As

Roger Aarenstrup (2026). PID and State Feedback Control of DC Motors (https://www.mathworks.com/matlabcentral/fileexchange/12137-pid-and-state-feedback-control-of-dc-motors), MATLAB Central File Exchange. Retrieved .

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Communities
Version Published Release Notes Action
1.1.0.0

Tested for 2009a, added an achitecture model for the full control system.

1.0.0.0