POSITION CONTROL OF A DC MOTOR USING PID CONTROLLER

Similar documents
Time Response Analysis of DC Motor using Armature Control Method and Its Performance Improvement using PID Controller

DCMS DC MOTOR SYSTEM User Manual

dspace DSP DS-1104 based State Observer Design for Position Control of DC Servo Motor

Drivetech, Inc. Innovations in Motor Control, Drives, and Power Electronics

Technical Guide No High Performance Drives -- speed and torque regulation

FUZZY Based PID Controller for Speed Control of D.C. Motor Using LabVIEW

EDUMECH Mechatronic Instructional Systems. Ball on Beam System

EE 402 RECITATION #13 REPORT

PID Control. Proportional Integral Derivative (PID) Control. Matrix Multimedia 2011 MX009 - PID Control. by Ben Rowland, April 2011

Simulation of VSI-Fed Variable Speed Drive Using PI-Fuzzy based SVM-DTC Technique

The Design of DSP controller based DC Servo Motor Control System

Active Vibration Isolation of an Unbalanced Machine Spindle

Manufacturing Equipment Modeling

How to Turn an AC Induction Motor Into a DC Motor (A Matter of Perspective) Steve Bowling Application Segments Engineer Microchip Technology, Inc.

Mathematical Modeling and Dynamic Simulation of a Class of Drive Systems with Permanent Magnet Synchronous Motors

Implementation of Fuzzy and PID Controller to Water Level System using LabView

Motor Control. Suppose we wish to use a microprocessor to control a motor - (or to control the load attached to the motor!) Power supply.

Using Arduino Microcontrollers to Sense DC Motor Speed and Position

A Study of Speed Control of PMDC Motor Using Auto-tuning of PID Controller through LabVIEW

Pulse Width Modulated (PWM) Drives. AC Drives Using PWM Techniques

Reactive Power Control of an Alternator with Static Excitation System Connected to a Network

Principles of Adjustable Frequency Drives

TwinCAT NC Configuration

Pulse Width Modulated (PWM)

STEPPER MOTOR SPEED AND POSITION CONTROL

System Modeling and Control for Mechanical Engineers

Control System Definition

Lab 14: 3-phase alternator.

Micro-Step Driving for Stepper Motors: A Case Study

P545 Autonomous Cart

Microcontroller-based experiments for a control systems course in electrical engineering technology

Current Loop Tuning Procedure. Servo Drive Current Loop Tuning Procedure (intended for Analog input PWM output servo drives) General Procedure AN-015

MATHEMATICAL MODELING OF BLDC MOTOR WITH CLOSED LOOP SPEED CONTROL USING PID CONTROLLER UNDER VARIOUS LOADING CONDITIONS

Table 1 Comparison of DC, Uni-Polar and Bi-polar Stepper Motors

Motors and Generators

Motor Control Application Tuning (MCAT) Tool for 3-Phase PMSM

Linear Motion vs. Rotational Motion

INDUCTION REGULATOR. Objective:

GENERAL POWER SYSTEM WIRING PRACTICES APPLIED TO TECNADYNE DC BRUSHLESS MOTORS

MECE 102 Mechatronics Engineering Orientation

Three Channel Optical Incremental Encoder Modules Technical Data

OPTICAL COMMUNICATION BASED STEPPER MOTOR CONTROL USING PULSE WIDTH MODULATION

Electronic Speed Variator for a Brushless DC Motor

Stabilizing a Gimbal Platform using Self-Tuning Fuzzy PID Controller

SYNCHRONOUS MACHINES

HITACHI INVERTER SJ/L100/300 SERIES PID CONTROL USERS GUIDE

ECE 495 Project 3: Shocker Actuator Subsystem and Website Design. Group 1: One Awesome Engineering

Servo Info and Centering

REMOTE HOST PROCESS CONTROL AND MONITORING OF INDUSTRY APPLIANCES

A 5 Degree Feedback Control Robotic Arm (Haptic Arm)

FRC WPI Robotics Library Overview

Study of Effect of P, PI Controller on Car Cruise Control System and Security

Speed Control Methods of Various Types of Speed Control Motors. Kazuya SHIRAHATA

Transient analysis of integrated solar/diesel hybrid power system using MATLAB Simulink

ETEC Digital Controls PIC Lab 10 Pulse Width Modulation

Outline Servo Control

Servo Motors (SensorDAQ only) Evaluation copy. Vernier Digital Control Unit (DCU) LabQuest or LabPro power supply

Frequency Response of Filters

INSTRUMENTATION AND CONTROL TUTORIAL 2 ELECTRIC ACTUATORS

Optical Encoders. K. Craig 1. Actuators & Sensors in Mechatronics. Optical Encoders

Flow Charts and Servomotors (background to Lab #2) Things to learn about: flow charts for design. MECH Lecture #2 flow charts & servos rev2

Power Electronics. Prof. K. Gopakumar. Centre for Electronics Design and Technology. Indian Institute of Science, Bangalore.

Experiment 8 : Pulse Width Modulation

Online Tuning of Artificial Neural Networks for Induction Motor Control

Raghavendra Reddy D 1, G Kumara Swamy 2

What Is Regeneration?

DIRECT CURRENT GENERATORS

Lab Session 4 Introduction to the DC Motor

Equipment: Power Supply, DAI, Synchronous motor (8241), Electrodynamometer (8960), Tachometer, Timing belt.

Synchronous motor. Type. Non-excited motors

Advantages of Auto-tuning for Servo-motors

DESIGN OF 6 DOF ROBOTIC ARM CONTROLLED OVER THE INTERNET

Parametric variation analysis of CUK converter for constant voltage applications

Mini-Lab Projects in the Undergraduate Classical Controls Course

Mathematical Modelling of PMSM Vector Control System Based on SVPWM with PI Controller Using MATLAB

The quadrature signals and the index pulse are accessed through five inch square pins located on 0.1 inch centers.

INTRODUCTION TO SERIAL ARM

An overview of Computerised Numeric Control (C.N.C.) and Programmable Logic Control (P.L.C.) in machine automation

A Fuzzy-Based Speed Control of DC Motor Using Combined Armature Voltage and Field Current

Modelling, Simulation and Performance Analysis of A Variable Frequency Drive in Speed Control Of Induction Motor

Motor Control using NXP s LPC2900

Simulation and Analysis of PWM Inverter Fed Induction Motor Drive

ARCHITECTURE OF INDUSTRIAL AUTOMATION SYSTEMS

Force/position control of a robotic system for transcranial magnetic stimulation

Available online at Available online at

Application Note AN-1187

DC Motor with Shaft Encoder

Chapter 11 SERVO VALVES. Fluid Power Circuits and Controls, John S.Cundiff, 2001

Speed Control of field oriented induction motor using DsPIC Controller

Chapter 10 Rotational Motion. Copyright 2009 Pearson Education, Inc.

Performance Analysis of Speed Control of Direct Current (DC) Motor using Traditional Tuning Controller

Lab 8: DC generators: shunt, series, and compounded.

Lab 7: Operational Amplifiers Part I

Chapter 6: From Digital-to-Analog and Back Again

Industrial Automation Training Academy. PLC, HMI & Drives Training Programs Duration: 6 Months (180 ~ 240 Hours)

LOSSELESS STARTING METHOD FOR THE WOUND ROTOR INDUCTION MOTOR

Brushless DC Motor Speed Control using both PI Controller and Fuzzy PI Controller

KINETIC ENERGY RECOVERY SYSTEM BY MEANS OF FLYWHEEL ENERGY STORAGE

Transcription:

POSITION CONTROL OF A DC MOTOR USING PID CONTROLLER Samadhi Manasa 1, Swapna Rani.T 2, M. Veda chary 3 1 PG Scholar, 2 Assistant Professor,3 2 Associate Professor Department of ECE, CMR College of Engineering & Technology, Hyderabad ABSTRACT: The main objective of this paper is to control the position of a DC motor by using Proportional-Integral-Derivative (PID) algorithm implemented on ARM CORTEX M3 microcontroller. PID attempts to correct the error between the measured position and the desired position by calculating the error and then outputting a pulse width modulated voltage that can adjust the position accordingly. The PID algorithm that is added to the system becomes a closed loop system. By integrating the PID controller to the DC motor we will be able to correct the error made by the DC motor and control the position of the motor to the desired point. PID parameters Kp, Ki and Kd are finely tuned to optimal values by trial and error method.and then a CORTEX M3 microcontroller is programmed by adding the finely tuned PID algorithm to control the position of DC motor. KEYWORDS: PID Controller, Cortex M3, Optical Encoder, Pulse Width Modulation, Quadrature Encoder Interface. I. INTRODUCTION There are many different DC motor types in the market and all with it good and bad attributes. One such bad attribute is the lag of efficiency. In order to overcome this problem a controller is introduced to the system. There are also many types of controllers 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 the position of the motor to the desired speed or point. Electronic analog controllers can be made from a solid-state or tube amplifier, a capacitor and a resistance. Electronic analog PID control loops were often found within more complex electronic systems. However, nowadays, electronic controllers have largely been replaced by digital controllers implemented with microcontrollers or FPGAs. In this project, PID controller is chosen as the controller for the DC motor. This is because PID controller helps get the output, where we want it in a short time, with minimal overshoot and little error. II. DESIGN REQUIREMENTS We must be able to position the motor very precisely, thus the steady state error due to motor position should be zero. We will also want the steady state error due to a disturbance to be zero as well. The other performance requirement is that the motor must reach its final position very quickly. In this case, we want it to have a settling time of 40ms.We also want to have an overshoot smaller than 16 %.If we simulate the reference input by a unit step input, then the motor position output should have a step response with the above mentioned requirements. III. SYSTEM DESCRIPTION DRIVER 436

Fig 1: Block diagram This board drives the quadrature encoder dc motor. It uses PID method for position control, by accepting serial commands on 38400BPS, 8, N, 1.It is interfaced to computer s serial port via TTL/level converter.on the other side it is directly interfaced to microcontroller s UART. Driver accepts the commands from the host to position the motor at required using hyper terminal software. MOTOR WITH OPTICAL ENCODER Fig 2: Block Diagram of Shaft Encoder An optical encoder/quadrature encoder, also known as a 2-channel incremental encoder, converts angular displacement into two pulse signals. By monitoring both the number of pulses and the relative phase of the two signals, we can track the position, direction of rotation, and velocity. The encoder disk is firmly connected to the back-shaft of the motor, so that both the shaft and the encoder disk rotate at the same r.p.m. The rotation of the motor causes the beam of light to be periodically intercepted by the solid parts of the encoder disk creating a sequence of pulses of light that will be translated by the photo couple s receiver into pulses of electricity. LPC 1768-CORTEX M3 The quadrature encoder interface of LPC 1768 decodes the digital pulses from a quadrature encoder wheel to integrate position over time and determine direction of rotation. In addition, the QEI can capture the velocity of the encoder wheel. UART 437

transmits serial commands to position the motor. If the motor turns faster than the required velocity, the controller will deliver less power to the motor and if motor turns slower than the required velocity, the controller will deliver more power to the motor. Controlling the electrical power delivered to the motor is usually done by Pulse Width Modulation. IV. PID CONTROLLER DESIGN Fig 3: Position Control System The steps to be followed to design a PID Controller [1] are, Obtain open loop response from the mathematical model of DC Motor and determine what needs to be improved. Add a proportional constant to improve the rise time. Add a derivative control to improve the overshoot. Add an integral control to eliminate the steady state error. Adjust each of K p, K d, K i until the design requirements are met. 438

Fig 4: Flow Diagram of PID Algorithm MODELING DC MOTOR POSITION Electric circuit of armature and free body diagram of rotor is shown below. Fig 5: Schematic of DC Motor Motor s physical parameters are usually specified by the manufacturer. SYSTEM EQUATIONS Motor torque T is related to armature current-i by a constant factor K t [2] as follows T = K t.i Back emf e is related to rotational velocity by; e = K e. By newton s law combined with kirchoff s laws, we can write J. +b. = K i L + R.i = V- K. Taking Laplace transform, we get JS 2 θ(s) +bs θ(s) = K.I(s) S(JS+b). θ(s) = K.I(s) 439

Similarly, (LS+R) I(s) =V(s) KS. θ(s) Here, θ(s) Rotating speed, output timer is set to execute two software routines every 1/10 th of a second (which is just an arbitrary value). One of these software routines is to recalculate the actual angle of the shaft or the total number of revolutions. V(s) voltage, input By solving the above two equations; = If position is the output, the position can be obtained by integrating i.e., we just need to divide the transfer function by S = These equations can be represented in state space form [3]. Choosing motor position, motor speed, armature current as state space variables, =. + Y= [1 0 0]. After obtaining the transfer function, PID parameters were obtained by trial and error method using MATLAB. Fig 6: Flow Diagram for Position Control of DC Motor Then, another software routine is executed to control the speed of the motor by comparing the number of counted pulses with a fixed number which is referred to as the required pulses. The required pulses corresponds to the desired speed, and the counted pulses corresponds to the actual speed of the motor. VI. RESULTS WITHOUT PID CONTROLLER V. IMPLEMENTATION In a closed loop system, a microcontroller will have two main tasks: Constantly adjust the average power delivered to the motor to reach the required velocity. Precisely calculate the position/angle of the motor s output shaft [4]. The shaft encoder will provide the microcontroller s internal counter with a sequence of pulses that correspond to the rotation of the motor. A 440

objective function that optimizes the PID Controller and dynamic response of the system to be controlled. It is demonstrated that the position of the DC Motor is accurately controlled due to the finely tuned PID parameters [8], and the motor could reach the required position as quickly as possible without any error. Fig 7: Step Response without PID Controller WITH PID CONTROLLER Despite the enormous interest that modern control techniques have sparked among academics during the last three or four decades, PID controllers are still preferred in industrial process control. The reason is that controllers designed with the aid of modern control techniques are usually of high order, difficult to implement, and virtually impossible to retune on line. PID controllers, on the other hand, are simple, easy to implement, and comparatively easy to re-tune on line. FUTURE SCOPE Another advantage of PID controllers is that two PID controllers can be used together to yield better dynamic performance. This is called cascaded PID control. In cascade control there are two PIDs arranged with one PID controlling the set point of another. A PID controller acts as outer loop controller, which controls the primary physical parameter, DC Motor speed. The other controller acts as inner loop controller, which reads the output of outer loop controller as set point. It can be mathematically proven that the working frequency of the controller is increased and the time constant of the object is reduced by using cascaded PID controller. REFERENCES Fig 8: Step Response with PID Controller VII. CONCLUSION AND FUTURE SCOPE CONCLUSION In this work, optimal PID parameters were obtained by trial and error method. The simulation results indicate that the presented approach works effectively and provides a good relation between the [1]. Chandra Shekhar Gohiya, S.S.Sadistap, S.A.Akbar, B.A.Botre Central, Design and Development of Digital PID Controller for DC Motor Drive System Using Embedded Platform for Mobile Robot, 978-1-4673-4529-3/12/$31.00 c 2012 IEEE, 2013 3rd IEEE International Advance Computing Conference (IACC). [2]. Control System Engineering by I.J. Nagrath and M. Gopal, New age International, 2010. 441

[3].A.Chowdhury, D.Debnath,NIT Agartala, DC Motor Position Control using State SpaceTechnique, ISSN 2348-5426, International Journal of Advances in Science and Technology (IJAST). [4]. Jose Carlos Gamozo-Real, Ernesto Vazquez- Sanchez and Jaime Gomez-Gil, Position and Speed Control of Brushless DC Motors Using Sensorless Techniques and Application Trends, ISSN1424-8220. [5]. Mohamed Farid Bin Mohamed Faruq, University Malaysia Pahang, PID Controller Design for Controlling DC Motor Speed Using MATLAB Application. [6]. Andrew KleeB.S., University of Central Florida, 2003, development of a motor speed control system using matlab and simulink, implemented with a digital signal processor. [7]. Benjamin J. Engle, Advisor: Dr. John Watkins,Wichita State University, MATLAB Based DC Motor Control Lab [8]. N. Bacac, V. Slukic, M. Puskaric, B. Stih, E. Kamenar, S. Zelenika,University of Rijeka, Comparison of different DC Motor Positioning Control Algorithms. 442