Top Banner
EECS 373 Presentation DC motor with H-bridge Team: Bowen Xu, Chenyu Yi, Yitian Chen 1
28

EECS 373 Presentation DC motor with H-bridge Team: Bowen Xu, Chenyu Yi, Yitian Chen 1.

Dec 14, 2015

Download

Documents

Roman Vary
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: EECS 373 Presentation DC motor with H-bridge Team: Bowen Xu, Chenyu Yi, Yitian Chen 1.

1

EECS 373 PresentationDC motor with H-bridge

Team: Bowen Xu, Chenyu Yi, Yitian Chen

Page 2: EECS 373 Presentation DC motor with H-bridge Team: Bowen Xu, Chenyu Yi, Yitian Chen 1.

2

How to drive a motor

• Two functions– Rotate reversely by reverse the voltage (Appendix I)– Speed increases with voltage applied

• LEGO 2838, without load:

M+ -

http://www.philohome.com/motors/motorcomp.htm

Page 3: EECS 373 Presentation DC motor with H-bridge Team: Bowen Xu, Chenyu Yi, Yitian Chen 1.

3

All in one – H bridge

• Integrating the following functions:– Capable of driving the motor in both directions

(Appendix II)– Control the speed (explain later)

• What’s more? – Brake(Appendix III)– Free wheeling(Appendix IV)

Page 4: EECS 373 Presentation DC motor with H-bridge Team: Bowen Xu, Chenyu Yi, Yitian Chen 1.

4

Control the speed using PWM

• Can we use analog?– …Yes… But too complex– We prefer digital (Appendix V)

• Can we connect PWM output pins on MCU with motor?– No!– The motor won’t move– Or magic smoke comes out!

• PWM signal acts as “switch manager”(Appendix VI)– Manage big voltage source with small voltage source– Get different AVERAGE voltage with different duty cycle

Page 5: EECS 373 Presentation DC motor with H-bridge Team: Bowen Xu, Chenyu Yi, Yitian Chen 1.

R

A safer way to manage the “switches”

5

MVpwr

GND

R

PWM1

PWM2

OUT1

OUT2

Page 6: EECS 373 Presentation DC motor with H-bridge Team: Bowen Xu, Chenyu Yi, Yitian Chen 1.

6

R

MVpwr

GND

R

PWM1

PWM2

OUT1

OUT2

Vavg GND

0

0

1

Forward

1

3.3V

0V

3.3V

0V

Vavg

GND

Page 7: EECS 373 Presentation DC motor with H-bridge Team: Bowen Xu, Chenyu Yi, Yitian Chen 1.

77

R

7

MVpwr

GND

R

PWM1

PWM2

OUT1

OUT2

VavgGND

1

1

0

Reverse

0

3.3V

0V

3.3V

0V

GND

Vavg

Page 8: EECS 373 Presentation DC motor with H-bridge Team: Bowen Xu, Chenyu Yi, Yitian Chen 1.

8

R

8

MVpwr

GND

R

PWM1

PWM2

OUT1

OUT2

GND

1

0

1

Brake 1

0

GND

3.3V

0V

3.3V

0V

GND

GND

Page 9: EECS 373 Presentation DC motor with H-bridge Team: Bowen Xu, Chenyu Yi, Yitian Chen 1.

99

R

9

MVpwr

GND

R

PWM1

PWM2

OUT1

OUT2

Vpwr

0

1

0

Brake 2

1

Vpwr

3.3V

0V

3.3V

0V

Vpwr

Vpwr

Page 10: EECS 373 Presentation DC motor with H-bridge Team: Bowen Xu, Chenyu Yi, Yitian Chen 1.

10

MVpwr

GND

R

PWM1

PWM2

OUT1

OUT2

EN

Add one more function: ENABLE

Page 11: EECS 373 Presentation DC motor with H-bridge Team: Bowen Xu, Chenyu Yi, Yitian Chen 1.

11

PWM1

PWM2

Vpwr

GND

OUT1

OUT2

ENABLE

12345

67

Our Basic H-bridge Chip

Page 12: EECS 373 Presentation DC motor with H-bridge Team: Bowen Xu, Chenyu Yi, Yitian Chen 1.

12

LEARN TO USE MC33886An example of using data sheet

Page 13: EECS 373 Presentation DC motor with H-bridge Team: Bowen Xu, Chenyu Yi, Yitian Chen 1.

13

Before we start

• Scenario– Use RS-540 to drive a model car– The rated voltage: 7.2V– Current for normal speed: 3A

• 2 Problems– Is MC33886 capable?• Bear 7.2V?• Supply sufficient current?

– How to connect the pins

Page 14: EECS 373 Presentation DC motor with H-bridge Team: Bowen Xu, Chenyu Yi, Yitian Chen 1.

14

For problem 1: Properties of MC33886

• Output voltage and current:– Vpwr: 5 to 12V– Max current: 5.2A

• Other information– PWM input frequency no higher than 10kHz

Page 15: EECS 373 Presentation DC motor with H-bridge Team: Bowen Xu, Chenyu Yi, Yitian Chen 1.

15

PWM1

PWM2

Vpwr

GND

OUT1

OUT2ENABLE

12345

67

For problem 2: Pin descriptions

General Chip we have MC33886(get from data sheet)

Page 16: EECS 373 Presentation DC motor with H-bridge Team: Bowen Xu, Chenyu Yi, Yitian Chen 1.

16

RS-540

7.2V

MCU

PWM1PWM2

01

GNDCcp

D2D1IN2IN1

FS

OUT1

OUT2

Vpwr

30nF

Connect MC33886 with MCU and motor

Page 17: EECS 373 Presentation DC motor with H-bridge Team: Bowen Xu, Chenyu Yi, Yitian Chen 1.

RS-540MCU

PWM1PWM2

01

GNDCcp

D2D1IN2IN1

FS

OUT1

OUT2

Vpwr7.2V

GNDCcp

D2D1IN2IN1

FS

OUT1

OUT2

VpwrDual H-bridge

to get greater power!

6.03 dollar each(www.findchips.com)

5.2A

5.2A

10.4A

Page 18: EECS 373 Presentation DC motor with H-bridge Team: Bowen Xu, Chenyu Yi, Yitian Chen 1.

18

Questions?

Page 19: EECS 373 Presentation DC motor with H-bridge Team: Bowen Xu, Chenyu Yi, Yitian Chen 1.

19

Appendix IForward and reverse

+ -

+ -M+ - M+ -

+-

+-

Back

Page 20: EECS 373 Presentation DC motor with H-bridge Team: Bowen Xu, Chenyu Yi, Yitian Chen 1.

20

Appendix IIForward and reverse with simple H-bridge

-+

sw1

sw2

sw3

sw4

M+ -

+

-

- +

Back

Page 21: EECS 373 Presentation DC motor with H-bridge Team: Bowen Xu, Chenyu Yi, Yitian Chen 1.

21

Appendix IIIBrake with simple H-bridge

GND+

sw1

sw2

sw3

sw4

M+ -

+

-

GND +

Back

Page 22: EECS 373 Presentation DC motor with H-bridge Team: Bowen Xu, Chenyu Yi, Yitian Chen 1.

22

-+

sw1

sw2

sw3

sw4

M+ -

+

-

BackAppendix III

Brake with simple H-bridge

Page 23: EECS 373 Presentation DC motor with H-bridge Team: Bowen Xu, Chenyu Yi, Yitian Chen 1.

23

+

sw1

sw2

sw3

sw4

M+ -

+

-

+

BackAppendix III

Brake with simple H-bridge

Page 24: EECS 373 Presentation DC motor with H-bridge Team: Bowen Xu, Chenyu Yi, Yitian Chen 1.

24

Appendix IVFree wheeling

Back

Page 25: EECS 373 Presentation DC motor with H-bridge Team: Bowen Xu, Chenyu Yi, Yitian Chen 1.

25

Appendix V PWM and Vavg

3.3V

0V

Vavg = Vpeak * Duty_cycle

Back

Page 26: EECS 373 Presentation DC motor with H-bridge Team: Bowen Xu, Chenyu Yi, Yitian Chen 1.

26

Appendix VIOutput voltage with PWM control

Vpwr = 12V

Vout3.3V

Back

3.6V

Duty cycle: 30%

12V

Page 27: EECS 373 Presentation DC motor with H-bridge Team: Bowen Xu, Chenyu Yi, Yitian Chen 1.

27

Appendix VIIMC33886 Data sheet:

Back

http://www.freescale.com/files/analog/doc/data_sheet/MC33886.pdf

Page 28: EECS 373 Presentation DC motor with H-bridge Team: Bowen Xu, Chenyu Yi, Yitian Chen 1.

28

Appendix VIIIMC33886 Data sheet, pin descriptions

Back

http://www.freescale.com/files/analog/doc/data_sheet/MC33886.pdf