I J Seas 20150361
I J Seas 20150361
I J Seas 20150361
ISSN: 2395-3470
www.ijseas.com
ABSTRACT: The main objective of this paper is to the position of the motor to the desired speed or point.
control the position of a DC motor by using Electronic analog controllers can be made from a
Proportional-Integral-Derivative (PID) algorithm solid-state or tube amplifier, a capacitor and a
implemented on ARM CORTEX M3 microcontroller. resistance. Electronic analog PID control loops were
PID attempts to correct the error between the often found within more complex electronic systems.
measured position and the desired position by However, nowadays, electronic controllers have
calculating the error and then outputting a pulse largely been replaced by digital controllers
width modulated voltage that can adjust the position implemented with microcontrollers or FPGAs. In this
accordingly. The PID algorithm that is added to the project, PID controller is chosen as the controller for
system becomes a closed loop system. By integrating the DC motor. This is because PID controller helps get
the PID controller to the DC motor we will be able to the output, where we want it in a short time, with
correct the error made by the DC motor and control minimal overshoot and little error.
the position of the motor to the desired point. PID
parameters Kp , Ki and Kd are finely tuned to optimal II. DESIGN REQUIREMENTS
values by trial and error method .And then a CORTEX
We must be able to position the motor very
M3 microcontroller is programmed by adding the
precisely, thus the steady state error due to motor
finely tuned PID algorithm to control the position of
position should be zero. We will also want the steady
DC motor.
state error due to a disturbance to be zero as well. The
KEYWORDS: PID Controller, Cortex M3, Optical other performance requirement is that the motor must
Encoder, Pulse Width Modulation, Quadrature reach its final position very quickly. In this case, we
Encoder Interface. want it to have a settling time of 40ms.We also want
to have an overshoot smaller than 16 %.If we simulate
I. INTRODUCTION the reference input by a unit step input, then the motor
position output should have a step response with the
There are many different DC motor types in above mentioned requirements.
the market and all with it good and bad attributes. One
such bad attribute is the lag of efficiency. In order to III. SYSTEM DESCRIPTION
overcome this problem a controller is introduced to
the system. There are also many types of controllers DRIVER
used in the industry, one such controller is PID
controller. PID controller or proportional–integral–
derivative controller is a generic control loop feedback
mechanism widely used in industrial control systems.
A PID controller attempts to correct the error between
a measured process variable and a desired set point by
calculating and then outputting a corrective action that
can adjust the process accordingly. So by integrating
the PID controller to the DC motor we will be able to
correct the error made by the DC motor and control
436
International Journal of Scientific Engineering and Applied Science (IJSEAS) - Volume-1, Issue-3, June 2015
ISSN: 2395-3470
www.ijseas.com
LPC 1768-CORTEX M3
437
International Journal of Scientific Engineering and Applied Science (IJSEAS) - Volume-1, Issue-3, June 2015
ISSN: 2395-3470
www.ijseas.com
438
International Journal of Scientific Engineering and Applied Science (IJSEAS) - Volume-1, Issue-3, June 2015
ISSN: 2395-3470
www.ijseas.com
SYSTEM EQUATIONS
T = K t .i
'
L + R.i = V- K.
439
International Journal of Scientific Engineering and Applied Science (IJSEAS) - Volume-1, Issue-3, June 2015
ISSN: 2395-3470
www.ijseas.com
V. IMPLEMENTATION
REFERENCES
441
International Journal of Scientific Engineering and Applied Science (IJSEAS) - Volume-1, Issue-3, June 2015
ISSN: 2395-3470
www.ijseas.com
[3].A.Chowdhury , D.Debnath ,NIT Agartala ,” DC [6]. Andrew KleeB.S. , University of Central Florida,
Motor Position Control using State SpaceTechnique “ 2003, “development of a motor speed control system
, ISSN 2348-5426 , International Journal of Advances using matlab and simulink, implemented with a digital
in Science and Technology (IJAST). signal processor”.
[4]. Jose Carlos Gamozo-Real , Ernesto Vazquez- [7]. Benjamin J. Engle , Advisor: Dr. John Watkins
Sanchez and Jaime Gomez-Gil , “ Position and Speed ,Wichita State University , “ MATLAB Based DC
Control of Brushless DC Motors Using Sensorless Motor Control Lab “
Techniques and Application Trends “, ISSN1424-
8220. [8]. N. Bacac, V. Slukic, M. Puskaric, B. Stih, E.
Kamenar, S. Zelenika ,University of Rijeka,
[5]. Mohamed Farid Bin Mohamed Faruq, University ”Comparison of different DC Motor Positioning
Malaysia Pahang, “PID Controller Design for Control Algorithms”.
Controlling DC Motor Speed Using MATLAB
Application”.
442