Microcontroller Based Closed Loop Speed and Position Control of DC Motor

Similar documents
Speed Control of BLDC Motor Using FPGA

ANGULAR POSITION CONTROL OF DC MOTOR USING SHORTEST PATH ALGORITHM

PWM, ALT, HALT, HAST.

SIMULATION AND IMPLEMENTATION OF PID-ANN CONTROLLER FOR CHOPPER FED EMBEDDED PMDC MOTOR

Page ENSC387 - Introduction to Electro-Mechanical Sensors and Actuators: Simon Fraser University Engineering Science

Development of Variable Speed Drive for Single Phase Induction Motor Based on Frequency Control

ISSN Vol.05,Issue.01, January-2017, Pages:

Simulation Study of MOSFET Based Drive Circuit Design of Sensorless BLDC Motor for Space Vehicle

International Journal of Advance Engineering and Research Development

SPEED CONTROL OF INDUCTION MOTOR WITHOUT SPEED SENSOR AT LOW SPEED OPERATIONS

Effective Teaching Learning Process for PID Controller Based on Experimental Setup with LabVIEW

Renewable Energy Based Interleaved Boost Converter

Speed Control of DC Motor Using Microcontroller

SPEED CONTROL OF BRUSHLES DC MOTOR

SPEED CONTROL OF DC MOTOR USING PWM TECHNIQUE

Design of double loop-locked system for brush-less DC motor based on DSP

UG Student, Department of Electrical Engineering, Gurunanak Institute of Engineering & Technology, Nagpur

AN EXPERIMENTAL INVESTIGATION OF PFC BLDC MOTOR DRIVE USING BRIDGELESS CUK DERIVED CONVERTER

L E C T U R E R, E L E C T R I C A L A N D M I C R O E L E C T R O N I C E N G I N E E R I N G

Job Sheet 2 Servo Control

Simulation of Solar Powered PMBLDC Motor Drive

2.017 DESIGN OF ELECTROMECHANICAL ROBOTIC SYSTEMS Fall 2009 Lab 4: Motor Control. October 5, 2009 Dr. Harrison H. Chin

ARDUINO BASED DC MOTOR SPEED CONTROL

Open Loop Speed Control of Brushless DC Motor

Digital Control of Permanent Magnet Synchronous Motor

MICROCONTROLLERS Stepper motor control with Sequential Logic Circuits

DC motor control using arduino

SPEED SYNCHRONIZATION OF MASTER SLAVE D.C. MOTORS USING MICROCONTROLLER, FOR TEXTILE APPLICATIONS

Design and Implementation of a Microcontroller Based Buck Boost Converter as a Smooth Starter for Permanent Magnet Motor

ANN BASED ANGLE COMPUTATION UNIT FOR REDUCING THE POWER CONSUMPTION OF THE PARABOLIC ANTENNA CONTROLLER

Time Response Analysis of a DC Motor Speed Control with PI and Fuzzy Logic Using LAB View Compact RIO

Sensors and Sensing Motors, Encoders and Motor Control

ISSN: (Online) Volume 2, Issue 1, January 2014 International Journal of Advance Research in Computer Science and Management Studies

Modeling, Simulation and Implementation of Speed Control of DC Motor Using PIC 16F877A

combine regular DC-motors with a gear-box and an encoder/potentiometer to form a position control loop can only assume a limited range of angular

Design of Joint Controller Circuit for PA10 Robot Arm

REDUCTION OF HARMONIC DISTORTION IN BLDC DRIVE USING BL-BUCK BOOST CONVERTER BLDC DRIVE

Fuzzy Logic Based Speed Control System Comparative Study

Experiment Of Speed Control for an Electric Trishaw Based on PID Control Algorithm

Lab Exercise 9: Stepper and Servo Motors

Sensors and Sensing Motors, Encoders and Motor Control

MICROCONTROLLER BASED SPEED SYNCHRONIZATION OF MULTIPLE DC MOTORS IN TEXTILE APPLICATIONS

Project Proposal. Low-Cost Motor Speed Controller for Bradley ECE Department Robots L.C.M.S.C. By Ben Lorentzen

Micro Controller Based Ac Power Controller

ME375 Lab Project. Bradley Boane & Jeremy Bourque April 25, 2018

A NEW C-DUMP CONVERTER WITH POWER FACTOR CORRECTION FEATURE FOR BLDC DRIVE

Carlos L. Castillo Corley Building 114A

MathWorks Announces Built-in Simulink Support for Arduino, BeagleBoard, and LEGO MINDSTORMS NXT

Step vs. Servo Selecting the Best

MODEL BASED DESIGN OF PID CONTROLLER FOR BLDC MOTOR WITH IMPLEMENTATION OF EMBEDDED ARDUINO MEGA CONTROLLER

Fuzzy logic control implementation in sensorless PM drive systems

DC SERVO MOTOR CONTROL SYSTEM

Performance Enhancement of Sensorless Control of Z-Source Inverter Fed BLDC Motor

Where: (J LM ) is the load inertia referred to the motor shaft. 8.0 CONSIDERATIONS FOR THE CONTROL OF DC MICROMOTORS. 8.

Speed Control of Single Phase Induction Motor Using Infrared Receiver Module

SPEED CONTROL OF SENSORLESS BLDC MOTOR WITH FIELD ORIENTED CONTROL

A COMPARISON STUDY OF THE COMMUTATION METHODS FOR THE THREE-PHASE PERMANENT MAGNET BRUSHLESS DC MOTOR

DC Motor Speed Control using PID Controllers

ServoStep technology

Speed control of sensorless BLDC motor with two side chopping PWM

International Journal of Advance Engineering and Research Development. Wireless Control of Dc Motor Using RF Communication

Implementation of Brushless DC motor speed control on STM32F407 Cortex M4

Efficiency Optimization of Induction Motor Drives using PWM Technique

6545(Print), ISSN (Online) Volume 4, Issue 2, March April (2013), IAEME & TECHNOLOGY (IJEET)

SERVO MOTOR CONTROL TRAINER

DESIGN OF A TWO DIMENSIONAL MICROPROCESSOR BASED PARABOLIC ANTENNA CONTROLLER

Analysis of Indirect Temperature-Rise Tests of Induction Machines Using Time Stepping Finite Element Method

TRACK VOLTAGE APPROACH USING CONVENTIONAL PI AND FUZZY LOGIC CONTROLLER FOR PERFORMANCE COMPARISON OF BLDC MOTOR DRIVE SYSTEM FED BY CUK CONVERTER

Efficiency Optimized Brushless DC Motor Drive. based on Input Current Harmonic Elimination

Control Strategies for BLDC Motor

PROPORTIONAL INTEGRAL &DERIVATIVE CONTROLLER FOR BLDC MOTOR

International Journal of Intellectual Advancements and Research in Engineering Computations

PID Implementation on FPGA for Motion Control in DC Motor Using VHDL

Speed Control of DC Motor Using Soft Starter: A Review

Understanding RC Servos and DC Motors

SPEED CONTROL OF BRUSHLESS DC MOTOR USING FUZZY BASED CONTROLLERS

SIMULATION AND IMPLEMENTATION OF CURRENT CONTROL OF BLDC MOTOR BASED ON A COMMON DC SIGNAL

Controlling of Permanent Magnet Brushless DC Motor using Instrumentation Technique

Swinburne Research Bank

Industrial Fully Control Dc Motor Drive without Microcontroller. Four Quadrant Speed Control of DC Motor Using MOSFET and Push Button Switch

Exercise 5: PWM and Control Theory

A Comparative Study of Sinusoidal PWM and Space Vector PWM of a Vector Controlled BLDC Motor

Speed Feedback and Current Control in PWM DC Motor Drives

CHAPTER 6 CURRENT REGULATED PWM SCHEME BASED FOUR- SWITCH THREE-PHASE BRUSHLESS DC MOTOR DRIVE

Feedback Devices. By John Mazurkiewicz. Baldor Electric

An Investigation of Power Converters Fed BLDC Motor for Adjustable Speed

Digital PWM Techniques and Commutation for Brushless DC Motor Control Applications: Review

Mechatronics Engineering and Automation Faculty of Engineering, Ain Shams University MCT-151, Spring 2015 Lab-4: Electric Actuators

Controller based Electronic Speed Controller for MAV Propulsion System

Speed Rate Corrected Antenna Azimuth Axis Positioning System

Motor control using FPGA

ELECTRONIC CONTROL OF A.C. MOTORS

IN MANY industrial applications, ac machines are preferable

International Journal of Advanced Research in Electrical, Electronics and Instrumentation Engineering. (An ISO 3297: 2007 Certified Organization)

Speed Control of a Dc Motor Using a Chopper Drive

Integration of Linear Displacement Encoder and Servo Motor for 180 Ton Powder Compacting Press

Castle Creations, INC.

Design and Development of MPPT for Wind Electrical Power System under Variable Speed Generation Using Fuzzy Logic

The Research on Servo Control System for AC PMSM Based on DSP BaiLei1, a, Wengang Zheng2, b

DC Motor and Servo motor Control with ARM and Arduino. Created by:

Transcription:

International Journal of Engineering and Advanced Technology (IJEAT) ISSN: 2249 8958, Volume-3, Issue-5, June 2014 Microcontroller Based Closed Loop Speed and Position Control of DC Motor Panduranga Talavaru, Nagaraj Naik R, V. Kishore Kumar Reddy V Abstract Direct current (DC) motor has become an important drive configuration for many applications across a wide range of powers and speeds, due to its easy control and excellent performance. This project is mainly concerned on design and implementation of bidirectional dc motor speed and position control system by using microcontroller ATMEGA32 and Lab VIEW software. It is a closed-loop real time control system, where optical encoder is coupled to the motor shaft to provide the feedback speed signal and angular position of shaft to the microcontroller. Pulse Width Modulation (PWM) technique is used which is generated using microcontroller Atmega32 the PWM signal generated will drive the motor driver circuit. By varying the duty cycle the voltage across the motor is varied. Lab VIEW software is used to provide a graphic user interface (GUI) for the user to enter desired speed or desired angle. From the hardware results it is observed that the speed of dc motor remains constant irrespective of the load across it. The angular position control was on par with the desired values. Index Terms Mmicrocontroller ATMEGA32, Graphical User Interface, Pulse width modulation I. INTRODUCTION Developments of high performance motor drives are very essential for industrial applications. A high performance motor drive system must have good dynamic speed command tracking and load regulating response. DC motors provide excellent control of speed for acceleration and deceleration. The power supply of a DC motor connects directly to the field of the motor which allows for precise voltage control, which is necessary for speed, position and torque control applications. DC drives, because of their simplicity, ease of application, reliability and favorable cost have long been a backbone of industrial applications. DC drives are less complex as compared to AC drives system [1], [2]. Speed and position control of dc motor could be achieved using mechanical or electrical techniques. In the past, speed and position controls of dc drives are mostly mechanical, requiring large size hardware to implement. Advances in the area of power electronics have brought a total revolution in the speed and position control of dc drives [1]. The use of power electronics for the control of electric machines offers not only better performance caused by precise control and fast response, but also maintenance, and ease of implementation. Manuscript Received on June 2014. Panduranga Talavaru, Department of EEE, K S School of Engineering and Management, Bangalore, India. Nagaraj Naik R, Department of EEE, Dayanand Sagar College of Engineering, Bangalore, India. V Kishore Kumar Reddy V, Department of EEE, East Point College of Engineering and Technology, Bangalore, India. In parallel with the advance in power electronic there have been great advances in microcontroller-based control systems due to the microcontroller flexibility and versatility. This is because all the control algorithms are implemented in the software [2] - [3]. Now days, Induction motors, Brushless D.C motors and Synchronous motors have gained widespread use in electric traction system. Even then, there is a persistent effort towards making them behave like dc motors through innovative design and control techniques. Hence dc motors are always a good option for advanced control algorithm because the theory of dc motor speed control is extendable to other types of motors as well [4]. The motor speed can be controlled by controlling armature voltage and armature current. It is obvious that speed control is possible by varying. Flux per pole, Φ (Flux control). Resistance Ra of armature circuit (Rheostat Control). Applied voltage V (Voltage Control) [5]. The above methods have some demerits like a large amount of power is wasted in the controller resistance. Hence, efficiency is decreased. It needs expensive arrangement for dissipation of heat produced in the controller resistance. By these data that are acquainted we can draw a conclusion that these electric and electromechanical methods are less adaptive so electronic techniques are used for speed control. These methods provide higher efficiency, greater reliability, quick response, higher efficiency [6]. One such technique is Pulse Width Modulation. We apply this technique in our project so as to control the speed and position of the DC motor. II. EXISTING METHODS The electric drive systems used in many industrial applications require higher performance, reliability, variable speed and ease of controllability. The speed control of DC motor is very crucial in applications where precision and protection are of essence. Purpose of a motor speed controller is to take a signal representing the required speed and to drive a motor at that speed. Different methods are used to control the speed of dc motor. For precise speed control of servo system, closed-loop control is normally used. The block diagram of closed-loop control is shown in Figure 1. The speed, which is sensed by analog sensing devices (e.g., tachometer), is compared with the reference speed to generate the error signal and to vary the armature voltage of the motor [1]-[7]. 280

Microcontroller Based Closed Loop Speed and Position Control of DC Motor Fig 1: Basic Block Diagram for DC Motor Speed Control There are several controllers that can used to control the speed of the motor such as: Armature voltage using Rheostat method for low power dc motors. Use of conventional PID controllers. Neural Network Controllers. Phase-locked-loop control Ac-dc buck-boost converter with only one switching device used for armature voltage control. Fuzzy Logic Controller and etc. A DC motor position control finds wide applications in servo systems, especially in aerospace, automotive and mechatronics applications. The position of a DC motor can be controlled by controlling the Armature Voltage or Field Voltage. The following are few of the simple methods of controlling a DC motor shaft position [9]. Open loop - without feedback of current position, method is ineffective and inaccurate in the presence of load disturbance. On-off controller - motor is turned on with maximum torque till it reaches set point and switches off, this may result in overshoots and oscillations [8]-[12]. Single directional control - reaches set point in a single direction only, the angular position of a DC motor can also be controlled by varying the torque generated by varying the armature voltage or field voltage. In most digital applications, PWM (Pulse Width Modulation) is generally used to control the speed of the DC motor. It is relatively easier to generate pulses of varying duty cycles with a microcontroller or microprocessor. The pulses with varying duty cycle when applied to the armature will result in variable torque proportional to the duty cycle. The control methodology used in this project is to apply an average voltage proportional to the error between actual position and the set point and reduce the average voltage as the current position approaches the set point. This kind of control is very effective in systems with high inertia as an inherent property, so that no control effort is essential when the set point is reached [10]. III. BLOCK DIAGRAM OF THE PROPOSED SYSTEM Block diagram used for the project work is shown in figure 2. Block diagram has following important parts. Permanent magnet dc motor (pmdc motor) Microcontroller atmega-32 Motor driver circuit Personal computer ZigBee module Battery Fig. 2: Block Diagram of the Proposed System Programming is done using this microcontroller to control the speed and position of dc motor. Following ports of Atmega 32 microcontroller are used for the project work. PORT A: Higher order pins (PA7 PA4) are interfaced to a 2 X 16 LCD. The lower order pins (PA3 PA0) has no connection. PORT C: Pins PC7 & PC6 are used for enable and reset LCD respectively. PC0 and PC1 are used to provide gate drive signals to H-bridge circuit & all other pins are left free. PORTD: Pins PD0 & PD1 are used for ZigBee communication & PD2 is used measure sensor output & all other pins are left free. Personal computer is used to accept the commands from the user. The LabVIEW software installed in the PC is used to provide graphical user interface (GUI). Through GUI user has to give commands like whether to use the drive system as speed control drive or position control drive and should enter desired speed or angular position respectively. The communication between the PC and the microcontroller is achieved by ZigBee module. The speed of the dc motor is measured by using optical encoder placed on the dc motor shaft. A beam of light is passed from a transmitter across a small space and this light is detected with a receiver at the other end. If a disc is placed in the space, which has slots cut into it, then the signal will only be picked up when a slot is between the transmitter and receiver. In this project LCD is interfaced with microcontroller Atmega 32 through port C. Pin numbers PC4 to PC7 of port C are used as output pins which are fed to LCD to display. LCD displays information such as name of the drive system, mode of the drive system i.e. position control drive or speed control drive, time period for which drive system is operated etc. ZigBee is used in this project work to transfer the data between the microcontroller and the computer. IV. SOFTWARE TOOLS AND FLOW CHART FOR THE PROPOSED SYSTEM In this project all of three timers are used: Timer 0 in Normal Mode was used to count pulses from motor speed encoder. 281

Timer 1, which has two independent PWM channels, was used to generate PWM waveform to control of the motor speed, one channel for one motor. Timer1 is set on Phase Correct PWM mode. Timer 2 in CTC Mode was used to generate constant time periods. Programming tools used for the proposed work are embedded C to generate PWM for the H-bridge switches using microcontroller and LABVIEW software package where graphical programming is done to provide Graphical User Interface. The flow chart used to control position of DC motor is shown in fig 3. Flow chart for the speed control of DC motor is given in fig 4. International Journal of Engineering and Advanced Technology (IJEAT) ISSN: 2249 8958, Volume-3, Issue-5, June 2014 Fig. 4: Flow Chart for Speed Control of DC Motor Fig. 3: Flow Chart for Position Control of DC Motor Fig. 5: Snapshot of the Hardware Setup Hardware module which was fabricated on printed circuit board needed a graphical user interface which is developed using Lab VIEW software module. Graphical user interface enables the user to communicate with microcontroller through ZigBee module. In Lab VIEW software front panel was developed. Front panel has provisions for user where the user can set drive system as speed control system or position control system. If user intends to use the drive system as speed control drive system then the user has to set desired speed at which motor shaft has to be rotated. Front panel also displays actual speed of the motor shaft. If user intends to set the drive system as position control drive system then user has to set angular position at which motor shaft has to be rotated using virtual control knob on front panel. The motor shaft can moved in either direction thus making drive system as bidirectional drive system. Fig 6 shows the snap shot of front panel developed in Lab VIEW software. 282

Microcontroller Based Closed Loop Speed and Position Control of DC Motor Fig. 6: Snap Shot of Front Panel Developed in Lab VIEW Software V. EXPERIMENTAL RESULTS AND ANALYSIS The experimental set up of project model equipped with software module was tested for various conditions. The observation for different mode of operation of drive system is given below. Case 1: Mode of drive system: Speed control Desired speed: 30rpm Obtained speed: 30rpm At the start when dc supply is given to dc motor it runs at its rated speed i.e. 100rpm. When user sets the desired speed as 30rpm then microcontroller in conjunction with LabVIEW software decreases the duty cycle of pwm which is given to motor driver circuit. After motor reaches the desired speed the same is displayed on the front panel. Fig 5.6 shows the front panel with desired speed set as 30rpm and corresponding obtained speed. Fig 5.7 shows the corresponding pwm across the h-bridge. The pulses below the reference line give the turn on time where as above gives the turn off time. Fig. 8: PWM Across H-Bridge for 30rpm Desired Speed Case 2: Mode of drive system: Speed control Desired speed: 90rpm Obtained speed: 90rpm Fig 5.10 gives the snap shot of front panel with desired speed set as 90rpm. Fig 5.11 gives the corresponding pwm across the h-bridge for the desired speed 90rpm. Fig. 9: Front Panel with Desired Speed Set as 90 rpm Fig. 7: Front Panel with Desired Speed Set as 30 rpm Fig. 10: PWM Across H-Bridge for 90rpm Desired Speed 283

International Journal of Engineering and Advanced Technology (IJEAT) ISSN: 2249 8958, Volume-3, Issue-5, June 2014 Case 3: Mode of drive system: Position control mode Desired angular position: 180º Initially needle on virtual control knob was on zero degrees when user sets the desired angular position as 180º, microcontroller generates required pulses to move the motor shaft from zero degree position to 180º position. Methodology is discussed in chapter 4. Fig 11: Snap Shot of Front Panel with Angular Position Set as 180º Case 4: Mode of drive system: positon control Desired angular position : 45º If user sets the desired angular positon as 45º. In previous case the motor shaft was on 180º angular position. Hence microcontroller takes that as initial position and 45º as desired positon. So micrcontroller will generate the pulses such that motor shaft has to be rotated 135º in backward direction. Fig 5.14 gives snap shot of front panel when drive system is moved to 45º i.e 135º backward direction. Fig 12: Snap Shot of Drive System at 45º VI. CONCLUSION Important conclusions that are drawn out of the investigations in the present work are: At any instant the drive system can be either used as speed control drive system or position control drive system. Dc motor always runs at a speed set by the user irrespective of the load across it. Position control drive system also works satisfactorily as it rotates the shaft of dc motor to a value set by the user. Pulse width modulation (PWM) circuit implemented in a single board Atmega 32 microcontroller, which makes system reliable and compact. In addition with high programming flexibility, the design of switching pulse can be further altered easily without any changes in the hardware. L298 H-bridge which is used in this project work has in built gate drive circuit which reduces the hardware complexity and makes the system compact. REFERENCES [1] Umeno, T. Robust speed control of DC servomotors using modern two degrees-of-freedom controller design IEEE transaction on Industrial electronics, Volume: no -38, Issue: 5, pp.363 368, Oct 1991. [2] Utkin, V.I. Sliding mode control design principles and applications to electric drives IEEE transaction on Industrial electronics, Volume: no -40, Issue: 1, pp.23-36, Feb 1993. [3] Mao-Fu Lai Fuzzy logic in the phase-locked loop DC motor speed control system Proceedings of the IEEE International Symposium on Industrial Electronics, 1997, volume no-3, pp- 1222 1227, 7-11 Jul 1997. [4] Kadwane, S.G. Converter Based DC Motor Speed Control Using TMS320LF2407A DSK 1st IEEE Conference on Industrial Electronics and Applications, pp 1-5, Print ISBN: 0-7803-9513-1, 26 May 2006. [5] Machbub, C Design and implementation of adaptive neural networks algorithm for DC motor speed control system using simple microcontroller Power Electronics and Drive Systems, 2001. Proceedings. 2001 4th IEEE International Conference, volume no 2, pp 479-483, 25 Oct. 2001. [6] Machbub, C Design and implementation of adaptive neural networks algorithm for DC motor speed control system using simple microcontroller Power Electronics and Drive Systems, 2001. Proceedings. 2001 4th IEEE International Conference, volume no 2, pp 479-483, 25 Oct. 2001. [7] Jonathan Scott, W. Howell Round Speed Control with Low Armature Loss for Very Small Sensor less Brushed DC Motors IEEE Transactions on Industrial Electronics, Volume no 56, issue 4, pp 1223-1229, Apr 2009. [8] D. R. Tutakne, Hiralal M. Suryawanshi Adaptive Pulse Synchronizing Control for High-Power-Factor Operation of Variable Speed DC-Drive IEEE Transactions on Power Electronics, Volume: no -22, Issue: 6, pp 2499-2510, Nov, 2007. [9] Betin, F. A time-varying sliding surface for robust position control of a DC motor drive IEEE Transactions on industrial electronics, Volume: no -49, Issue: 5, pp.462 473, Apr 2002. [10] Sharaf, A.M. A flexible gain error driven position controller for DC motor drives Proceedings of ICECS '99. The 6th IEEE International Conference on Electronics, Circuits and Systems, 1999. Volume no 2, pp 981 984, Sept 1999. [11] Aaron, K.R Closed-loop position control system using Lab VIEW Southeast Con, Proceedings IEEE, volume no 34, pp 283-286, Apr 2002. [12] Morales-Caporal, R. DSP-Based Digital Torque/Motion Control of DC Motors for Direct-Drive Industrial Robotic Applications Conference on Electronics, Robotics and Automotive (CERMA) Mechanics, pp 613-618, Oct 2010. 284

Microcontroller Based Closed Loop Speed and Position Control of DC Motor Panduranga Talavaru, Assistant Professor, Department of Electrical and Electronics Engineering, Kammavari Sangam School of Engineering and Management, Bangalore, Karnataka, India.. A Post Graduate in Power Electronics from R V College of Engineering, Bangalore. Nagaraj Naik R, Assistant Professor, Department of Electrical and Electronics Engineering, Dayananda Sagar College of Engineering and Management, Bangalore, Karnataka, India.. A Post Graduate in Power Electronics from R V College of Engineering, Bangalore. V Kishore Kumar Reddy V, Assistant Professor, Department of Electrical and Electronics Engineering, East Point College of Engineering and Technology, Bangalore, Karnataka, India.. A Post Graduate, in Power System Engineering, from National Institute of Engineering, Mysore. Member of IAENG. 285