• Non ci sono risultati.

38- MOTOR CONTROL

N/A
N/A
Protected

Academic year: 2021

Condividi "38- MOTOR CONTROL"

Copied!
29
0
0

Testo completo

(1)

Controlling Motors

OBEY

ME!

(2)
(3)
(4)

2. Transistor control

Type Imax (mA) Vce (V)

2N3904 100 0.2

TIP120 1500 1.5

HIGH (+5V)

(5)

Pin 2

(6)

Several motors

Watch out for TIP120 overheating

(7)

Several motors, each controlled

(8)

Several batteries

(9)

MOSFET Control

DRAIN (D)

SOURCE (S) GATE (G)

(10)

MOSFET

G D S

IRL520

Max current = 10 A

Rds on = 0.18 ohm

Ids

D S Rds on

If motor draws 2.0 A

Vds = I*R = 2.0*.18 = .36V

P = IV = 2*.36 = .72W

For TIP120, Vce = 1.5V

P = 2*1.5 = 3W !

(11)

I

Rds on

For high currents, bipolar wins

I

MOSFET

P = I

2

R

ds

~ I

2

BIPOLAR

P = V

ce

I ~ I

I

P

(12)

MOSFET Parts

Rds on = 0.180 ohm

$0.50

Rds on = 0.0037 ohm

$1.50

(13)

3. Relay control

12V relay

TIP120 or 2N3904

• Relays good for high current motors

• Watch out for relay coil drain

(14)

Bi-directional motor control

12V DPDT

RELAY

CCW CW "DIRECTION" "ON-OFF" TIP120 or IRL520 or RELAY GND

(15)

Bi-directional motor control with L293D

See www.me.umn.edu/courses/me2011/arduino/technotes/dcmotors/L293/L293.html

$2.00

(16)

Inductive loads cause switching spikes

L

V

I

dt

dI

L

V

t

V

I

GND

(17)

.47, 100V mylar

+

-

diode

(18)
(19)

CONTROL

PIN x PIN y MOTOR

Low Low Off Low High CW High Low CCW High High Off

(20)
(21)

Slowing Motor With a Power Resistor

10-15 ohm power resistor

3W+

Need a load resistor? Try a flashlight bulb, or a second motor

(22)

Control Speed by Pulse Width Modulation (PWM)

Open and close switch rapidly V 0 12 V 0 12 V 0 12 V 0 12 100% 50% 25% 0% Vavg = 12 V Vavg = 6 V Vavg = 3 V Vavg = 0 V

(23)

PWM for Variable Speed

V 0 V+ V 0 V+ V 0 V+ Duty cycle = 5/40 = 12.5% Watch out for voltage spikes!

... while(digitalRead(6)==HIGH) { digitalWrite(11,HIGH); delay(5); digitalWrite(11,LOW); delay(35); } ... ... //run at 3 speeds analogWrite(11,64); //slow delay(2000); analogWrite(11,128); //medium delay(2000); analogWrite(11,255); //fast delay(2000); ... Arduino analogWrite PWM valid on pins 3, 5, 6, 9, 10, 11

(24)

Remember

When motor runs slower,

torque is less

(25)
(26)

Detect Position with a Switch

Code

Motor on

Wait for switch closed Motor off

(27)

Detect Position with a Potentiometer

• Output voltage varies between 0 and

5V as angle changes

• Read with analogRead() function,

(28)

Stepper Motor

• One pulse per step

• 48, 100, 200 steps/rev common

• Send to precise position by a set # of pulses

• If high torque disturbance can be bumped out of holding

detent

• 4 Arduino pins

• ULN2003A interface driver or 4 transistors • See stepper motor section at

(29)

Servo Motor

• Gearmotor with internal position feedback and internal

controller

• Control position with continuous pulse stream; width of pulse

determines position

• Typical range: 90 to 180 degrees

• Common in hobby robotics; primary application from RC

airplanes

• Can modify for continuous rotation • See servo motor section at

Riferimenti

Documenti correlati

polynomials. This allows to reduce the compatibility condition of strains among the coating structure and the underlying substrate to a linear algebraic system. The rigidity

Pure horizontal or vertical GEN can instead indicate lesions in the area of the brainstem involved respectively for horizontal (NPH and VN) or vertical (interstitial

Diventare destinazioni internazionali si può e probabilmente in tempi non lunghissimi. La Motor Valley dell’Emilia-Romagna ha tutte le caratteristiche per essere un

The International Archives of the Photogrammetry, Remote Sensing and Spatial Information Sciences, Volume XLII-4/W14, 2019 FOSS4G 2019 – Academic Track, 26–30 August 2019,

L’impegno delle istituzioni è garantito negli interventi dell’assessore provinciale Nico- la Funari, per il quale «la conservazione e la tutela sono un lavoro collegiale al servizio

The fifth chapter by Dagmar Sternad focuses on a particular motor task, bouncing a ball on the tennis racket to address several basic aspects of the produc- tion of rhythmic actions

an Franz Fühmanns 1962 erschie- nene Erzählung Böhmen am Meer, an das von Ingeborg Bachmann zwei Jahre später verfasste Gedicht Böhmen liegt am Meer und an das 1992

T he term cardiorenal syndrome has been variably defined but can be considered as a state of advanced cardiorenal dysregu- lation manifest by one or more of three specific