PID and State Feedback Control of DC Motors

A number of example models about how to control a DC Motor (Speed and Position)
25.5K Downloads
Updated 10 Jul 2009

View License

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 (2024). 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 .

MATLAB Release Compatibility
Created with R2006a
Compatible with any release
Platform Compatibility
Windows macOS Linux
Communities

Community Treasure Hunt

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

Start Hunting!

dc_motor_demo/2_position_control_ss/

dc_motor_demo/3_mbd_project/a_inputs/models/

dc_motor_demo/3_mbd_project/a_inputs/trajectory_generator/

dc_motor_demo/3_mbd_project/c_controller/

dc_motor_demo/3_mbd_project/d_achitecture/

dc_motor_demo/3_mbd_project/d_achitecture/controller_component/

dc_motor_demo/3_mbd_project/d_achitecture/traj_gen_component/

dc_motor_demo/3_mbd_project/e_fixed_point/

dc_motor_demo/3_mbd_project/e_fixed_point/controller_component/

dc_motor_demo/3_mbd_project/e_fixed_point/matlab_control_design/

dc_motor_demo/3_mbd_project/e_fixed_point/traj_gen_component/

dc_motor_demo/4_mbd_project_ver2/

dc_motor_demo/1_speed_control_pid/

dc_motor_demo/2_position_control_ss/

dc_motor_demo/3_mbd_project/a_inputs/models/

dc_motor_demo/3_mbd_project/b_trajectory_generator/

dc_motor_demo/3_mbd_project/c_controller/

dc_motor_demo/3_mbd_project/d_achitecture/

dc_motor_demo/3_mbd_project/d_achitecture/controller_component/

dc_motor_demo/3_mbd_project/d_achitecture/traj_gen_component/

dc_motor_demo/3_mbd_project/e_fixed_point/

dc_motor_demo/3_mbd_project/e_fixed_point/controller_component/

dc_motor_demo/3_mbd_project/e_fixed_point/traj_gen_component/

dc_motor_demo/4_mbd_project_ver2/

Version Published Release Notes
1.1.0.0

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

1.0.0.0