File Exchange

image thumbnail

PID Controller Design for a DC Motor

version 1.2.0.1 (21.9 KB) by Arkadiy Turevskiy
This file shows PID Controller tuning in MATLAB and Simullink for DC Motor control.

259 Downloads

Updated 01 Sep 2016

View Version History

View License

This is the demo file for video demo:
http://www.mathworks.com/videos/pid-controller-design-for-a-dc-motor-68881.html
and "Seth on Simulink" blog post "PID Control Made Easy":
http://blogs.mathworks.com/seth/2009/12/24/pid-control-made-easy/

The demo shows the PID Controller block in Simulink and PID Tuner in Simulink Control Design:
http://www.mathworks.com/products/simcontrol/

PID Controller is used to control a simple DC Motor modeled in Simulink.

To see how to tune the PID Controller, please see the video demo and/or read the blog post.

You can also visit the web page with resources for designing and tuning PID controllers:
http://www.mathworks.com/discovery/pid-control.html

Cite As

Arkadiy Turevskiy (2020). PID Controller Design for a DC Motor (https://www.mathworks.com/matlabcentral/fileexchange/26275-pid-controller-design-for-a-dc-motor), MATLAB Central File Exchange. Retrieved .

Comments and Ratings (26)

Qian Lu

Clement Zaskie

hai i would like to ask the j, k, r, l, b variables in what unit? thanks btw it helps my school project very much

Oscar Lemmens

Can you update the file please? I am unable to download it. Thanks

manpreet singh

I would like to know where you'have found the information present in the DC motor block? I would like to simulate the model with a specific motor a have but I don't know how to find the data to be inserted in the DC motor block. Can you send me the motor model number of datasheet of the motor considered in this example? I will compare the information of the 2 datasheets and input the motor specification on the motor I am interested in (S240-1A6 bought from servocomponents).

abderrazak chahid

Thank you very much

Guimin Long

Joel Koripalli

Hello i am new to simulink. i am trying to run the program. but, it shows me the error dcmotor.jpg doesnt exist..Please help

Yannis W

Zhe Wen

Could someone please provide one-group parameters of DC motor (damping,Inertia,back EMF,Resistance and inductance) for me ????

Jerry Paul

What changes we have to make if we have to control position instead of speed?
How to set the desired angle instead of speed?

THanks

DHANRAJ Akula

Hello, i am trying to use this Model in order to design the gains for my DC motor.Could you please let me kow the units for the parameter Damping ,Inertia,Back EMF, Resistance and Inductance ?

thank you
Dhanraj

Mosen shk

I have a question, in this file, the input to PID is speed error and output is called voltage then input to DC motor. is that correct. What I understand from PID concept is we input error of a process variable and get the manipulated error back to be fed to plant transfer function. Am I correct?

hl yan

umar hayyat

i want to control speed of dc motor using buck-boost convertor with pid , how i will convertor outputof pid into duty cycle

eemamedo

Anyone having problems with DC Motor not displaying correctly:

from workplace write: image(imread('dcmotor.jpg'))

Then reload simulink model

dang

Parisa Monsef

Hi Sir. I am really happy to find a simulation,that run easily in my computer. but,Is that any article for it?? Can you tell me the link of that article? or the complete name of that?? thank you sir.

Kaitlyn

This seems like a great model, I'm getting an error about the jpg trying to run it though (and I'm new to Simulink). Any help would be appreciated.

Asif

good

JANG BUJIN

111

wei liang

very good

dhrumil soni

Haroldo

by the way, my email is hubs dot filho at google mail

Jan Vidar

Adithyan Ellan

roberto neruda

MATLAB Release Compatibility
Created with R2009b
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!

PID_Control_DC_Motor/