Digital Control Lab Islamic University of Gaza Eng: Moayed Mobaied DC MOTOR.

Slides:



Advertisements
Similar presentations
Pulse Width Modulation and Motor Control
Advertisements

Design with Root Locus Lecture 9.
Introduction to Motors
DIGITAL CONTROL STRATEGY FOR FOUR QUADRANT OPERATION OF THREE PHASE BLDC MOTOR WITH LOAD VARIATIONS C. Sheeba Joice, S. R. Paranjothi,and V.Jaeahar Seenthil.
DC Motors KL3073.
Lecture 31 DC Motors.
ELECTRIC DRIVES Ion Boldea S.A.Nasar 1998 Electric Drives.
DC Motors DC Motors are widely used in robotics because of their small size and high energy output. Key characteristics of DC motors include: 1. High Speed.
Capstone Design -- Robotics
Chapter 10 – The Design of Feedback Control Systems
Introduction to NSF SPIRIT Workshop 2006 DC ELECTRIC MOTORS.
DIFFERENTIAL POLARIZATION DELAY LINE controller Supervisor : Mony Orbach Performed by: Maria Terushkin Guy Ovadia Technion – Israel Institute of Technology.
ECE 4951 Lecture 5: PID Control of Processes. PID Control A closed loop (feedback) control system, generally with Single Input-Single Output (SISO) A.
Process Control Instrumentation II
Lect. 5 Lead-Lag Control Basil Hamed
Examples of Control Systems Application. Modeling the Ball and Beam Experiment.
DC Motor Control  mouse EE 496 Advisor: Dr. Tep Dobry.
Design of Control Systems Cascade Root Locus Design This is the first lecture devoted to the control system design. In the previous lectures we laid the.
AP Physics C Montwood High School R. Casao
NSF S.P.I.R.I.T. Workshop 2007 Introduction to DC ELECTRIC MOTORS.
Robot Actuation: Motors Stepper motors Servo motors Physics “review” DC motors Electric fields and magnetic fields are the same thing. Nature is lazy.
PID Control and Root Locus Method
DC motor model ETEC6419. Motors of Models There are many different models of DC motors that use differential equations. During this set of slides we will.
1 Motors & Motor Controllers ECE AC or DC Motors AC –Few robots use AC except in factories –Most of those that use AC first convert to DC DC –Dominates.
CIS 540 Principles of Embedded Computation Spring Instructor: Rajeev Alur
f(t) m x(t) fd(t) LINEAR CONTROL C (Ns/m) k (N/m)
A Mathematical Analysis of a Sun Tracking Circuit for Photovoltaic Systems Dr. S. Louvros and Prof. S. Kaplanis T.E.I. of Patra, Greece.
ECE 4115 Control Systems Lab 1 Spring 2005
Ch. 6 Single Variable Control
Ohm’s Law + - R E I E = I * R I = E / R R = E / I E = Voltage I = Current R = Resistance.
Closed-loop Control of DC Drives with Controlled Rectifier
Lecture 18. Electric Motors simple motor equations and their application 1.
Southern Taiwan University of Science and Technology
CS 478: Microcontroller Systems University of Wisconsin-Eau Claire Dan Ernst Feedback Control.
Microprocessor and Microcontroller Based Systems Instructor: Eng.Moayed N. EL Mobaied The Islamic University of Gaza Faculty of Engineering Electrical.
Modified by Albert W.J. Hsue,
ME 335 Boğaziçi University A Study on Motor Speed Control.
Electrical Actuation System Lecture 9 (Chapter 9).
STEPPER MOTORS Name: Mr.R.Anandaraj Designation: Associate. Professor Department: Electrical and Electronics Engineering Subject code :EC 6252 Year: II.
Feedback Control system
MESB374 System Modeling and Analysis PID Controller Design
Control systems KON-C2004 Mechatronics Basics Tapio Lantela, Nov 5th, 2015.
1 MATLAB AND CONTROLS PRESENTED BY:- AGILESWARI K. RAMASAMY DR. FARRUKH HAFIZ NAGI.
DC Motor Speed Modeling in Simulink
Lecture 9: Modeling Electromechanical Systems 1.Finish purely electrical systems Modeling in the Laplace domain Loading of cascaded elements 2.Modeling.
SPEED CONTROL OF ( SEDM ) ADOPTING CHOPPER CONVERTER AND PI CONTROLLER
(thanks to Gary Fedder)
Chapter 4 A First Analysis of Feedback Feedback Control A Feedback Control seeks to bring the measured quantity to its desired value or set-point (also.
Lecture 9: PID Controller.
INTRODUCTION TO ROBOTICS Part 3: Propulsion System Robotics and Automation Copyright © Texas Education Agency, All rights reserved. 1.
Introduction to Linear System Theory and simple feedback PID Controllers EE125 Ruzena Bajcsy.
Intelligent Robot Lab Pusan National University Intelligent Robot Lab Chapter 7. Forced Response Errors Pusan National University Intelligent Robot Laboratory.
DC MOTOR. Magnetism Opposites Attract / Likes Repel.
TRANFORMERS & DC MACHINES BY: PRATIK SINGH ( ) MANISH K ROY ( ) GAGANDEEP SINGH PANESAR ( ) PARSE SANDEEP ( )
SKEE 3143 Control Systems Design Chapter 2 – PID Controllers Design
BIRLA VISHWAKARMA MAHAVIDHYALAYA ELECTRONICS & TELECOMUNICATION DEPARTMENT o – ANKUR BUSA o – KHUSHBOO DESAI UNDER THE GUIDENCE.
CIS 540 Principles of Embedded Computation Spring Instructor: Rajeev Alur
Exercise 1 Suppose we have a simple mass, spring, and damper problem. Find The modeling equation of this system (F input, x output). The transfer function.
Page : PID Controller Chapter 3 Design of Discrete- Time control systems PID C ontroller.
CNC FEED DRIVES Akhil Krishnan G M.Tech 1. CONTENTS 1.Introduction 2.Requirements of CNC feed drives 3.Servo motor 3.1 Servo drive control 3.2 Components.
CNC FEED DRIVES.
DC Motors DC Motors are widely used in robotics because of their small size and high energy output. Key characteristics of DC motors include: 1. High Speed.
AC and DC motors.
DC MOTOR SPEED CONTROL 1. Introduction
Electric Motors.
UNIVERSAL MOTORS.
PID Controller.
Basic Design of PID Controller
Introduction to DC ELECTRIC MOTORS.
EEM476 Power Electronics II
Presentation transcript:

Digital Control Lab Islamic University of Gaza Eng: Moayed Mobaied DC MOTOR

A Simple Electromagnet Q - How do we reverse the poles of this electromagnet? A – By reversing polarity of the battery!

DC Motor Operation Principles In a motor, the permanent magnetic field of the Stator surrounds the Armature field like shown here:

Brushed DC Motor components

How the Commutator Works As the rotor turns, the commutator terminals also turn and continuously reverse polarity of the current it gets from the stationary brushes attached to the battery.

Toy DC Motor, cont.

A View of the Brushes

Inside the Motor, cont.

Motors Everywhere! The fan in the microwave ovenmicrowave oven The dispose-all under the sink The washerwasher The electric screwdriverelectric screwdriver The vacuum cleaner and thevacuum cleaner The electric toothbrush The hair dryerhair dryer

Optical Encoders Relative position - direction - resolution grating light emitter light sensor decode circuitry

Ideal Optical Encoders mask/diffuser grating light emitter light sensor decode circuitry Real A diffuser tends to smooth these signals

Optical Encoders Relative position - direction - resolution grating light emitter light sensor decode circuitry

Optical Encoders Relative position - direction - resolution grating light emitter light sensor decode circuitry A B A B A lags B

Optical Encoders Relative position - direction - resolution grating light emitter light sensor decode circuitry A B A leads B Phase lag between A and B is 90 degree

DC Motor Speed Modeling The motor torque, T, is related to the armature current, i, by a constant factor Kt. The back emf, e, is related to the rotational velocity by the following equations:

DC Motor Speed Modeling From the figure above we can write the following equations based on Newton's law combined with Kirchhoff's law: moment of inertia of the rotor (J). damping ratio of the mechanical system (b). * electromotive force constant (K=Ke=Kt) * electric resistance (R). * electric inductance (L) * input (V): Source Voltage * output (theta): position of shaft

Transfer Function By eliminating I(s) we can get the following open-loop transfer function, where the rotational speed is the output and the voltage is the input

Modeling DC Motor Position

PWM A pulse-width modulated signal is a rectangular waveform with a varying duty cycle. A longer duty cycle means the voltage is on for longer and the average voltage applied to the motor is higher and vice versa. Will be implemented using the PWM generator on our microcontroller.

H-Bridge DC motors only have two leads. The direction it spins is determined by which terminal has power applied and which is connected to ground. An H-bridge consists of four switches (in our case BJTs) and depending on which two are closed, allow the motor to operate in either direction We chose to use an L298 chip from STMicroelectronics because it has two H-bridges in one package.

PWM

Open-loop vs. Close-loop Control Open-loop Control: actual speed desired  d V Motor aa actual speed  a - compute V from the current error  d  a Closed-loop Control: using feedback desired speed  Controller solving for V(t) V(t) Motor If desired speed  d  actual speed  a, So what?

Open loop dc response motor

First, our uncompensated motor can only rotate at 0.1 rad/sec with an input voltage of 1 Volt. Since the most basic requirement of a motor is that it should rotate at the desired speed, the steady-state error of the motor speed should be less than 1%. The other performance requirement is that the motor must accelerate to its steady-state speed as soon as it turns on. In this case, we want it to have a settling time of 2 seconds. Since a speed faster than the reference may damage the equipment, we want to have an overshoot of less than 5%. If we simulate the reference input (r) by an unit step input, then the motor speed output should have: Settling time less than 2 seconds Overshoot less than 5% Steady-state error less than 1%

Simulation using Matlab

The step function is one of most useful functions in Matlab for control design. Given a system that can be described by either a transfer function or a set of state-space equations, the response to a step input can immediately be plotted. A step input can be described as a change in the input from zero to a finite value at time t = 0. By default, the step command performs a unit step (i.e. the input goes from zero to one at time t = 0). The basic command to use the step function is one of the following (depending if you have a set of state-space equations or a transfer function form): step(A,B,C,D) step(num,den)

J=0.01; b=0.1; K=0.01; R=1; L=0.5; num=K; den=[(J*L) ((J*R)+(L*b)) ((b*R)+K^2)]; step (num,den,0:0.1:3) title(‘ Step Response for the Open Loop System') step

From the plot we see that when 1 volt is applied to the system, the motor can only achieve a maximum speed of 0.1 rad/sec, ten times smaller than our desired speed. Also, it takes the motor 3 seconds to reach its steady-state speed; this does not satisfy our 2 seconds settling time criterion.

Evaluating the response steady-state error overshoot -- % of final value exceeded at first oscillation rise time -- time to span from 10% to 90% of the final value settling time -- time to reach within 2% of the final value ss error -- difference from the system’s desired value

Close loop DC Motor Speed Control (analog)

P Design Method for DC Motor Speed Control (analog)

PD Design Method for DC Motor Speed Control (analog)

PID Design Method for DC Motor Speed Control (analog)

Proportional control Let's first try using a proportional controller with a gain of 100. Kp=100; numa=Kp*num; dena=den; To determine the closed-loop transfer function, we use the cloop command. [numac,denac]=cloop(numa,dena); Note that numac and denac are the numerator and the denominator of the overall closed-loop transfer function. t=0:0.01:5; step(numac,denac,t) title('Step response with Proportion Control')step

From the plot above we see that both the steady-state error and the overshoot are too large. adding an integral term will eliminate the steady-state error and a derivative term will reduce the overshoot. Let's try a PID controller with small Ki and Kd.

J=0.01; b=0.1; K=0.01; R=1; L=0.5; num=K; den=[(J*L) ((J*R)+(L*b)) ((b*R)+K^2)]; Kp=100; Ki=1; Kd=1; numc=[Kd, Kp, Ki]; denc=[1 0]; numa=conv(num,numc); dena=conv(den,denc); [numac,denac]=cloop(numa,dena); step(numac,denac) title('PID Control with small Ki and Kd')

Tuning the gains Now the settling time is too long. Let's increase Kd to reduce the settling time.

Let's increase Kd to reduce the overshoot.

So now we know that if we use a PID controller with Kp=100, Ki=200, Kd=10, all of our design requirements will be satisfied.

PID Tuning How to get the PID parameter values ? (1) If the system has a known mathematical model (i.e., the transfer function), analytical methods can be used (e.g., root- locus method) to meet the transient and steady-state specs. (2) When the system dynamics are not precisely known, we must resort to experimental approaches. Using only Proportional control, turn up the gain until the system oscillates w/o dying down, i.e., is marginally stable. Assume that K and P are the resulting gain and oscillation period, respectively. Then, use Ziegler-Nichols Tuning for second or higher order systems for P controlfor PI controlfor PID control K p = 0.6 K K i = 2.0 / P K d = P / 8.0 K p = 0.45 K K i = 1.2 / P K p = 0.5 K Ziegler-Nichols Rules for Tuning PID Controller: