SlideShare ist ein Scribd-Unternehmen logo
1 von 3
Downloaden Sie, um offline zu lesen
International Journal of Trend in Scientific Research and Development (IJTSRD)
Volume 3 Issue 5, August 2019 Available Online: www.ijtsrd.com e-ISSN: 2456 – 6470
@ IJTSRD | Unique Paper ID – IJTSRD27898 | Volume – 3 | Issue – 5 | July - August 2019 Page 2398
PC Based DC Motor Speed Control using PID for Laboratory
Kyaw Zin Latt, Than Htike Aung, Zaw Min Min Htun
Department of Electronic Engineering Mandalay, Technological University, Mandalay, Myanmar
How to cite this paper: Kyaw Zin Latt |
Than Htike Aung | Zaw Min Min Htun "PC
Based DC Motor Speed Control using PID
for Laboratory"
Published in
International
Journal of Trend in
Scientific Research
and Development
(ijtsrd), ISSN: 2456-
6470, Volume-3 |
Issue-5, August 2019, pp.2398-2400,
https://doi.org/10.31142/ijtsrd27898
Copyright © 2019 by author(s) and
International Journal ofTrend inScientific
Research and Development Journal. This
is an Open Access article distributed
under the terms of
the Creative
Commons Attribution
License (CC BY 4.0)
(http://creativecommons.org/licenses/by
/4.0)
ABSTRACT
In this paper, PC based DC motor speed control using PID (proportional,
Integral, derivative) control algorithm for laboratory. Arduino Uno
microcontroller and L298N hybrid motor driver module are used to drive the
dc motor. PID algorithm is uploaded to arduino and proportional gain (kp),
Integral gain (ki), and derivative gain ( kd) can be set and tuned via windows
form application in computer. This application is developed by using c#
programming. The desired speed and PID gains are set by computer anddrive
the DC motor. The speed of the motor can retrieve by using encoder which is
included in DC motor. By using this work, student can learn how to controlthe
speed of DC motor using PID controller and how to tune the gains.
KEYWORDS: PID, C#, arduino uno, L298n, windows form application
I. INTRODUCTION
Nowadays, DC motors have been widely used in industry even though its
maintenance costs are higher than the induction motor. A DC motor is any of a
class of rotary electrical machines that converts directcurrent electricalenergy
into mechanical energy. The most commontypes relyontheforces produced by
magnetic fields. Nearly all types of DC motors have some internal mechanism,
either electromechanical or electronics, to periodically change the direction of
current flow in part of the motor.
[1] The speed of the DC motor is controlled by using pulse
width modulation (PWM), a technique of rapidly pulsingthe
power on off. Arduino microcontroller is used to receive the
data, revolution per minutes, proportionalgain,integralgain
and derivative gain, from computer. Proportional-Integral
Derivative (PID) controllershavebeenwidely usedforspeed
and position control of DC motor [3]. The objective of this
paper is to show that by employing the PID gains tuning
system from graphical user interface (GUI) to get the
optimization can be achieved [5]. The students can tune the
PID gains from GUI. This GUI was developed by C# windows
form application [4].
II. Operation Principle
A. Operation Principle
The overall block diagram is shown in Figure 1. The main
objective of this work is to control DC motor using PID
control algorithm and tune the PID gains from computer for
laboratory. This training board consists of four components,
computer, arduino, L298N hybrid motor driver and namiki
DC motor. To control the speed of DC motor, student can
start the motor by using computer and monitor the speed of
motor from C# windows form application. And then,
students can tune the PID gains from this form and test the
response of speed of the DC motor. PID control algorithm is
written in arduino Uno microcontroller and drive the DC
motor by using L298N motor driver. From Graphical User
Interface in computer set the gains and revolution per
minute shown in Figure 2.
Figure1. Overall design of PC based DC speed control
Figure2. Experiment for DC motor speed control
III. PROPORTIONAL-INTEGRAL-DERIVATIVE
CONTROLLER
A. Proportional response
The proportional component depends only onthedifference
between the set point and the process variable. This
difference is referred to as the Error term. The proportional
gain determines the ratio of output response to the error
IJTSRD27898
International Journal of Trend in Scientific Research and Development (IJTSRD) @ www.ijtsrd.com eISSN: 2456-6470
@ IJTSRD | Unique Paper ID – IJTSRD27898 | Volume – 3 | Issue – 5 | July - August 2019 Page 2399
signal. For instance, if the error term has a magnitude of 10,
a proportional gain of 5 would produce a proportional
response of 50. In general, increasing the proportional gain
will increase the speed of the control system response.
However, if the proportional gain is too large, the process
variable will begin to oscillate. In contrast, a small gain
results in a small output response to a large input error.
𝑃𝑜𝑢𝑡 = 𝑘𝑝 𝑒(𝑡)
B. Integral Response
The integral component sums the error term over time. The
result is that even a small error term will cause the integral
component to increase slowly. The integral response will
continually increase over time unless the erroris zero,sothe
effect is to drive the Steady-State error to zero. Steady-State
error is the final difference betweentheprocess variable and
set point. A phenomenon called integral windup results
when integral action saturates a controller without the
controller driving the error signal toward zero.
𝐼𝑜𝑢𝑡 = 𝑒(𝑡)𝑑𝑡
C. Derivative Response
The derivative component causes the output to decrease if
the process variable is increasing rapidly. The derivative
response is proportional to the rate of change of the process
variable. Increasing the derivative time parameterwill cause
the control system to react more strongly to changes in the
error term and will increase the speed of the overall control
system response. Most practical control systems use very
small derivative time, because the derivative response is
highly sensitive to noise in the process variable signal. If the
sensor feedback signal is noisy or if the control loop rate is
too slow, the derivative response can make the control
system unstable. The concept of PID controller isdepicted in
Figure 3.
𝐷𝑜𝑢𝑡 = 𝑘𝑑
𝑑𝑒(𝑡)
𝑑𝑡
Figure3. PID controller
IV. HARDWARE AND SOFTWARE COMPONENTS
A. Arduino Uno
Arduino is a microcontroller and open-sourceplatformused
for building electronics projects. Arduino consists of both a
physical programmable circuit boardanda pieceofsoftware
component, or IDE (Integrated Development Environment)
that runs on your computer, used to write and upload
computer code to the physical board. The Arduino platform
has become quite popular with people just starting out with
electronics, and for good reason. Unlike most previous
programmable circuit boards, the Arduino does not need a
separate piece of hardware (called a programmer) in order
to load new code onto the board you can simply use a USB
cable. Additionally, the ArduinoIDEusesa simplifiedversion
of C++, making it easier to learn to program. Finally,Arduino
provides a standard formfactorthatbreaksout thefunctions
of the micro-controller into a more accessible package.
Figure6. Arduino Uno microcontroller
B. L298N Dual H-Bridge Motor Driver
This dual bidirectional motor driver, Figure 4, is based on
the very popular L298 Dual H-Bridge Motor Driver
Integrated Circuit. The circuit will allow to easily and
independently control two motors of up to 2A each in both
directions. It is ideal for robotic applications and well suited
for connection to a microcontroller requiringjust acoupleof
control lines per motor. It can also be interfaced with simple
manual switches, TTL logic gates, relays, etc. This board
equipped with power LED indicators, on-board +5V
regulator and protection diodes.
Figure4. L298N hybrid motor driver
C. Namiki precision motor
The 12V Namiki DC gear-motor shown in Fig. 5 is a powerful
motor to drive the position control system. It comeswith the
photoelectric encoder output and planetary gear ratio
reduced by 80:1 gear. It can provide 120 rpm with the rated
voltage of 12VDC [3]. To read the count values from the
encoder, the user would check the condition of channel A
and B rotation applying by experiment. For the rotor shaft
count per revolution values, it is very important to multiply
the gear ratio by count values. The specificationofthemotor
is shown in Table 1.
International Journal of Trend in Scientific Research and Development (IJTSRD) @ www.ijtsrd.com eISSN: 2456-6470
@ IJTSRD | Unique Paper ID – IJTSRD27898 | Volume – 3 | Issue – 5 | July - August 2019 Page 2400
Figure5. Namiki DC motor with encoder
Table1. Specification of namiki motor
Brand: Namiki Coreless Motor (Japan)
Model: 22CL-3501PG
Operating
Voltage:
12VDC
Rated power: 15W
Stall torque: 16.5kg*cm
Continuous
torque:
5kg*cm
Diameter: 22mm
Shaft length: 19mm (with 90 degree double-cut)
Length: 65mm (includes encoder gear box)
Stall current: 1.8A
Reduction
ratio:
80:1(metal planetary reduction
gear)
Output speed: 120 RPM@12VDC
D. C# programming Language
C# is a hybrid of C and C++, it is a Microsoft programming
language developed tocompletewithSun’s javalanguage. C#
programming language, windows form applications, web
applications and network application can be developed. In
this work, windows form application was developed. C # is
an object-oriented programming language used with web
service on the .Net platform and designed for development
of web application.
C# boasts type-safety, interoperability, garbage collection,
simplified type declarations, versioning and scalability
support, and other features that make developing solutions
faster and easier, especially for COM+ and Web services.
Microsoft critics have pointed to the similarities betweenC#
and Java.
V. RESULTS
Experiment for PC based DC motorspeed controlis shownin
Figure 6. Desired revolution per minutes and respectivePID
gains send to microcontroller and drive the motor. The
actual revolution per minutes of DC motor can be calculated
by using encoder pulses. This RPM is sent from
microcontroller to PC via universal serial bus cable and
display in GUI. Figure 6 shows the comparison of desired
rpm and actual rpm graph. According to this figure, the
speed of the DC motor with encoder can be control via
computer by employing the gains of PID.
Figure6. GUI for PC based DC motor speed control
using PID
VI. CONCLUSION
PC based DC motor speed control using PID control
algorithm was designed and implemented for laboratory.
Student can control the speed of DC encoder motor andtune
and the PID gains, kp, ki, kd from C# the windows form
application. And then, the output RPM of DC motor can be
monitored from PC. So, this work is effectiveand efficientfor
the students. Teacher also can explain the PID algorithm
using this training board.
ACKNOWLEDGMENT
I would like to express my gratitude to all the teachers from
the department of Electronic Engineering, Mandalay
Technological University for their suggestions.
VII. REFERENCES
[1] Liu Jiang-yi1, a, Sun Shu-ying2, “Design and
Implementation of Servo Motor Speed Control
SystemBased on STM32”, Applied Mechanics and
Materials Vols. 427-429 (2013) pp 999-1002,2013
[2] Dinesh Bista,“ Understanding and Design of an
Arduino-based PID Controller”, Virginia
Commonwealth University, 2016
[3] https://www.aliexpress.com/item/32813911637.html
[4] https://docs.microsoft.com/en-
us/dotnet/csharp/programming-guide/
[5] Myo Maung Maung*, Maung Maung Latt**, Chaw Myat
Nwe**,” DC Motor Angular Position Control using PID
Controller with Friction Compensation”, International
Journal of Scientific and ResearchPublications,Volume
8, Issue 11, 149 ISSN 2250-3153, November 2018

Weitere ähnliche Inhalte

Was ist angesagt?

Training Report on Embedded System
Training Report on Embedded SystemTraining Report on Embedded System
Training Report on Embedded System
Roshan Mani
 
Wireless Charging Proposal
Wireless Charging Proposal Wireless Charging Proposal
Wireless Charging Proposal
Nadeem Qandeel
 
three phase inverter
three phase inverterthree phase inverter
three phase inverter
Malik Zaid
 

Was ist angesagt? (20)

Summer Internship Report -By Rahul Mehra
Summer Internship Report -By Rahul MehraSummer Internship Report -By Rahul Mehra
Summer Internship Report -By Rahul Mehra
 
Power electronics phase control rectifier
Power electronics phase control rectifierPower electronics phase control rectifier
Power electronics phase control rectifier
 
236225174 psd-course-file-2011-12-1
236225174 psd-course-file-2011-12-1236225174 psd-course-file-2011-12-1
236225174 psd-course-file-2011-12-1
 
Training Report on Embedded System
Training Report on Embedded SystemTraining Report on Embedded System
Training Report on Embedded System
 
Report on speed control of d.c. motor using pwm method
Report on speed control of d.c. motor using pwm methodReport on speed control of d.c. motor using pwm method
Report on speed control of d.c. motor using pwm method
 
Robo wireless controll
Robo wireless controllRobo wireless controll
Robo wireless controll
 
Buck-Boost Converter
Buck-Boost ConverterBuck-Boost Converter
Buck-Boost Converter
 
Unit-2 AC-DC converter
Unit-2 AC-DC converter Unit-2 AC-DC converter
Unit-2 AC-DC converter
 
Wireless Charging Proposal
Wireless Charging Proposal Wireless Charging Proposal
Wireless Charging Proposal
 
Speed Control of DC motor using AT89C52 IC
Speed Control of DC motor using AT89C52 ICSpeed Control of DC motor using AT89C52 IC
Speed Control of DC motor using AT89C52 IC
 
Phase locked loop
Phase locked loopPhase locked loop
Phase locked loop
 
Three Phase to Three phase Cycloconverter
Three Phase to Three phase CycloconverterThree Phase to Three phase Cycloconverter
Three Phase to Three phase Cycloconverter
 
Coin based mobile phone charger
Coin based mobile phone chargerCoin based mobile phone charger
Coin based mobile phone charger
 
IR BASED HOME AUTOMATION USING ARDUINO UNO
IR BASED HOME AUTOMATION USING ARDUINO UNOIR BASED HOME AUTOMATION USING ARDUINO UNO
IR BASED HOME AUTOMATION USING ARDUINO UNO
 
IoT based Smart board for Displaying and Forwarding notices using Raspberry Pi
IoT based Smart board for Displaying and Forwarding notices using Raspberry PiIoT based Smart board for Displaying and Forwarding notices using Raspberry Pi
IoT based Smart board for Displaying and Forwarding notices using Raspberry Pi
 
Home automation using bluetooth - Aurdino BASED
Home automation using bluetooth - Aurdino BASEDHome automation using bluetooth - Aurdino BASED
Home automation using bluetooth - Aurdino BASED
 
Arduino bluetooth controlled robot
Arduino bluetooth controlled robotArduino bluetooth controlled robot
Arduino bluetooth controlled robot
 
Bluetooth controlled robot using arduino uno and HC-05
Bluetooth controlled robot using arduino uno and HC-05Bluetooth controlled robot using arduino uno and HC-05
Bluetooth controlled robot using arduino uno and HC-05
 
three phase inverter
three phase inverterthree phase inverter
three phase inverter
 
INTERVIEW QUESTIONS ON POWER ELECTRONICS BY RAJ
INTERVIEW QUESTIONS ON POWER ELECTRONICS BY RAJ INTERVIEW QUESTIONS ON POWER ELECTRONICS BY RAJ
INTERVIEW QUESTIONS ON POWER ELECTRONICS BY RAJ
 

Ähnlich wie PC Based DC Motor Speed Control using PID for Laboratory

Camera Movement Control using PID Controller in LabVIEW
Camera Movement Control using PID Controller in LabVIEWCamera Movement Control using PID Controller in LabVIEW
Camera Movement Control using PID Controller in LabVIEW
ijtsrd
 
Design-and-Implementation-of-an-Improved-Automatic-DC-Motor-Speed-Control-Sys...
Design-and-Implementation-of-an-Improved-Automatic-DC-Motor-Speed-Control-Sys...Design-and-Implementation-of-an-Improved-Automatic-DC-Motor-Speed-Control-Sys...
Design-and-Implementation-of-an-Improved-Automatic-DC-Motor-Speed-Control-Sys...
PUBLISHERJOURNAL
 

Ähnlich wie PC Based DC Motor Speed Control using PID for Laboratory (20)

IRJET - IoT based Speed Control of DC Motor using PWM Technique
IRJET -  	  IoT based Speed Control of DC Motor using PWM TechniqueIRJET -  	  IoT based Speed Control of DC Motor using PWM Technique
IRJET - IoT based Speed Control of DC Motor using PWM Technique
 
Camera Movement Control using PID Controller in LabVIEW
Camera Movement Control using PID Controller in LabVIEWCamera Movement Control using PID Controller in LabVIEW
Camera Movement Control using PID Controller in LabVIEW
 
IRJET- Closed Loop Speed Control of DC Motor by using PI Controller
IRJET-  	  Closed Loop Speed Control of DC Motor by using PI ControllerIRJET-  	  Closed Loop Speed Control of DC Motor by using PI Controller
IRJET- Closed Loop Speed Control of DC Motor by using PI Controller
 
Dc motor speed control with feedback monitor based on c# application
Dc motor speed control with feedback monitor based on c# applicationDc motor speed control with feedback monitor based on c# application
Dc motor speed control with feedback monitor based on c# application
 
Dc motor speed control with feedback monitor based on c# application
Dc motor speed control with feedback monitor based on c# applicationDc motor speed control with feedback monitor based on c# application
Dc motor speed control with feedback monitor based on c# application
 
A Review on Smart Generator Control using Android Application
A Review on Smart Generator Control using Android ApplicationA Review on Smart Generator Control using Android Application
A Review on Smart Generator Control using Android Application
 
IRJET - Hybrid Model of Smart Energy Consumption Monitoring System
IRJET - Hybrid Model of Smart Energy Consumption Monitoring SystemIRJET - Hybrid Model of Smart Energy Consumption Monitoring System
IRJET - Hybrid Model of Smart Energy Consumption Monitoring System
 
Simulation DC Motor Speed Control System by using PID Controller
Simulation DC Motor Speed Control System by using PID ControllerSimulation DC Motor Speed Control System by using PID Controller
Simulation DC Motor Speed Control System by using PID Controller
 
IRJET- Smart Battery Management
IRJET- Smart Battery ManagementIRJET- Smart Battery Management
IRJET- Smart Battery Management
 
IRJET- AC Motor Fault Analyser by Characteristic Analysis
IRJET-  	  AC Motor Fault Analyser by Characteristic AnalysisIRJET-  	  AC Motor Fault Analyser by Characteristic Analysis
IRJET- AC Motor Fault Analyser by Characteristic Analysis
 
IRJET- Induction Motor Condition Monitoring and Controlling based on IoT
IRJET- Induction Motor Condition Monitoring and Controlling based on IoTIRJET- Induction Motor Condition Monitoring and Controlling based on IoT
IRJET- Induction Motor Condition Monitoring and Controlling based on IoT
 
IRJET- Automatic Vehicle Speed Controller System in Restricted Areas
IRJET- Automatic Vehicle Speed Controller System in Restricted AreasIRJET- Automatic Vehicle Speed Controller System in Restricted Areas
IRJET- Automatic Vehicle Speed Controller System in Restricted Areas
 
Bottle Filling Application using Arduino
Bottle Filling Application using ArduinoBottle Filling Application using Arduino
Bottle Filling Application using Arduino
 
IOT BASED ELECTRICAL MOTOR CONTROL AND MONITORING
IOT BASED ELECTRICAL MOTOR CONTROL AND MONITORINGIOT BASED ELECTRICAL MOTOR CONTROL AND MONITORING
IOT BASED ELECTRICAL MOTOR CONTROL AND MONITORING
 
IRJET- Design and Fabrication of Steering System using Servo Motors
IRJET- Design and Fabrication of Steering System using Servo MotorsIRJET- Design and Fabrication of Steering System using Servo Motors
IRJET- Design and Fabrication of Steering System using Servo Motors
 
CNC Drilling Machine for Printed Circuit Board
CNC Drilling Machine for Printed Circuit BoardCNC Drilling Machine for Printed Circuit Board
CNC Drilling Machine for Printed Circuit Board
 
SMART LATHE MACHINE
SMART LATHE MACHINESMART LATHE MACHINE
SMART LATHE MACHINE
 
Design-and-Implementation-of-an-Improved-Automatic-DC-Motor-Speed-Control-Sys...
Design-and-Implementation-of-an-Improved-Automatic-DC-Motor-Speed-Control-Sys...Design-and-Implementation-of-an-Improved-Automatic-DC-Motor-Speed-Control-Sys...
Design-and-Implementation-of-an-Improved-Automatic-DC-Motor-Speed-Control-Sys...
 
Speed control of single phase induction motor by android bluetooth
Speed control of single phase induction motor by android bluetoothSpeed control of single phase induction motor by android bluetooth
Speed control of single phase induction motor by android bluetooth
 
IRJET - Mobile Application Base Voice Command Wireless CNC Writing Machine
IRJET - Mobile Application Base Voice Command Wireless CNC Writing MachineIRJET - Mobile Application Base Voice Command Wireless CNC Writing Machine
IRJET - Mobile Application Base Voice Command Wireless CNC Writing Machine
 

Mehr von ijtsrd

‘Six Sigma Technique’ A Journey Through its Implementation
‘Six Sigma Technique’ A Journey Through its Implementation‘Six Sigma Technique’ A Journey Through its Implementation
‘Six Sigma Technique’ A Journey Through its Implementation
ijtsrd
 
Dynamics of Communal Politics in 21st Century India Challenges and Prospects
Dynamics of Communal Politics in 21st Century India Challenges and ProspectsDynamics of Communal Politics in 21st Century India Challenges and Prospects
Dynamics of Communal Politics in 21st Century India Challenges and Prospects
ijtsrd
 
Assess Perspective and Knowledge of Healthcare Providers Towards Elehealth in...
Assess Perspective and Knowledge of Healthcare Providers Towards Elehealth in...Assess Perspective and Knowledge of Healthcare Providers Towards Elehealth in...
Assess Perspective and Knowledge of Healthcare Providers Towards Elehealth in...
ijtsrd
 
The Impact of Digital Media on the Decentralization of Power and the Erosion ...
The Impact of Digital Media on the Decentralization of Power and the Erosion ...The Impact of Digital Media on the Decentralization of Power and the Erosion ...
The Impact of Digital Media on the Decentralization of Power and the Erosion ...
ijtsrd
 
Problems and Challenges of Agro Entreprenurship A Study
Problems and Challenges of Agro Entreprenurship A StudyProblems and Challenges of Agro Entreprenurship A Study
Problems and Challenges of Agro Entreprenurship A Study
ijtsrd
 
Comparative Analysis of Total Corporate Disclosure of Selected IT Companies o...
Comparative Analysis of Total Corporate Disclosure of Selected IT Companies o...Comparative Analysis of Total Corporate Disclosure of Selected IT Companies o...
Comparative Analysis of Total Corporate Disclosure of Selected IT Companies o...
ijtsrd
 
A Study on the Effective Teaching Learning Process in English Curriculum at t...
A Study on the Effective Teaching Learning Process in English Curriculum at t...A Study on the Effective Teaching Learning Process in English Curriculum at t...
A Study on the Effective Teaching Learning Process in English Curriculum at t...
ijtsrd
 
The Role of Mentoring and Its Influence on the Effectiveness of the Teaching ...
The Role of Mentoring and Its Influence on the Effectiveness of the Teaching ...The Role of Mentoring and Its Influence on the Effectiveness of the Teaching ...
The Role of Mentoring and Its Influence on the Effectiveness of the Teaching ...
ijtsrd
 
Design Simulation and Hardware Construction of an Arduino Microcontroller Bas...
Design Simulation and Hardware Construction of an Arduino Microcontroller Bas...Design Simulation and Hardware Construction of an Arduino Microcontroller Bas...
Design Simulation and Hardware Construction of an Arduino Microcontroller Bas...
ijtsrd
 
Sustainable Energy by Paul A. Adekunte | Matthew N. O. Sadiku | Janet O. Sadiku
Sustainable Energy by Paul A. Adekunte | Matthew N. O. Sadiku | Janet O. SadikuSustainable Energy by Paul A. Adekunte | Matthew N. O. Sadiku | Janet O. Sadiku
Sustainable Energy by Paul A. Adekunte | Matthew N. O. Sadiku | Janet O. Sadiku
ijtsrd
 
Concepts for Sudan Survey Act Implementations Executive Regulations and Stand...
Concepts for Sudan Survey Act Implementations Executive Regulations and Stand...Concepts for Sudan Survey Act Implementations Executive Regulations and Stand...
Concepts for Sudan Survey Act Implementations Executive Regulations and Stand...
ijtsrd
 
Towards the Implementation of the Sudan Interpolated Geoid Model Khartoum Sta...
Towards the Implementation of the Sudan Interpolated Geoid Model Khartoum Sta...Towards the Implementation of the Sudan Interpolated Geoid Model Khartoum Sta...
Towards the Implementation of the Sudan Interpolated Geoid Model Khartoum Sta...
ijtsrd
 
Activating Geospatial Information for Sudans Sustainable Investment Map
Activating Geospatial Information for Sudans Sustainable Investment MapActivating Geospatial Information for Sudans Sustainable Investment Map
Activating Geospatial Information for Sudans Sustainable Investment Map
ijtsrd
 
Educational Unity Embracing Diversity for a Stronger Society
Educational Unity Embracing Diversity for a Stronger SocietyEducational Unity Embracing Diversity for a Stronger Society
Educational Unity Embracing Diversity for a Stronger Society
ijtsrd
 
DeepMask Transforming Face Mask Identification for Better Pandemic Control in...
DeepMask Transforming Face Mask Identification for Better Pandemic Control in...DeepMask Transforming Face Mask Identification for Better Pandemic Control in...
DeepMask Transforming Face Mask Identification for Better Pandemic Control in...
ijtsrd
 

Mehr von ijtsrd (20)

‘Six Sigma Technique’ A Journey Through its Implementation
‘Six Sigma Technique’ A Journey Through its Implementation‘Six Sigma Technique’ A Journey Through its Implementation
‘Six Sigma Technique’ A Journey Through its Implementation
 
Edge Computing in Space Enhancing Data Processing and Communication for Space...
Edge Computing in Space Enhancing Data Processing and Communication for Space...Edge Computing in Space Enhancing Data Processing and Communication for Space...
Edge Computing in Space Enhancing Data Processing and Communication for Space...
 
Dynamics of Communal Politics in 21st Century India Challenges and Prospects
Dynamics of Communal Politics in 21st Century India Challenges and ProspectsDynamics of Communal Politics in 21st Century India Challenges and Prospects
Dynamics of Communal Politics in 21st Century India Challenges and Prospects
 
Assess Perspective and Knowledge of Healthcare Providers Towards Elehealth in...
Assess Perspective and Knowledge of Healthcare Providers Towards Elehealth in...Assess Perspective and Knowledge of Healthcare Providers Towards Elehealth in...
Assess Perspective and Knowledge of Healthcare Providers Towards Elehealth in...
 
The Impact of Digital Media on the Decentralization of Power and the Erosion ...
The Impact of Digital Media on the Decentralization of Power and the Erosion ...The Impact of Digital Media on the Decentralization of Power and the Erosion ...
The Impact of Digital Media on the Decentralization of Power and the Erosion ...
 
Online Voices, Offline Impact Ambedkars Ideals and Socio Political Inclusion ...
Online Voices, Offline Impact Ambedkars Ideals and Socio Political Inclusion ...Online Voices, Offline Impact Ambedkars Ideals and Socio Political Inclusion ...
Online Voices, Offline Impact Ambedkars Ideals and Socio Political Inclusion ...
 
Problems and Challenges of Agro Entreprenurship A Study
Problems and Challenges of Agro Entreprenurship A StudyProblems and Challenges of Agro Entreprenurship A Study
Problems and Challenges of Agro Entreprenurship A Study
 
Comparative Analysis of Total Corporate Disclosure of Selected IT Companies o...
Comparative Analysis of Total Corporate Disclosure of Selected IT Companies o...Comparative Analysis of Total Corporate Disclosure of Selected IT Companies o...
Comparative Analysis of Total Corporate Disclosure of Selected IT Companies o...
 
The Impact of Educational Background and Professional Training on Human Right...
The Impact of Educational Background and Professional Training on Human Right...The Impact of Educational Background and Professional Training on Human Right...
The Impact of Educational Background and Professional Training on Human Right...
 
A Study on the Effective Teaching Learning Process in English Curriculum at t...
A Study on the Effective Teaching Learning Process in English Curriculum at t...A Study on the Effective Teaching Learning Process in English Curriculum at t...
A Study on the Effective Teaching Learning Process in English Curriculum at t...
 
The Role of Mentoring and Its Influence on the Effectiveness of the Teaching ...
The Role of Mentoring and Its Influence on the Effectiveness of the Teaching ...The Role of Mentoring and Its Influence on the Effectiveness of the Teaching ...
The Role of Mentoring and Its Influence on the Effectiveness of the Teaching ...
 
Design Simulation and Hardware Construction of an Arduino Microcontroller Bas...
Design Simulation and Hardware Construction of an Arduino Microcontroller Bas...Design Simulation and Hardware Construction of an Arduino Microcontroller Bas...
Design Simulation and Hardware Construction of an Arduino Microcontroller Bas...
 
Sustainable Energy by Paul A. Adekunte | Matthew N. O. Sadiku | Janet O. Sadiku
Sustainable Energy by Paul A. Adekunte | Matthew N. O. Sadiku | Janet O. SadikuSustainable Energy by Paul A. Adekunte | Matthew N. O. Sadiku | Janet O. Sadiku
Sustainable Energy by Paul A. Adekunte | Matthew N. O. Sadiku | Janet O. Sadiku
 
Concepts for Sudan Survey Act Implementations Executive Regulations and Stand...
Concepts for Sudan Survey Act Implementations Executive Regulations and Stand...Concepts for Sudan Survey Act Implementations Executive Regulations and Stand...
Concepts for Sudan Survey Act Implementations Executive Regulations and Stand...
 
Towards the Implementation of the Sudan Interpolated Geoid Model Khartoum Sta...
Towards the Implementation of the Sudan Interpolated Geoid Model Khartoum Sta...Towards the Implementation of the Sudan Interpolated Geoid Model Khartoum Sta...
Towards the Implementation of the Sudan Interpolated Geoid Model Khartoum Sta...
 
Activating Geospatial Information for Sudans Sustainable Investment Map
Activating Geospatial Information for Sudans Sustainable Investment MapActivating Geospatial Information for Sudans Sustainable Investment Map
Activating Geospatial Information for Sudans Sustainable Investment Map
 
Educational Unity Embracing Diversity for a Stronger Society
Educational Unity Embracing Diversity for a Stronger SocietyEducational Unity Embracing Diversity for a Stronger Society
Educational Unity Embracing Diversity for a Stronger Society
 
Integration of Indian Indigenous Knowledge System in Management Prospects and...
Integration of Indian Indigenous Knowledge System in Management Prospects and...Integration of Indian Indigenous Knowledge System in Management Prospects and...
Integration of Indian Indigenous Knowledge System in Management Prospects and...
 
DeepMask Transforming Face Mask Identification for Better Pandemic Control in...
DeepMask Transforming Face Mask Identification for Better Pandemic Control in...DeepMask Transforming Face Mask Identification for Better Pandemic Control in...
DeepMask Transforming Face Mask Identification for Better Pandemic Control in...
 
Streamlining Data Collection eCRF Design and Machine Learning
Streamlining Data Collection eCRF Design and Machine LearningStreamlining Data Collection eCRF Design and Machine Learning
Streamlining Data Collection eCRF Design and Machine Learning
 

Kürzlich hochgeladen

Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
kauryashika82
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
heathfieldcps1
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global Impact
PECB
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
heathfieldcps1
 

Kürzlich hochgeladen (20)

INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptxINDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.
 
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17  How to Extend Models Using Mixin ClassesMixin Classes in Odoo 17  How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibit
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.ppt
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptx
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104
 
Unit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxUnit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptx
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
 
Asian American Pacific Islander Month DDSD 2024.pptx
Asian American Pacific Islander Month DDSD 2024.pptxAsian American Pacific Islander Month DDSD 2024.pptx
Asian American Pacific Islander Month DDSD 2024.pptx
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global Impact
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy Consulting
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and Mode
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdf
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
 
Class 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfClass 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdf
 

PC Based DC Motor Speed Control using PID for Laboratory

  • 1. International Journal of Trend in Scientific Research and Development (IJTSRD) Volume 3 Issue 5, August 2019 Available Online: www.ijtsrd.com e-ISSN: 2456 – 6470 @ IJTSRD | Unique Paper ID – IJTSRD27898 | Volume – 3 | Issue – 5 | July - August 2019 Page 2398 PC Based DC Motor Speed Control using PID for Laboratory Kyaw Zin Latt, Than Htike Aung, Zaw Min Min Htun Department of Electronic Engineering Mandalay, Technological University, Mandalay, Myanmar How to cite this paper: Kyaw Zin Latt | Than Htike Aung | Zaw Min Min Htun "PC Based DC Motor Speed Control using PID for Laboratory" Published in International Journal of Trend in Scientific Research and Development (ijtsrd), ISSN: 2456- 6470, Volume-3 | Issue-5, August 2019, pp.2398-2400, https://doi.org/10.31142/ijtsrd27898 Copyright © 2019 by author(s) and International Journal ofTrend inScientific Research and Development Journal. This is an Open Access article distributed under the terms of the Creative Commons Attribution License (CC BY 4.0) (http://creativecommons.org/licenses/by /4.0) ABSTRACT In this paper, PC based DC motor speed control using PID (proportional, Integral, derivative) control algorithm for laboratory. Arduino Uno microcontroller and L298N hybrid motor driver module are used to drive the dc motor. PID algorithm is uploaded to arduino and proportional gain (kp), Integral gain (ki), and derivative gain ( kd) can be set and tuned via windows form application in computer. This application is developed by using c# programming. The desired speed and PID gains are set by computer anddrive the DC motor. The speed of the motor can retrieve by using encoder which is included in DC motor. By using this work, student can learn how to controlthe speed of DC motor using PID controller and how to tune the gains. KEYWORDS: PID, C#, arduino uno, L298n, windows form application I. INTRODUCTION Nowadays, DC motors have been widely used in industry even though its maintenance costs are higher than the induction motor. A DC motor is any of a class of rotary electrical machines that converts directcurrent electricalenergy into mechanical energy. The most commontypes relyontheforces produced by magnetic fields. Nearly all types of DC motors have some internal mechanism, either electromechanical or electronics, to periodically change the direction of current flow in part of the motor. [1] The speed of the DC motor is controlled by using pulse width modulation (PWM), a technique of rapidly pulsingthe power on off. Arduino microcontroller is used to receive the data, revolution per minutes, proportionalgain,integralgain and derivative gain, from computer. Proportional-Integral Derivative (PID) controllershavebeenwidely usedforspeed and position control of DC motor [3]. The objective of this paper is to show that by employing the PID gains tuning system from graphical user interface (GUI) to get the optimization can be achieved [5]. The students can tune the PID gains from GUI. This GUI was developed by C# windows form application [4]. II. Operation Principle A. Operation Principle The overall block diagram is shown in Figure 1. The main objective of this work is to control DC motor using PID control algorithm and tune the PID gains from computer for laboratory. This training board consists of four components, computer, arduino, L298N hybrid motor driver and namiki DC motor. To control the speed of DC motor, student can start the motor by using computer and monitor the speed of motor from C# windows form application. And then, students can tune the PID gains from this form and test the response of speed of the DC motor. PID control algorithm is written in arduino Uno microcontroller and drive the DC motor by using L298N motor driver. From Graphical User Interface in computer set the gains and revolution per minute shown in Figure 2. Figure1. Overall design of PC based DC speed control Figure2. Experiment for DC motor speed control III. PROPORTIONAL-INTEGRAL-DERIVATIVE CONTROLLER A. Proportional response The proportional component depends only onthedifference between the set point and the process variable. This difference is referred to as the Error term. The proportional gain determines the ratio of output response to the error IJTSRD27898
  • 2. International Journal of Trend in Scientific Research and Development (IJTSRD) @ www.ijtsrd.com eISSN: 2456-6470 @ IJTSRD | Unique Paper ID – IJTSRD27898 | Volume – 3 | Issue – 5 | July - August 2019 Page 2399 signal. For instance, if the error term has a magnitude of 10, a proportional gain of 5 would produce a proportional response of 50. In general, increasing the proportional gain will increase the speed of the control system response. However, if the proportional gain is too large, the process variable will begin to oscillate. In contrast, a small gain results in a small output response to a large input error. 𝑃𝑜𝑢𝑡 = 𝑘𝑝 𝑒(𝑡) B. Integral Response The integral component sums the error term over time. The result is that even a small error term will cause the integral component to increase slowly. The integral response will continually increase over time unless the erroris zero,sothe effect is to drive the Steady-State error to zero. Steady-State error is the final difference betweentheprocess variable and set point. A phenomenon called integral windup results when integral action saturates a controller without the controller driving the error signal toward zero. 𝐼𝑜𝑢𝑡 = 𝑒(𝑡)𝑑𝑡 C. Derivative Response The derivative component causes the output to decrease if the process variable is increasing rapidly. The derivative response is proportional to the rate of change of the process variable. Increasing the derivative time parameterwill cause the control system to react more strongly to changes in the error term and will increase the speed of the overall control system response. Most practical control systems use very small derivative time, because the derivative response is highly sensitive to noise in the process variable signal. If the sensor feedback signal is noisy or if the control loop rate is too slow, the derivative response can make the control system unstable. The concept of PID controller isdepicted in Figure 3. 𝐷𝑜𝑢𝑡 = 𝑘𝑑 𝑑𝑒(𝑡) 𝑑𝑡 Figure3. PID controller IV. HARDWARE AND SOFTWARE COMPONENTS A. Arduino Uno Arduino is a microcontroller and open-sourceplatformused for building electronics projects. Arduino consists of both a physical programmable circuit boardanda pieceofsoftware component, or IDE (Integrated Development Environment) that runs on your computer, used to write and upload computer code to the physical board. The Arduino platform has become quite popular with people just starting out with electronics, and for good reason. Unlike most previous programmable circuit boards, the Arduino does not need a separate piece of hardware (called a programmer) in order to load new code onto the board you can simply use a USB cable. Additionally, the ArduinoIDEusesa simplifiedversion of C++, making it easier to learn to program. Finally,Arduino provides a standard formfactorthatbreaksout thefunctions of the micro-controller into a more accessible package. Figure6. Arduino Uno microcontroller B. L298N Dual H-Bridge Motor Driver This dual bidirectional motor driver, Figure 4, is based on the very popular L298 Dual H-Bridge Motor Driver Integrated Circuit. The circuit will allow to easily and independently control two motors of up to 2A each in both directions. It is ideal for robotic applications and well suited for connection to a microcontroller requiringjust acoupleof control lines per motor. It can also be interfaced with simple manual switches, TTL logic gates, relays, etc. This board equipped with power LED indicators, on-board +5V regulator and protection diodes. Figure4. L298N hybrid motor driver C. Namiki precision motor The 12V Namiki DC gear-motor shown in Fig. 5 is a powerful motor to drive the position control system. It comeswith the photoelectric encoder output and planetary gear ratio reduced by 80:1 gear. It can provide 120 rpm with the rated voltage of 12VDC [3]. To read the count values from the encoder, the user would check the condition of channel A and B rotation applying by experiment. For the rotor shaft count per revolution values, it is very important to multiply the gear ratio by count values. The specificationofthemotor is shown in Table 1.
  • 3. International Journal of Trend in Scientific Research and Development (IJTSRD) @ www.ijtsrd.com eISSN: 2456-6470 @ IJTSRD | Unique Paper ID – IJTSRD27898 | Volume – 3 | Issue – 5 | July - August 2019 Page 2400 Figure5. Namiki DC motor with encoder Table1. Specification of namiki motor Brand: Namiki Coreless Motor (Japan) Model: 22CL-3501PG Operating Voltage: 12VDC Rated power: 15W Stall torque: 16.5kg*cm Continuous torque: 5kg*cm Diameter: 22mm Shaft length: 19mm (with 90 degree double-cut) Length: 65mm (includes encoder gear box) Stall current: 1.8A Reduction ratio: 80:1(metal planetary reduction gear) Output speed: 120 RPM@12VDC D. C# programming Language C# is a hybrid of C and C++, it is a Microsoft programming language developed tocompletewithSun’s javalanguage. C# programming language, windows form applications, web applications and network application can be developed. In this work, windows form application was developed. C # is an object-oriented programming language used with web service on the .Net platform and designed for development of web application. C# boasts type-safety, interoperability, garbage collection, simplified type declarations, versioning and scalability support, and other features that make developing solutions faster and easier, especially for COM+ and Web services. Microsoft critics have pointed to the similarities betweenC# and Java. V. RESULTS Experiment for PC based DC motorspeed controlis shownin Figure 6. Desired revolution per minutes and respectivePID gains send to microcontroller and drive the motor. The actual revolution per minutes of DC motor can be calculated by using encoder pulses. This RPM is sent from microcontroller to PC via universal serial bus cable and display in GUI. Figure 6 shows the comparison of desired rpm and actual rpm graph. According to this figure, the speed of the DC motor with encoder can be control via computer by employing the gains of PID. Figure6. GUI for PC based DC motor speed control using PID VI. CONCLUSION PC based DC motor speed control using PID control algorithm was designed and implemented for laboratory. Student can control the speed of DC encoder motor andtune and the PID gains, kp, ki, kd from C# the windows form application. And then, the output RPM of DC motor can be monitored from PC. So, this work is effectiveand efficientfor the students. Teacher also can explain the PID algorithm using this training board. ACKNOWLEDGMENT I would like to express my gratitude to all the teachers from the department of Electronic Engineering, Mandalay Technological University for their suggestions. VII. REFERENCES [1] Liu Jiang-yi1, a, Sun Shu-ying2, “Design and Implementation of Servo Motor Speed Control SystemBased on STM32”, Applied Mechanics and Materials Vols. 427-429 (2013) pp 999-1002,2013 [2] Dinesh Bista,“ Understanding and Design of an Arduino-based PID Controller”, Virginia Commonwealth University, 2016 [3] https://www.aliexpress.com/item/32813911637.html [4] https://docs.microsoft.com/en- us/dotnet/csharp/programming-guide/ [5] Myo Maung Maung*, Maung Maung Latt**, Chaw Myat Nwe**,” DC Motor Angular Position Control using PID Controller with Friction Compensation”, International Journal of Scientific and ResearchPublications,Volume 8, Issue 11, 149 ISSN 2250-3153, November 2018