International Journal of Innovative Science and Modern Engineering (IJISME)
ISSN: 2319-6386, Volume-3 Issue-3, February 2015
38
Published By:
Blue Eyes Intelligence Engineering
& Sciences Publication
Retrieval Number: C0808023315/2015©BEIESP
DC Motor Speed Control using PID Controller in
Lab View
Pratap S Vikhe, Neelam Punjabi, Chandrakant B Kadu
Abstract- Proportional-Integral-Derivative (PID) control is the
most common control algorithm used in industry and has been
universally accepted in industrial control. One of the applications
used here is to control the speed of the DC motor. Controlling the
speed of a DC motors is very important as any small change can
lead to instability of the closed loop system. The aim of this paper
is to show how DC motor can be controlled by using a PID
controller in LabVIEW. DC Motor will be interfaced with
LabVIEW using an ATmega 8A Microcontroller. The speed of
the DC motor will be set by creating a Graphic User Interface
(GUI) for PID Controller in LabVIEW. LabVIEW will send
serial command to the DC motor using the PWM pins on the
Microcontroller board. DC motor will move with the speed set by
the user in LabVIEW. The speed of the dc motor will be sensed
by using the IR sensor. From the sensor, the output is sent back
to the PID Controller in LabVIEW via ATmega Microcontroller.
PID Controller compares the actual speed of the DC motor with
the set speed. If its speed is not same, PID Controller will try to
minimize the error and bring the motor to the set point value [1].
Keywords: DC Motor, LabVIEW, PID Controller, IR Sensor,
Open-Loop, Closed-Loop
I. INTRODUCTION
DC (Direct Current) Motors are two wire (power &
ground), continuous rotation motors. When the supply
power is provided, a DC motor will start spinning until that
power is removed. Most DC motors run at a high RPM
(revolutions per minute), examples being computer cooling
fans, or radio controlled car wheels.
The speed of DC motors is controlled using pulse width
modulation (PWM), a technique of rapidly pulsing the
power on and off. The percentage of time spent cycling the
on/off ratio determines the speed of the motor, e.g. if the
power is cycled at 50% (half on, half off), then the motor
will spin at half the speed of 100% (fully on). Each pulse is
so rapid that the motor appears to be continuously spinning.
A control system is an interconnection of components
forming a system configuration that will provide a desired
system response. DC Motor will be interfaced with
LabVIEW using ATmega 8A Microcontroller. The role of
Microcontroller is to pass the set speed to the DC motor
using the PWM pins and to get the data (speed) from the
motor using the IR sensor through Interrupt.
This paper is organized as follows: Section I includes the
introduction to control system, dc motor and the IR sensor.
Manuscript Received on February 2015.
Pratap S Vikhe, Associate Professor, Instrumentation &Control
Engineering Department, Pravara Rural Engineering College, Loni,
Maharashtra, India.
Neelam Punjabi, Lecturer, Biomedical Engineering Department,
Vidyalankar Institute of Technology, Wadala, Maharashtra, India.
Chandrakant B Kadu, Associate, Instrumentation Engineering
Department, Pravara Rural Engineering College, Loni, Maharashtra, India.
Section II gives the basics of proportional integral and
derivative controller. Section III gives the Hardware
Implementation Section IV Implementation of Open-Loop
and Closed Loop in Lab VIEW Section V is Conclusion
showing the results obtained.
II. PID CONTROLLER
The proportional integral derivative (PID) controller is the
most common form of feedback used in the control systems.
The popularity of PID controllers can be attributed partly to
their robust performance in a wide range of operating
conditions and partly to their functional simplicity, which
allows engineers to operate them in a simple,
straightforward manner. It can be used for various Industrial
applications. As the name suggests, PID algorithm consists
of three basic coefficients; proportional, integral and
derivative which are varied to get optimal response [3].
Unlike a simple proportional control algorithm, the PID
controller is capable of manipulating the process inputs
based on the history and rate of change of the signal. This
gives a more accurate and stable control method [5]. The
basic idea is that the controller reads the system state by a
sensor. Then it subtracts the measurement from a desired
reference to generate the error value. The error will be
managed in three ways, to:
1. Handle the present, through the proportional term,
2. Recover from the past, using the integral term,
3. Anticipate the future, through the derivative term.
In this paper we will have shown an open loop system and a
closed loop system with PID system to control the DC
motor.
1. CONTROL SYSTEM
The basic idea behind a PID controller is to read a sensor,
then compute the desired actuator output by calculating
proportional, integral, and derivative responses and
summing those three components to compute the output [2].
2. OPEN LOOP SYSTEM
An open-loop controller, also called a non-feedback
controller, is a type of controller that computes its input into
a system using only the current state and its model of the
system. A characteristic of the open-loop controller is that it
does not use feedback to determine if its output has achieved
the desired goal of the input. This means that the system
does not observe the output of the processes that it is
controlling. An open-loop controller is often used in simple
processes because of its simplicity and low cost, especially
in systems where feedback is not critical.