1 eric taseski, yihe huang, ronak mehta h-bridges and stepper motors 2
TRANSCRIPT
![Page 1: 1 Eric Taseski, Yihe Huang, Ronak Mehta H-Bridges and Stepper Motors 2](https://reader036.vdocuments.us/reader036/viewer/2022062407/56649d895503460f94a6f6a5/html5/thumbnails/1.jpg)
1
![Page 2: 1 Eric Taseski, Yihe Huang, Ronak Mehta H-Bridges and Stepper Motors 2](https://reader036.vdocuments.us/reader036/viewer/2022062407/56649d895503460f94a6f6a5/html5/thumbnails/2.jpg)
2
Eric Taseski, Yihe Huang, Ronak Mehta
H-Bridges and Stepper Motors
![Page 3: 1 Eric Taseski, Yihe Huang, Ronak Mehta H-Bridges and Stepper Motors 2](https://reader036.vdocuments.us/reader036/viewer/2022062407/56649d895503460f94a6f6a5/html5/thumbnails/3.jpg)
3
Standard DC Motors
Speed determined by voltage level.
Motor
Vcc
GND
+ -- +
![Page 4: 1 Eric Taseski, Yihe Huang, Ronak Mehta H-Bridges and Stepper Motors 2](https://reader036.vdocuments.us/reader036/viewer/2022062407/56649d895503460f94a6f6a5/html5/thumbnails/4.jpg)
4
Stopping
No movement, holds position.
Motor
Vcc
GND
STOP
![Page 5: 1 Eric Taseski, Yihe Huang, Ronak Mehta H-Bridges and Stepper Motors 2](https://reader036.vdocuments.us/reader036/viewer/2022062407/56649d895503460f94a6f6a5/html5/thumbnails/5.jpg)
5
Free Spinning
Disconnected, does whatever it wants.
Motor
Vcc
GND
![Page 6: 1 Eric Taseski, Yihe Huang, Ronak Mehta H-Bridges and Stepper Motors 2](https://reader036.vdocuments.us/reader036/viewer/2022062407/56649d895503460f94a6f6a5/html5/thumbnails/6.jpg)
6
What if you want precision?
![Page 7: 1 Eric Taseski, Yihe Huang, Ronak Mehta H-Bridges and Stepper Motors 2](https://reader036.vdocuments.us/reader036/viewer/2022062407/56649d895503460f94a6f6a5/html5/thumbnails/7.jpg)
7
Stepper Motors!
Precision movement via stepping
Can count revolutions
Can rotate continuously unlike a standard servo
![Page 8: 1 Eric Taseski, Yihe Huang, Ronak Mehta H-Bridges and Stepper Motors 2](https://reader036.vdocuments.us/reader036/viewer/2022062407/56649d895503460f94a6f6a5/html5/thumbnails/8.jpg)
8
How Stepper Motors Work
Divides a full rotation into a number of steps.Move one ‘step’ at a time.
![Page 9: 1 Eric Taseski, Yihe Huang, Ronak Mehta H-Bridges and Stepper Motors 2](https://reader036.vdocuments.us/reader036/viewer/2022062407/56649d895503460f94a6f6a5/html5/thumbnails/9.jpg)
9
Stepper Motors
1. The horizontal pair is driven with power in one direction. This pulls the oppositely polarized teeth to align with them.
2. The horizontal pair is de-energized, and the vertical pair is energized.
3. The vertical pair is de-energized, and the horizontal pair is energized in the opposite direction.
4. The horizontal pair is de-energized, and the vertical pair is energized in the opposite direction.
![Page 10: 1 Eric Taseski, Yihe Huang, Ronak Mehta H-Bridges and Stepper Motors 2](https://reader036.vdocuments.us/reader036/viewer/2022062407/56649d895503460f94a6f6a5/html5/thumbnails/10.jpg)
10
How Stepper Motors Work
![Page 11: 1 Eric Taseski, Yihe Huang, Ronak Mehta H-Bridges and Stepper Motors 2](https://reader036.vdocuments.us/reader036/viewer/2022062407/56649d895503460f94a6f6a5/html5/thumbnails/11.jpg)
11
Stepper Modes: Wave Mode
http://en.wikipedia.org/wiki/File:Drive.png
A
B
C
D
(codeproject.com)
![Page 12: 1 Eric Taseski, Yihe Huang, Ronak Mehta H-Bridges and Stepper Motors 2](https://reader036.vdocuments.us/reader036/viewer/2022062407/56649d895503460f94a6f6a5/html5/thumbnails/12.jpg)
12
Stepper Modes: Full Step Mode
http://en.wikipedia.org/wiki/File:Drive.png
A
B
C
D
(codeproject.com)
![Page 13: 1 Eric Taseski, Yihe Huang, Ronak Mehta H-Bridges and Stepper Motors 2](https://reader036.vdocuments.us/reader036/viewer/2022062407/56649d895503460f94a6f6a5/html5/thumbnails/13.jpg)
13
Stepper Modes: Half Step Mode
http://en.wikipedia.org/wiki/File:Drive.png
A
B
C
D
(codeproject.com)
![Page 15: 1 Eric Taseski, Yihe Huang, Ronak Mehta H-Bridges and Stepper Motors 2](https://reader036.vdocuments.us/reader036/viewer/2022062407/56649d895503460f94a6f6a5/html5/thumbnails/15.jpg)
15
Stepper Motors Contd.
http://www.pololu.com/catalog/product/1205/specs
![Page 16: 1 Eric Taseski, Yihe Huang, Ronak Mehta H-Bridges and Stepper Motors 2](https://reader036.vdocuments.us/reader036/viewer/2022062407/56649d895503460f94a6f6a5/html5/thumbnails/16.jpg)
16
How do we power them?
![Page 17: 1 Eric Taseski, Yihe Huang, Ronak Mehta H-Bridges and Stepper Motors 2](https://reader036.vdocuments.us/reader036/viewer/2022062407/56649d895503460f94a6f6a5/html5/thumbnails/17.jpg)
17
H-Bridges!
Allows low voltage logic while driving external power to motors.
Easily control current in both directions, allowing motors to move forwards and backwards.
Useful for DC motors, stepper motors, servos, solenoids, etc.
![Page 18: 1 Eric Taseski, Yihe Huang, Ronak Mehta H-Bridges and Stepper Motors 2](https://reader036.vdocuments.us/reader036/viewer/2022062407/56649d895503460f94a6f6a5/html5/thumbnails/18.jpg)
18
H-Bridges
Each half bridge is a transistor with an enable.
• LOW Voltage Input Control Logic• HIGH Voltage Output
Motor Voltage
Logic Enable
Motor
Logic Input
![Page 19: 1 Eric Taseski, Yihe Huang, Ronak Mehta H-Bridges and Stepper Motors 2](https://reader036.vdocuments.us/reader036/viewer/2022062407/56649d895503460f94a6f6a5/html5/thumbnails/19.jpg)
19
H-Bridges
EN 1,2
EN 3,4
Input 1
Input 2
Input 3
Input 4
Output 1
Output 2
Output 3
Output 4
Vcc, Motor Supply Voltage
GND
![Page 20: 1 Eric Taseski, Yihe Huang, Ronak Mehta H-Bridges and Stepper Motors 2](https://reader036.vdocuments.us/reader036/viewer/2022062407/56649d895503460f94a6f6a5/html5/thumbnails/20.jpg)
20
H-Bridge Pinout
-EN pins enable output (1 EN pin per pair)-A’s are control inputs-Y’s are outputs-Vcc1 is circuit logic voltage-Vcc2 is the motor supply-Grounds go to ground
http://www.ti.com/lit/ds/symlink/l293d.pdf
![Page 21: 1 Eric Taseski, Yihe Huang, Ronak Mehta H-Bridges and Stepper Motors 2](https://reader036.vdocuments.us/reader036/viewer/2022062407/56649d895503460f94a6f6a5/html5/thumbnails/21.jpg)
21
Full-Bridge with DC Motor
Motor+ -Enable
Input A
Input B
ENABLE Input A Input B Result
1 1 0 Motor turns CW
1 0 1 Motor turns CCW
1 0 or 1 0 or 1 Fast Stop
0 0 or 1 0 or 1 Free Spin
1
0
1
0
1
1
- +
![Page 22: 1 Eric Taseski, Yihe Huang, Ronak Mehta H-Bridges and Stepper Motors 2](https://reader036.vdocuments.us/reader036/viewer/2022062407/56649d895503460f94a6f6a5/html5/thumbnails/22.jpg)
22
How to wire up a stepper motor and the L293D
Left side can be adapted to our SmartFusion kits.
(codeproject.com)
![Page 23: 1 Eric Taseski, Yihe Huang, Ronak Mehta H-Bridges and Stepper Motors 2](https://reader036.vdocuments.us/reader036/viewer/2022062407/56649d895503460f94a6f6a5/html5/thumbnails/23.jpg)
23
Protips #1-4
1. Heatsinks, or drive low to all pins to not drive current
2. Non-negligible voltage drop across H-Bridge
3. Varying PWM Duty Cycles can be used on ENABLE to control voltage supplied (speed control)
4. Frequency response of motor• Low PWM frequencies may create audible buzz or hum
• High PWM frequencies waste power
![Page 24: 1 Eric Taseski, Yihe Huang, Ronak Mehta H-Bridges and Stepper Motors 2](https://reader036.vdocuments.us/reader036/viewer/2022062407/56649d895503460f94a6f6a5/html5/thumbnails/24.jpg)
24
ReferencesL293D explanation with Stepper Motor details: http://www.codeproject.com/Articles/151763/Motor-Primer-and-the-L293D-Quad-Half-H-Driver
Stepper motor configurations with microcontroller pins:http://www.8051projects.net/stepper-motor-interfacing/stepper-motor-connections.php
Microstepping (not covered):http://homepage.cs.uiowa.edu/~jones/step/micro.html
Different types of stepper motors explained:http://www.wimb.net/index.php?s=motion&page=52
Stepper wikipedia page:http://en.wikipedia.org/wiki/Stepper_motor
H-Bridge wikipedia page:http://en.wikipedia.org/wiki/H_bridge
Adafruit stepper with arduino tutorial:http://learn.adafruit.com/adafruit-arduino-lesson-16-stepper-motors/breadboard-layout
L293D Datasheet:http://www.ti.com/lit/ds/symlink/l293d.pdf
![Page 25: 1 Eric Taseski, Yihe Huang, Ronak Mehta H-Bridges and Stepper Motors 2](https://reader036.vdocuments.us/reader036/viewer/2022062407/56649d895503460f94a6f6a5/html5/thumbnails/25.jpg)
25
Backup Slides
![Page 26: 1 Eric Taseski, Yihe Huang, Ronak Mehta H-Bridges and Stepper Motors 2](https://reader036.vdocuments.us/reader036/viewer/2022062407/56649d895503460f94a6f6a5/html5/thumbnails/26.jpg)
26
H-Bridge with DC Motor
S1 S2 S3 S4 Result
1 0 0 1 Move CW
0 1 1 0 Move CCW
0 0 0 0 Free Spin
0 1 0 1 Brake
1 0 1 0 Brake
1 1 0 0 Shoot-through
0 0 1 1 Shoot-through
1 1 1 1 Shoot-throughhttp://en.wikipedia.org/wiki/H_bridge
![Page 27: 1 Eric Taseski, Yihe Huang, Ronak Mehta H-Bridges and Stepper Motors 2](https://reader036.vdocuments.us/reader036/viewer/2022062407/56649d895503460f94a6f6a5/html5/thumbnails/27.jpg)
27
Microstepping
Half stepping with sinusoidal transitions between steps allowing theoretically infinitesimally small step sizes.
http://en.wikipedia.org/wiki/Stepper_motor