EE Practical Aspects of Motor Control

Outline Actuation – DC Motors & Control EE 451 - Practical Aspects of Motor Control H.I. Bozma Electric Electronic Engineering Bogazici University D...
Author: Ashlynn Perkins
24 downloads 0 Views 415KB Size
Outline Actuation – DC Motors & Control

EE 451 - Practical Aspects of Motor Control H.I. Bozma Electric Electronic Engineering Bogazici University

December 13, 2015

H.I. Bozma

EE 451 - Practical Aspects of Motor Control

Outline Actuation – DC Motors & Control

Actuation – DC Motors & Control Introduction Motor Selection DC Motor Control

H.I. Bozma

EE 451 - Practical Aspects of Motor Control

Outline Actuation – DC Motors & Control

Introduction Motor Selection DC Motor Control

1. Calculate: Required torque and RPM to meet functional requirement 2. Research: DC motor manufacturers to determine the motors that satisfy these criteria 3. Compare: Published specifications of motors to determine optimal motor selection 4. Choose one or several motors for prototyping and testing.

H.I. Bozma

EE 451 - Practical Aspects of Motor Control

Outline Actuation – DC Motors & Control

Introduction Motor Selection DC Motor Control

Design Issues



Motor requirements: ◮ ◮ ◮

Required joint torque (Nm) - τ (t) Required gear peak torque (Nm) - τg Required max input peak speed (rpm) - nin



Supplied voltage



Physical contraints – Motor size

H.I. Bozma

EE 451 - Practical Aspects of Motor Control

Outline Actuation – DC Motors & Control

Introduction Motor Selection DC Motor Control

Design Constraints- Ex



Accelerating a 6.8 kg, two-wheel diff. robot with wheel diameters 9.7cm at a rate of 91cm/sec 2 .



Top speed - Around 1.2 m/sec



Supplied voltage = 12 V



Motor size - Diameter around 5 cm, length around 10 cm

H.I. Bozma

EE 451 - Practical Aspects of Motor Control

Outline Actuation – DC Motors & Control

Introduction Motor Selection DC Motor Control

Torque Calculation



Forcetotal = ma → Ftotal = 6.8 × 0.91 = 6.1 N



Two wheels → 3.1 N/wheel



Torque - F × r = 3.1 ∗ 0.049 ≈ 0.15 Nm ∼ = 150 mNm

H.I. Bozma

EE 451 - Practical Aspects of Motor Control

Outline Actuation – DC Motors & Control

Introduction Motor Selection DC Motor Control

Required Wheel RPM



Wheel diameter 9.7cm → Wheel perimeter π × 0.097 = 0.305 m



Required speed: 1.2 m/sec → 3.93 rps → ≈ 236 rpm

H.I. Bozma

EE 451 - Practical Aspects of Motor Control

Outline Actuation – DC Motors & Control

Introduction Motor Selection DC Motor Control

Start Search



Torque - ≈ 150 mNm



Required speed: ≈ 236 rpm

H.I. Bozma

EE 451 - Practical Aspects of Motor Control

Outline Actuation – DC Motors & Control

Introduction Motor Selection DC Motor Control

Actuation Issues



DC Motor selection



Gearbox selection



DC motor control

H.I. Bozma

EE 451 - Practical Aspects of Motor Control

Outline Actuation – DC Motors & Control

Introduction Motor Selection DC Motor Control

Motor + Gearbox (Drive Train) Model for a Single Joint

H.I. Bozma

EE 451 - Practical Aspects of Motor Control

Outline Actuation – DC Motors & Control

Introduction Motor Selection DC Motor Control

Use Motor with Gear



Output Torque (Transmission Shaft) = Input Torque (Motor) × Gear Reduction × Transmission Efficiency

H.I. Bozma

EE 451 - Practical Aspects of Motor Control

Outline Actuation – DC Motors & Control

Introduction Motor Selection DC Motor Control

Design Issues



Ultimate goal ◮ ◮ ◮



Required joint torque (Nm) - τ (t) Required gear peak torque (Nm) - τg Required max input peak speed (rpm) - nin

Motor + gear requirements ◮ ◮ ◮

Required motor torque (Nm) - τm Required motor peak torque (Nm) - τp Required motor peak speed (rpm) - np

H.I. Bozma

EE 451 - Practical Aspects of Motor Control

Outline Actuation – DC Motors & Control

Introduction Motor Selection DC Motor Control

Motor Parameters

Two motor groups - brushed and brushless DC motors. ◮

Nominal torque Tm - Maximum continuous torque



The stall torque Tmmax : The peak torque of the motor. max Maximum permissible speed Nm



◮ ◮

Commutation system Mechanical imbalance which shortens the service life of the bearings

H.I. Bozma

EE 451 - Practical Aspects of Motor Control

Outline Actuation – DC Motors & Control

Introduction Motor Selection DC Motor Control

Motor Selection Criteria





Nominal torque limit: The root mean square (RMS) value of the required motor torque ≤ Nominal torque of the motor Tm Required peak torque τp ≤ Stall torque Tmmax



Required peak speed np ≤ Maximum permissible speed max Nm



Motor technical datasheet

H.I. Bozma

EE 451 - Practical Aspects of Motor Control

Outline Actuation – DC Motors & Control

Introduction Motor Selection DC Motor Control

Gearbox Parameters



Maximum rated torque of the gearbox Tg



Allowable peak torque Tgmax



Maximum permissible input speed Ngmax

H.I. Bozma

EE 451 - Practical Aspects of Motor Control

Outline Actuation – DC Motors & Control

Introduction Motor Selection DC Motor Control

Gearbox Selection



RMC Torque value ◮

◮ ◮

A measure of the accumulated fatigue on a structural component Reflects typical endurance curves of steel and aluminium Gearbox lifetime



RMC Torque value τrmc ≤ Maximum rated torque of the gearbox Tg



Required peak torque τg ≤ Tgmax



Required maximum input peak speednin ≤ Maximum permissible gearbox input speed Ngmax

H.I. Bozma

EE 451 - Practical Aspects of Motor Control

Outline Actuation – DC Motors & Control

Introduction Motor Selection DC Motor Control

Simple Calculations



Edrop = Inoload Rarmature (Free running motor at a given voltage)



Ebattery – Given



Ebattery = KE ω + Edrop → ω



Output shaft speed

ω Transmissionratio

H.I. Bozma

EE 451 - Practical Aspects of Motor Control

Outline Actuation – DC Motors & Control

Introduction Motor Selection DC Motor Control

Pulse Width Modulation (PWM)



TH – Time that a signal is at high state



T – Period



Duty cycle =

TH T

× 100

H.I. Bozma

EE 451 - Practical Aspects of Motor Control

Outline Actuation – DC Motors & Control

Introduction Motor Selection DC Motor Control

PWM & Control



PID cycle time (0.1 sec)



Motor speed (30 rpm)



Encoder resolution (500 counts/rev)



PWM frequency (1kHz)

H.I. Bozma

EE 451 - Practical Aspects of Motor Control

Outline Actuation – DC Motors & Control

Introduction Motor Selection DC Motor Control

PWM Circuit

H.I. Bozma

EE 451 - Practical Aspects of Motor Control

Outline Actuation – DC Motors & Control

Introduction Motor Selection DC Motor Control

H-Bridge

S1 1 0 0 0 1

H.I. Bozma

S2 0 1 0 1 0

S3 0 1 0 0 1

S4 1 0 0 1 0

Results Motor moves right Motor moves left Motor free runs to stop Motor brakes Motor brakes

EE 451 - Practical Aspects of Motor Control

Outline Actuation – DC Motors & Control

Introduction Motor Selection DC Motor Control

H-Bridge: Operation Modes

H.I. Bozma

EE 451 - Practical Aspects of Motor Control

Outline Actuation – DC Motors & Control

Introduction Motor Selection DC Motor Control

H-Bridge: MOSFET H-Bridge

H.I. Bozma

EE 451 - Practical Aspects of Motor Control

Outline Actuation – DC Motors & Control

Introduction Motor Selection DC Motor Control

H-Bridge Motor Circuit

H.I. Bozma

EE 451 - Practical Aspects of Motor Control

Outline Actuation – DC Motors & Control

Introduction Motor Selection DC Motor Control

Control System

H.I. Bozma

EE 451 - Practical Aspects of Motor Control

Outline Actuation – DC Motors & Control

Introduction Motor Selection DC Motor Control

PID Control ◮

Error term: ◮ ◮

The difference btw input and output of the system Measured in terms of a number of encoder counts per unit time.



Proportional gain: Kp multiplied by error



Integral gain ◮ ◮



KI times error term and added to previous integral term Provides response to accumulated error

Derivative gain: ◮



Kd times the difference between the previous error and the current error Responds to change in error from one PID cycle to the next. H.I. Bozma

EE 451 - Practical Aspects of Motor Control

Outline Actuation – DC Motors & Control

Introduction Motor Selection DC Motor Control

Watch out for!



Integral windup



PWM term overflow



PID variable overflow

H.I. Bozma

EE 451 - Practical Aspects of Motor Control

Outline Actuation – DC Motors & Control

Introduction Motor Selection DC Motor Control

PID Tuning - Brute Force



How to determine coefficients?



What is the response?

H.I. Bozma

EE 451 - Practical Aspects of Motor Control

Outline Actuation – DC Motors & Control

Introduction Motor Selection DC Motor Control

PID Tuning - Brute Force



For a variety of Kp , KD , KI values



Store the feedback speed value into an array element for the first 20 PID executions. (2 seconds)



Change the set speed from 0 to 60% of the motors maximum speed.



After 2 seconds, stop the motor and print the array data



Choose the best response

H.I. Bozma

EE 451 - Practical Aspects of Motor Control