SlideShare a Scribd company logo
2
Most read
3
Most read
4
Most read
International Journal on Recent and Innovation Trends in Computing and Communication ISSN: 2321-8169
Volume: 5 Issue: 9 35 – 38
_______________________________________________________________________________________________
35
IJRITCC | September 2017, Available @ http://www.ijritcc.org
_______________________________________________________________________________________
PID Controller based DC Motor Speed Control
V. V. Kulkarni
Assistant Professor
Electrical Engineering Department
AISSMS COE Pune
Pune
e-mail: vvkulkarni@aissmscoe.com
Dr. V. A. Kulkarni
Associate Professor
Electrical Engineering Department
Govt. College of Engineeringg,
Aurangabad
e-mail: ku1111@rediffmail.com
Romharshal Talele
ME – II
Electrical Engineering Department
AISSMS COE Pune
Pune
e-mail: romtalele@gmail.com
Abstract – Due to extensive use of motion control system in industry, there has been growing research on proportional-integral-derivative (PID)
controllers. DC motors are widely used various areas of industrial applications. The aim of this paper is to implement efficient method for
controlling speed of DC motor using a PID controller based. Proposed system is implemented using arduino microcontroller and PID controller.
Motor speed is controlled through PID based revolutions per minute of the motor. This encoder data will be send through microcontroller to
Personal Computer with PID controller implemented in MATLAB. Results shows that PID controllers used provide efficient controlling of DC
motor.
Keywords – DC Motor; Control System; PID Controller; MATLAB Simulation: Arduino
__________________________________________________*****_______________________________________________
I. INTRODUCTION
PID controller is becoming very important since in last few
years its demand is increasing from various industries as it
gives the consistency and maintains the output even if its input
is changed. The DC motor are also popular in the industry
control applications since long time, they have good
characteristic such as high response performance, high start
torque characteristics, and easy for linear control. DC motor
gives good speed control respond. They have wide speed
control range and they are used in speed control systems which
needs high control requirements like high precision digital
tools, rolling mill, double-hulled tanker etc[1]. For example,
suppose DC motor is used in a robot, constant power is applied
to each motor on a robot, in this case poor robot cannot
maintain a steady speed. It goes slower over carpet, faster over
smooth flooring, slower up hill, faster downhill, etc. So, it is
important to take into account a controller to control the speed
of DC motor in desired speed [2].
Many control schemes such as proportional, integral,
derivative, proportional integral, PID, adaptive, and FLCs are
used for speed control of dc motors. For controlling speed of
the DC motor, voltage to the armature of dc motor is varied
[3].Control system is a system which controls other system.
Open Loop Control System
In Open Loop Control System, it cannot correct the
variation in output automatically. In these systems the output
remains constant for a constant input signal. By
approximately changing input output may change to desired
value and variations in external Conditions may cause the
output to change [1].
Closed Loop Control System
In closed Loop Control System, it can correct the variation
in output automatically. In these systems the output remains
constant for a changing input signal. The measured
response of the system is compared with a desired
response of the system. The difference between two response
gives the actual response of the system[1].
This paper is organized as follows: Section II gives
introduction to the PID controllers and importance of the DC
motor. Proposed work and system flow is given Section III.
Software design, Hardware components and its implementation
is discussed in Section IV. Section V describes results of
proposed system. Finally, conclusion is given in Section VI.
II. PROPOSED WORK
A. Block Diagram of the Proposed system
Figure 1 shows the block diagram of the proposed work.
Fig.1 Block Diagram of the Proposed System
Proposed system consists of Arduino mega controller
development board, DC motor driver, servomotor and PC with
MATLAB code. In proposed system speed of the DC motor is
controlled through PID controller using MATLAB. The
system works in the form of closed loop. Feedback about the
International Journal on Recent and Innovation Trends in Computing and Communication ISSN: 2321-8169
Volume: 5 Issue: 9 35 – 38
_______________________________________________________________________________________________
36
IJRITCC | September 2017, Available @ http://www.ijritcc.org
_______________________________________________________________________________________
status about the RPM of the motor is given to microcontroller
then data is send to PC through serial communication. PID
controller is implemented in MATLAB it receives data and
give command to arduino controller according to the set
threshold. Microcontroller gives command to dc motor driver
through PWM. It drives the servomotor according to the
command received.
B. System Flow
Algorithm
1. Start and initialize the system
2. Read motor data through microcontroller
3. Send this data to PC and take decision using PID
controller
4. Send this data back to microcontroller and send command
to motor driver
5. Motor speed is controlled
System implementation flow is shown in Fig. 2.
6.
Yes
No
Fig.2. System Implementation Flow
III. PID CONTROLLER
A. PID Controller
PID controller algorithm provides control action for the
designed process according to requirements[1]. Figure 3
shows the block diagram of PID Controller.
Fig.3 Blocks of PID Controller
The response of the controller can be described in
terms of the responsiveness of the controller the degree to
which the controller overshoots the set-point ,to an error and
the degree of system oscillation. PID Controller is the
combination of Proportional, Derivative and Integral
controllers. PID controller works in a closed-loop system as
shown in figure 3. The transfer function of the PID controller is
given below:
𝐾𝑃 +
𝐾 𝐼
𝑆
+ 𝐾 𝐷 𝑆 =
𝐾 𝐷 𝑆2 +𝐾 𝑃 𝑆+𝐾 𝐼
𝑆
…… (1)
Where,
KP = Proportional gain
KI = Integral gain
KD = Derivative gain
The desired input value is represented as (R) and the actual
output is represented as a (Y). The difference between desired
input and actual output is represented by variable (e) called as
tracking error. This error signal (e) is send to the PID
controller, and the controller computes the derivative and the
integral of this error signal. The signal (u) just pass the
controller is now equal to the proportional gain (KP) times the
magnitude of the error plus the integral gain (KI) times the
integral of the error plus the derivative gain (KD) times the
derivative of the error as given in equation (2).
µ = 𝐾𝑃 𝑒 + 𝐾𝐼 𝑒 𝑑𝑡 + 𝐾 𝐷
𝑑𝑒
𝑑𝑡
………… (2)
This signal (u) is send to the plant, and it gives the new
output (Y). This new output (Y) will be sent back to the sensor
again to find the new error signal (e).The controller takes this
new error signal and computes its derivative and its integral
again. This process will continue[4].
Characteristics of P, I, and D controllers
 A proportional controller (KP) reduces the rise time but it
will never eliminate the steady-state error.
 An integral control (KI) eliminates the steady-state error,
but it makes the transient response worse.
Start
Initialize the system
Read motor data through microcontroller
Send this data to PC
Motor RPM
=Set
Threshold
Keep motor
running
Increase/Decrease RPM depending
upon the current RPM
End
Send command to microcontroller
Microcontroller gives command to
Motor
International Journal on Recent and Innovation Trends in Computing and Communication ISSN: 2321-8169
Volume: 5 Issue: 9 35 – 38
_______________________________________________________________________________________________
37
IJRITCC | September 2017, Available @ http://www.ijritcc.org
_______________________________________________________________________________________
 A derivative control (KD) increases stability of the system,
by reducing the overshoot, and it improves the transient
response of the system [2].
Table No.1 Effects of each of controllers KP, KI, and KD
on a closed-loop system[2]
IV. SYSTEM DEVELOPMENT
A. Software Description
1. Arduino Compiler
The Arduino Software (IDE) is an open source compiler in
which we can write code and upload it to the board. It runs on
Mac OS X, Linux and Windows. It is based on processing and
other open-source software and environment is written in Java.
Arduino compiler accepts C and C++ many of the libraries are
written in C++.The Arduino environment performs some small
transformations on the code to make sure that the code is
correct then it gets passed to a compiler, which turns the code
into machine language.
2. MATLAB
MATLAB is a high-performance language its basic data
element is an array that does not require dimensioning. Matrix
and vector formulations allow us to solve many technical
computing problems. It integrates computation with the
programming visualization which gives easy-to-use
environment where problems and solutions can be expressed
in the mathematical notation. Areas in which MATLAB
toolboxes are available include control systems, simulation,
signal processing, neural wavelets, fuzzy logic, and many
others.
B. Hardware Description
The block diagram of the implemented model which is
used in this work is shown below in figure 4. Also the
different parameters of the individual component are explained
below.The motor used in this work is a permanent magnet DC
motor. An encoder is connected to the motor. The encoder is
of 2000 ppr. The encoder is used to count the output pulses of
motor.
The specifications of the same are listed below.
Rated voltage (V) 24
No load speed (rpm) 6600
Rated speed (rpm) 6000
Rated torque (kgcm) 5.2
Stall torque (kgcm) 22
Rotor inertia (Gcm2
) 600
Starting current (A) 29.5
Fig.4. Implemented Model
PWM pulses for the motor are given through the arduino
board and driver circuit from PC/MATLAB. The loading
arrangement consists of a digital weight, load cell and load cell
amplifier. The output of the load cell amplifier is given as
feedback to the arduino to measure the pulses and accurate
weight.
V. RESULTS AND DISCUSSIONS
Figure 5 and 6 shows the MATLAB simulation results of
the system. Figure 5 shows the graph of the motor RPM vs
number of samples, error signal and the control signal for the
threshold RPM of 1500.Initially RPM is 2500 then at sample
110,170 RPM goes below 1500.Hence, it is seen that error
signal is present at samples 0,110 and 170. Control signal for
the given error signal is shown in figure.
Fig.5 Motor RPM vs Number of Samples for threshold
RPM=1500
Figure 6 shows the graph of the motor RPM vs number of
samples, error signal and the control signal for the threshold
RPM of 2000.Initially RPM is 3500 then at sample 60, 85 RPM
goes below 2000.Hence, it is seen that error signal is present at
samples 0, 60 and 85. Control signal for the given error signal
is shown in figure.
CL
RESPONSE
RISE
TIME
OVERSHOOT SETTLING
TIME
S-S
ERROR
Kp Decrease Increase Small
change
Decrease
Ki Decrease Increase Increase Eliminate
Kd Small
change
Decrease Decrease Small
change
International Journal on Recent and Innovation Trends in Computing and Communication ISSN: 2321-8169
Volume: 5 Issue: 9 35 – 38
_______________________________________________________________________________________________
38
IJRITCC | September 2017, Available @ http://www.ijritcc.org
_______________________________________________________________________________________
Fig.6 Motor RPM vs Number of Samples for threshold
RPM=2000
VI. CONCLUSION
Proposed system consists of servomotor and PID controller.
System is designed and implemented using MATLAB and
arduino IDE software tools. PID controller collects data from
microcontroller to calculate the error and control the speed
with in operated range Results shows that PID controllers
used provide efficient controlling of DC motor.
REFERENCES
[1] Pooja.hanchate,priyanka.gadag,prithvi.h,sapna.u,Ramya.s,priyak
a.b, swathi.i, raghavendra.m.shet, “speed control of dc motor
using pid controller”, international conference, 27th march,
2016, chennai, india.
[2] Nikhil Tripathi , Rameshwar Singh , Renu yadav3 “Analysis of
Speed Control of DC Motor –A review study”, International
Research Journal of Engineering and Technology (IRJET),
Volume: 02 Issue: 08 | Nov-2015.
[3] K. Venkateswarlu & Dr. Ch. Chengaiah ,“Comparative Study on
DC Motor Speed Control using Various Controllers”,Global
Journal of Researches in Engineering Electrical and Electronics
Engineering Volume13,Issue17,Version1.0,Year2013.
[4] Thirupathi Allam, Matla Raju, S.Sundeep Kumar,“Design of
PID controller for DC Motor Speed Control Using Arduino
Microcontroller”, International Research Journal of Engineering
and Technology (IRJET), Volume: 03 Issue: 09 | Sep-2016.
[5] Shatrughana Prakash Yadav , V.K. Tripathi, “A Case Study of
DC Motor Speed Control with PID Controller through MAT
LAB”, International Journal of Advanced Research in Computer
and Communication Engineering Vol. 5, Issue 5, May 2016.
[6] S. A. Deraz,“Genetic Tuned PID Controller Based Speed
Control of DC Motor Drive”, International Journal of
Engineering Trends and Technology (IJETT) – Volume 17
Number 2 – Nov 2014.
[7] Gajal Parasha ,“Speed control of Dc motor using PID controller:
A review”, SSRG International Journal of Electrical and
Electronics Engineering (SSRG-IJEEE) – volume 3 Issue 5 May
2016.
[8] SALIM, JYOTI OHRI ,“FUZZY Based PID Controller for
Speed Control of D.C. Motor Using LabVIEW”, WSEAS
TRANSACTIONS on SYSTEMS and CONTROL, Volume 10,
2015.
[9] Saurabh Dubey1, Dr. S.K. Srivastava, “A PID Controlled Real
Time Analysis of DC Motor”, International Journal of
Innovative Research in Computer and Communication
Engineering, Vol. 1, Issue 8, October 2013.
[10] Pikaso Pal , Rajeeb Dey , Raj Kumar Biswas , Shubhashish
Bhakta, “Optimal pid controller design for speed control of a
separately excited dc motor: a firefly based optimization
approach”, International Journal of Soft Computing,
Mathematics and Control (IJSCMC), Vol. 4, No. 4, November
2015.
[11] Safina Al Nisa, Lini Mathew, S Chatterji ,“Comparative
Analysis of Speed Control of DC Motor Using AI Technique”,
International Journal of Engineering Research and Applications,
Vol. 3, Issue 3, May-Jun 2013, pp.1137-1146.

More Related Content

PPTX
synchronous motor for presentation
PPTX
Power Electronics - Phase Controlled Converters.pptx
PPTX
Brushless dc motor
PPT
Basics of motor drives
PPTX
Brushless DC Motors
PDF
Permanent magnet synchronous motor and its working
PPT
Servo systems, servomotors
PDF
Simulation DC Motor Speed Control System by using PID Controller
synchronous motor for presentation
Power Electronics - Phase Controlled Converters.pptx
Brushless dc motor
Basics of motor drives
Brushless DC Motors
Permanent magnet synchronous motor and its working
Servo systems, servomotors
Simulation DC Motor Speed Control System by using PID Controller

What's hot (20)

PPTX
STATIC AND DIGITAL RELAYS
PPTX
Planning and modern trends in hvdc
PPTX
Buck-Boost Converter
PDF
Power system stability
PPTX
Permanent magnet brushless dc motors ppt
PPTX
Control systems engineering
PPTX
Stepper motor
PPTX
Chapter 1 basic components of control system
PPT
protection of transmission lines[distance relay protection scheme]
PPT
BUCK CONVERTER
PPTX
Synchronous motor drive
PPTX
Speed Control Of DC Motor
PPTX
Switched Reluctance Motor SRM - Introduction
PPTX
Introduction of wide area mesurement syatem
PPTX
BLDC motor control reference design press presentation
PDF
Modern Control - Lec 02 - Mathematical Modeling of Systems
PDF
Chapter 5
PPTX
Vector Control of AC Induction Motors
PDF
POWER ELECTRONIC DEVICES
PPTX
Power Electronics
STATIC AND DIGITAL RELAYS
Planning and modern trends in hvdc
Buck-Boost Converter
Power system stability
Permanent magnet brushless dc motors ppt
Control systems engineering
Stepper motor
Chapter 1 basic components of control system
protection of transmission lines[distance relay protection scheme]
BUCK CONVERTER
Synchronous motor drive
Speed Control Of DC Motor
Switched Reluctance Motor SRM - Introduction
Introduction of wide area mesurement syatem
BLDC motor control reference design press presentation
Modern Control - Lec 02 - Mathematical Modeling of Systems
Chapter 5
Vector Control of AC Induction Motors
POWER ELECTRONIC DEVICES
Power Electronics
Ad

Similar to PID Controller based DC Motor Speed Control (20)

PDF
Software control systems for smart antenna
PDF
Direct Digital Control
PDF
Robotic Catching Arm using Microcontroller
PDF
Camera Movement Control using PID Controller in LabVIEW
PDF
Self-Tuning Fuzzy PID Design for BLDC Speed Control
PDF
IRJET- Speed Control of Induction Motor using Hybrid PID Fuzzy Controller
PDF
IRJET - Hybrid Model of Smart Energy Consumption Monitoring System
PDF
IRJET- Design and Analysis of Fuzzy and GA-PID Controllers for Optimized Perf...
PDF
IRJET- Analysis of 3-Phase Induction Motor with High Step-Up PWM DC-DC Conver...
PDF
D0255033039
PDF
International Journal of Computational Engineering Research(IJCER)
PPTX
Lecture Notes: EEEC4340318 Instrumentation and Control Systems - Introductio...
PDF
IRJET- Design & Development of Two-Wheeled Self Balancing Robot
PDF
PC Based DC Motor Speed Control using PID for Laboratory
PDF
Design and Implementation of a Self-Balancing Two-Wheeled Robot Driven by a F...
PDF
IRJET- Fuzzy Logic based Fault Detection in Induction Machines using Cloud
PDF
Folza_paper_mechatronics
PDF
The Design of Multi-Platforms Rail Intelligence Flatness Detection System
PDF
Development of Software for Estimation of Structural Dynamic Characteristics ...
PDF
IRJET - Design of EV with Fault Detection and Monitoring in Low Voltage S...
Software control systems for smart antenna
Direct Digital Control
Robotic Catching Arm using Microcontroller
Camera Movement Control using PID Controller in LabVIEW
Self-Tuning Fuzzy PID Design for BLDC Speed Control
IRJET- Speed Control of Induction Motor using Hybrid PID Fuzzy Controller
IRJET - Hybrid Model of Smart Energy Consumption Monitoring System
IRJET- Design and Analysis of Fuzzy and GA-PID Controllers for Optimized Perf...
IRJET- Analysis of 3-Phase Induction Motor with High Step-Up PWM DC-DC Conver...
D0255033039
International Journal of Computational Engineering Research(IJCER)
Lecture Notes: EEEC4340318 Instrumentation and Control Systems - Introductio...
IRJET- Design & Development of Two-Wheeled Self Balancing Robot
PC Based DC Motor Speed Control using PID for Laboratory
Design and Implementation of a Self-Balancing Two-Wheeled Robot Driven by a F...
IRJET- Fuzzy Logic based Fault Detection in Induction Machines using Cloud
Folza_paper_mechatronics
The Design of Multi-Platforms Rail Intelligence Flatness Detection System
Development of Software for Estimation of Structural Dynamic Characteristics ...
IRJET - Design of EV with Fault Detection and Monitoring in Low Voltage S...
Ad

More from rahulmonikasharma (20)

PDF
Data Mining Concepts - A survey paper
PDF
A Review on Real Time Integrated CCTV System Using Face Detection for Vehicle...
PDF
Considering Two Sides of One Review Using Stanford NLP Framework
PDF
A New Detection and Decoding Technique for (2×N_r ) MIMO Communication Systems
PDF
Broadcasting Scenario under Different Protocols in MANET: A Survey
PDF
Sybil Attack Analysis and Detection Techniques in MANET
PDF
A Landmark Based Shortest Path Detection by Using A* and Haversine Formula
PDF
Processing Over Encrypted Query Data In Internet of Things (IoTs) : CryptDBs,...
PDF
Quality Determination and Grading of Tomatoes using Raspberry Pi
PDF
Comparative of Delay Tolerant Network Routings and Scheduling using Max-Weigh...
PDF
DC Conductivity Study of Cadmium Sulfide Nanoparticles
PDF
A Survey on Peak to Average Power Ratio Reduction Methods for LTE-OFDM
PDF
IOT Based Home Appliance Control System, Location Tracking and Energy Monitoring
PDF
Thermal Radiation and Viscous Dissipation Effects on an Oscillatory Heat and ...
PDF
Advance Approach towards Key Feature Extraction Using Designed Filters on Dif...
PDF
Alamouti-STBC based Channel Estimation Technique over MIMO OFDM System
PDF
Empirical Mode Decomposition Based Signal Analysis of Gear Fault Diagnosis
PDF
Short Term Load Forecasting Using ARIMA Technique
PDF
Impact of Coupling Coefficient on Coupled Line Coupler
PDF
Design Evaluation and Temperature Rise Test of Flameproof Induction Motor
Data Mining Concepts - A survey paper
A Review on Real Time Integrated CCTV System Using Face Detection for Vehicle...
Considering Two Sides of One Review Using Stanford NLP Framework
A New Detection and Decoding Technique for (2×N_r ) MIMO Communication Systems
Broadcasting Scenario under Different Protocols in MANET: A Survey
Sybil Attack Analysis and Detection Techniques in MANET
A Landmark Based Shortest Path Detection by Using A* and Haversine Formula
Processing Over Encrypted Query Data In Internet of Things (IoTs) : CryptDBs,...
Quality Determination and Grading of Tomatoes using Raspberry Pi
Comparative of Delay Tolerant Network Routings and Scheduling using Max-Weigh...
DC Conductivity Study of Cadmium Sulfide Nanoparticles
A Survey on Peak to Average Power Ratio Reduction Methods for LTE-OFDM
IOT Based Home Appliance Control System, Location Tracking and Energy Monitoring
Thermal Radiation and Viscous Dissipation Effects on an Oscillatory Heat and ...
Advance Approach towards Key Feature Extraction Using Designed Filters on Dif...
Alamouti-STBC based Channel Estimation Technique over MIMO OFDM System
Empirical Mode Decomposition Based Signal Analysis of Gear Fault Diagnosis
Short Term Load Forecasting Using ARIMA Technique
Impact of Coupling Coefficient on Coupled Line Coupler
Design Evaluation and Temperature Rise Test of Flameproof Induction Motor

Recently uploaded (20)

PDF
Embodied AI: Ushering in the Next Era of Intelligent Systems
PPTX
Lecture Notes Electrical Wiring System Components
PPTX
KTU 2019 -S7-MCN 401 MODULE 2-VINAY.pptx
PDF
Mohammad Mahdi Farshadian CV - Prospective PhD Student 2026
PPTX
Welding lecture in detail for understanding
PPTX
Recipes for Real Time Voice AI WebRTC, SLMs and Open Source Software.pptx
PPTX
OOP with Java - Java Introduction (Basics)
PDF
BMEC211 - INTRODUCTION TO MECHATRONICS-1.pdf
PDF
Enhancing Cyber Defense Against Zero-Day Attacks using Ensemble Neural Networks
PPTX
CH1 Production IntroductoryConcepts.pptx
PDF
R24 SURVEYING LAB MANUAL for civil enggi
PPTX
web development for engineering and engineering
PDF
TFEC-4-2020-Design-Guide-for-Timber-Roof-Trusses.pdf
PDF
Well-logging-methods_new................
PPT
CRASH COURSE IN ALTERNATIVE PLUMBING CLASS
PPTX
UNIT 4 Total Quality Management .pptx
DOCX
ASol_English-Language-Literature-Set-1-27-02-2023-converted.docx
PDF
July 2025 - Top 10 Read Articles in International Journal of Software Enginee...
PDF
Mitigating Risks through Effective Management for Enhancing Organizational Pe...
PPTX
FINAL REVIEW FOR COPD DIANOSIS FOR PULMONARY DISEASE.pptx
Embodied AI: Ushering in the Next Era of Intelligent Systems
Lecture Notes Electrical Wiring System Components
KTU 2019 -S7-MCN 401 MODULE 2-VINAY.pptx
Mohammad Mahdi Farshadian CV - Prospective PhD Student 2026
Welding lecture in detail for understanding
Recipes for Real Time Voice AI WebRTC, SLMs and Open Source Software.pptx
OOP with Java - Java Introduction (Basics)
BMEC211 - INTRODUCTION TO MECHATRONICS-1.pdf
Enhancing Cyber Defense Against Zero-Day Attacks using Ensemble Neural Networks
CH1 Production IntroductoryConcepts.pptx
R24 SURVEYING LAB MANUAL for civil enggi
web development for engineering and engineering
TFEC-4-2020-Design-Guide-for-Timber-Roof-Trusses.pdf
Well-logging-methods_new................
CRASH COURSE IN ALTERNATIVE PLUMBING CLASS
UNIT 4 Total Quality Management .pptx
ASol_English-Language-Literature-Set-1-27-02-2023-converted.docx
July 2025 - Top 10 Read Articles in International Journal of Software Enginee...
Mitigating Risks through Effective Management for Enhancing Organizational Pe...
FINAL REVIEW FOR COPD DIANOSIS FOR PULMONARY DISEASE.pptx

PID Controller based DC Motor Speed Control

  • 1. International Journal on Recent and Innovation Trends in Computing and Communication ISSN: 2321-8169 Volume: 5 Issue: 9 35 – 38 _______________________________________________________________________________________________ 35 IJRITCC | September 2017, Available @ http://www.ijritcc.org _______________________________________________________________________________________ PID Controller based DC Motor Speed Control V. V. Kulkarni Assistant Professor Electrical Engineering Department AISSMS COE Pune Pune e-mail: vvkulkarni@aissmscoe.com Dr. V. A. Kulkarni Associate Professor Electrical Engineering Department Govt. College of Engineeringg, Aurangabad e-mail: ku1111@rediffmail.com Romharshal Talele ME – II Electrical Engineering Department AISSMS COE Pune Pune e-mail: romtalele@gmail.com Abstract – Due to extensive use of motion control system in industry, there has been growing research on proportional-integral-derivative (PID) controllers. DC motors are widely used various areas of industrial applications. The aim of this paper is to implement efficient method for controlling speed of DC motor using a PID controller based. Proposed system is implemented using arduino microcontroller and PID controller. Motor speed is controlled through PID based revolutions per minute of the motor. This encoder data will be send through microcontroller to Personal Computer with PID controller implemented in MATLAB. Results shows that PID controllers used provide efficient controlling of DC motor. Keywords – DC Motor; Control System; PID Controller; MATLAB Simulation: Arduino __________________________________________________*****_______________________________________________ I. INTRODUCTION PID controller is becoming very important since in last few years its demand is increasing from various industries as it gives the consistency and maintains the output even if its input is changed. The DC motor are also popular in the industry control applications since long time, they have good characteristic such as high response performance, high start torque characteristics, and easy for linear control. DC motor gives good speed control respond. They have wide speed control range and they are used in speed control systems which needs high control requirements like high precision digital tools, rolling mill, double-hulled tanker etc[1]. For example, suppose DC motor is used in a robot, constant power is applied to each motor on a robot, in this case poor robot cannot maintain a steady speed. It goes slower over carpet, faster over smooth flooring, slower up hill, faster downhill, etc. So, it is important to take into account a controller to control the speed of DC motor in desired speed [2]. Many control schemes such as proportional, integral, derivative, proportional integral, PID, adaptive, and FLCs are used for speed control of dc motors. For controlling speed of the DC motor, voltage to the armature of dc motor is varied [3].Control system is a system which controls other system. Open Loop Control System In Open Loop Control System, it cannot correct the variation in output automatically. In these systems the output remains constant for a constant input signal. By approximately changing input output may change to desired value and variations in external Conditions may cause the output to change [1]. Closed Loop Control System In closed Loop Control System, it can correct the variation in output automatically. In these systems the output remains constant for a changing input signal. The measured response of the system is compared with a desired response of the system. The difference between two response gives the actual response of the system[1]. This paper is organized as follows: Section II gives introduction to the PID controllers and importance of the DC motor. Proposed work and system flow is given Section III. Software design, Hardware components and its implementation is discussed in Section IV. Section V describes results of proposed system. Finally, conclusion is given in Section VI. II. PROPOSED WORK A. Block Diagram of the Proposed system Figure 1 shows the block diagram of the proposed work. Fig.1 Block Diagram of the Proposed System Proposed system consists of Arduino mega controller development board, DC motor driver, servomotor and PC with MATLAB code. In proposed system speed of the DC motor is controlled through PID controller using MATLAB. The system works in the form of closed loop. Feedback about the
  • 2. International Journal on Recent and Innovation Trends in Computing and Communication ISSN: 2321-8169 Volume: 5 Issue: 9 35 – 38 _______________________________________________________________________________________________ 36 IJRITCC | September 2017, Available @ http://www.ijritcc.org _______________________________________________________________________________________ status about the RPM of the motor is given to microcontroller then data is send to PC through serial communication. PID controller is implemented in MATLAB it receives data and give command to arduino controller according to the set threshold. Microcontroller gives command to dc motor driver through PWM. It drives the servomotor according to the command received. B. System Flow Algorithm 1. Start and initialize the system 2. Read motor data through microcontroller 3. Send this data to PC and take decision using PID controller 4. Send this data back to microcontroller and send command to motor driver 5. Motor speed is controlled System implementation flow is shown in Fig. 2. 6. Yes No Fig.2. System Implementation Flow III. PID CONTROLLER A. PID Controller PID controller algorithm provides control action for the designed process according to requirements[1]. Figure 3 shows the block diagram of PID Controller. Fig.3 Blocks of PID Controller The response of the controller can be described in terms of the responsiveness of the controller the degree to which the controller overshoots the set-point ,to an error and the degree of system oscillation. PID Controller is the combination of Proportional, Derivative and Integral controllers. PID controller works in a closed-loop system as shown in figure 3. The transfer function of the PID controller is given below: 𝐾𝑃 + 𝐾 𝐼 𝑆 + 𝐾 𝐷 𝑆 = 𝐾 𝐷 𝑆2 +𝐾 𝑃 𝑆+𝐾 𝐼 𝑆 …… (1) Where, KP = Proportional gain KI = Integral gain KD = Derivative gain The desired input value is represented as (R) and the actual output is represented as a (Y). The difference between desired input and actual output is represented by variable (e) called as tracking error. This error signal (e) is send to the PID controller, and the controller computes the derivative and the integral of this error signal. The signal (u) just pass the controller is now equal to the proportional gain (KP) times the magnitude of the error plus the integral gain (KI) times the integral of the error plus the derivative gain (KD) times the derivative of the error as given in equation (2). µ = 𝐾𝑃 𝑒 + 𝐾𝐼 𝑒 𝑑𝑡 + 𝐾 𝐷 𝑑𝑒 𝑑𝑡 ………… (2) This signal (u) is send to the plant, and it gives the new output (Y). This new output (Y) will be sent back to the sensor again to find the new error signal (e).The controller takes this new error signal and computes its derivative and its integral again. This process will continue[4]. Characteristics of P, I, and D controllers  A proportional controller (KP) reduces the rise time but it will never eliminate the steady-state error.  An integral control (KI) eliminates the steady-state error, but it makes the transient response worse. Start Initialize the system Read motor data through microcontroller Send this data to PC Motor RPM =Set Threshold Keep motor running Increase/Decrease RPM depending upon the current RPM End Send command to microcontroller Microcontroller gives command to Motor
  • 3. International Journal on Recent and Innovation Trends in Computing and Communication ISSN: 2321-8169 Volume: 5 Issue: 9 35 – 38 _______________________________________________________________________________________________ 37 IJRITCC | September 2017, Available @ http://www.ijritcc.org _______________________________________________________________________________________  A derivative control (KD) increases stability of the system, by reducing the overshoot, and it improves the transient response of the system [2]. Table No.1 Effects of each of controllers KP, KI, and KD on a closed-loop system[2] IV. SYSTEM DEVELOPMENT A. Software Description 1. Arduino Compiler The Arduino Software (IDE) is an open source compiler in which we can write code and upload it to the board. It runs on Mac OS X, Linux and Windows. It is based on processing and other open-source software and environment is written in Java. Arduino compiler accepts C and C++ many of the libraries are written in C++.The Arduino environment performs some small transformations on the code to make sure that the code is correct then it gets passed to a compiler, which turns the code into machine language. 2. MATLAB MATLAB is a high-performance language its basic data element is an array that does not require dimensioning. Matrix and vector formulations allow us to solve many technical computing problems. It integrates computation with the programming visualization which gives easy-to-use environment where problems and solutions can be expressed in the mathematical notation. Areas in which MATLAB toolboxes are available include control systems, simulation, signal processing, neural wavelets, fuzzy logic, and many others. B. Hardware Description The block diagram of the implemented model which is used in this work is shown below in figure 4. Also the different parameters of the individual component are explained below.The motor used in this work is a permanent magnet DC motor. An encoder is connected to the motor. The encoder is of 2000 ppr. The encoder is used to count the output pulses of motor. The specifications of the same are listed below. Rated voltage (V) 24 No load speed (rpm) 6600 Rated speed (rpm) 6000 Rated torque (kgcm) 5.2 Stall torque (kgcm) 22 Rotor inertia (Gcm2 ) 600 Starting current (A) 29.5 Fig.4. Implemented Model PWM pulses for the motor are given through the arduino board and driver circuit from PC/MATLAB. The loading arrangement consists of a digital weight, load cell and load cell amplifier. The output of the load cell amplifier is given as feedback to the arduino to measure the pulses and accurate weight. V. RESULTS AND DISCUSSIONS Figure 5 and 6 shows the MATLAB simulation results of the system. Figure 5 shows the graph of the motor RPM vs number of samples, error signal and the control signal for the threshold RPM of 1500.Initially RPM is 2500 then at sample 110,170 RPM goes below 1500.Hence, it is seen that error signal is present at samples 0,110 and 170. Control signal for the given error signal is shown in figure. Fig.5 Motor RPM vs Number of Samples for threshold RPM=1500 Figure 6 shows the graph of the motor RPM vs number of samples, error signal and the control signal for the threshold RPM of 2000.Initially RPM is 3500 then at sample 60, 85 RPM goes below 2000.Hence, it is seen that error signal is present at samples 0, 60 and 85. Control signal for the given error signal is shown in figure. CL RESPONSE RISE TIME OVERSHOOT SETTLING TIME S-S ERROR Kp Decrease Increase Small change Decrease Ki Decrease Increase Increase Eliminate Kd Small change Decrease Decrease Small change
  • 4. International Journal on Recent and Innovation Trends in Computing and Communication ISSN: 2321-8169 Volume: 5 Issue: 9 35 – 38 _______________________________________________________________________________________________ 38 IJRITCC | September 2017, Available @ http://www.ijritcc.org _______________________________________________________________________________________ Fig.6 Motor RPM vs Number of Samples for threshold RPM=2000 VI. CONCLUSION Proposed system consists of servomotor and PID controller. System is designed and implemented using MATLAB and arduino IDE software tools. PID controller collects data from microcontroller to calculate the error and control the speed with in operated range Results shows that PID controllers used provide efficient controlling of DC motor. REFERENCES [1] Pooja.hanchate,priyanka.gadag,prithvi.h,sapna.u,Ramya.s,priyak a.b, swathi.i, raghavendra.m.shet, “speed control of dc motor using pid controller”, international conference, 27th march, 2016, chennai, india. [2] Nikhil Tripathi , Rameshwar Singh , Renu yadav3 “Analysis of Speed Control of DC Motor –A review study”, International Research Journal of Engineering and Technology (IRJET), Volume: 02 Issue: 08 | Nov-2015. [3] K. Venkateswarlu & Dr. Ch. Chengaiah ,“Comparative Study on DC Motor Speed Control using Various Controllers”,Global Journal of Researches in Engineering Electrical and Electronics Engineering Volume13,Issue17,Version1.0,Year2013. [4] Thirupathi Allam, Matla Raju, S.Sundeep Kumar,“Design of PID controller for DC Motor Speed Control Using Arduino Microcontroller”, International Research Journal of Engineering and Technology (IRJET), Volume: 03 Issue: 09 | Sep-2016. [5] Shatrughana Prakash Yadav , V.K. Tripathi, “A Case Study of DC Motor Speed Control with PID Controller through MAT LAB”, International Journal of Advanced Research in Computer and Communication Engineering Vol. 5, Issue 5, May 2016. [6] S. A. Deraz,“Genetic Tuned PID Controller Based Speed Control of DC Motor Drive”, International Journal of Engineering Trends and Technology (IJETT) – Volume 17 Number 2 – Nov 2014. [7] Gajal Parasha ,“Speed control of Dc motor using PID controller: A review”, SSRG International Journal of Electrical and Electronics Engineering (SSRG-IJEEE) – volume 3 Issue 5 May 2016. [8] SALIM, JYOTI OHRI ,“FUZZY Based PID Controller for Speed Control of D.C. Motor Using LabVIEW”, WSEAS TRANSACTIONS on SYSTEMS and CONTROL, Volume 10, 2015. [9] Saurabh Dubey1, Dr. S.K. Srivastava, “A PID Controlled Real Time Analysis of DC Motor”, International Journal of Innovative Research in Computer and Communication Engineering, Vol. 1, Issue 8, October 2013. [10] Pikaso Pal , Rajeeb Dey , Raj Kumar Biswas , Shubhashish Bhakta, “Optimal pid controller design for speed control of a separately excited dc motor: a firefly based optimization approach”, International Journal of Soft Computing, Mathematics and Control (IJSCMC), Vol. 4, No. 4, November 2015. [11] Safina Al Nisa, Lini Mathew, S Chatterji ,“Comparative Analysis of Speed Control of DC Motor Using AI Technique”, International Journal of Engineering Research and Applications, Vol. 3, Issue 3, May-Jun 2013, pp.1137-1146.