BOOSTXL-ULN2003 Dual Stepper Motor Driver
BoosterPack Hardware
User's Guide
Literature Number: SLCU002
September 2016
Contents
1
Introduction ......................................................................................................................... 5
1.1
2
3
4
5
2
BOOSTXL-ULN2003 Dual Stepper Motor Driver BoosterPack Overview ........................................ 5
Hardware Description ........................................................................................................... 6
2.1
Top and Bottom View .................................................................................................... 6
2.2
Board Overview
2.3
Block Diagram ............................................................................................................ 7
2.4
Connector, Switch, and LED Descriptions ............................................................................ 8
2.5
Powering the BOOSTXL-ULN2003................................................................................... 11
2.6
Other Hardware Highlights ............................................................................................ 13
..........................................................................................................
Interfacing With External Hardware
6
...................................................................................... 15
3.1
Connecting to a LaunchPad ........................................................................................... 15
3.2
Connecting a Motor or Other Peripherals ........................................................................... 15
3.3
Connecting to Other Development Boards .......................................................................... 16
Functional Modes ............................................................................................................... 17
4.1
Modes of Operation Overview ........................................................................................ 17
4.2
3-pin Serial Mode ....................................................................................................... 18
4.3
8-pin Parallel Mode ..................................................................................................... 19
Additional Information ........................................................................................................ 20
5.1
Design Files ............................................................................................................. 20
5.2
Software.................................................................................................................. 20
5.3
Hardware Change Log ................................................................................................. 20
5.4
Schematic................................................................................................................ 21
Table of Contents
SLCU002 – September 2016
Submit Documentation Feedback
Copyright © 2016, Texas Instruments Incorporated
www.ti.com
List of Figures
1
BOOSTXL-ULN2003 Connected to MSP-EXP430F5529LP ........................................................... 5
2
Top View of BOOSTXL-ULN2003 ......................................................................................... 6
3
Bottom View of BOOSTXL-ULN2003 ..................................................................................... 6
4
BOOSTXL-ULN2003 Top Side Overview................................................................................. 6
5
BOOSTXL-ULN2003 Block Diagram ...................................................................................... 7
6
BOOSTXL-ULN2003 2x20 Header Description .......................................................................... 8
7
Board Image of Switches ................................................................................................... 9
8
Schematic View of Switches
9
Board Image of LEDs ...................................................................................................... 10
10
Schematic View of LEDs .................................................................................................. 10
11
External Supply Connected to Motor Supply Pins ..................................................................... 11
12
On-Board Power OR-ing .................................................................................................. 11
13
USB Powering a Single Motor (See NOTE) ............................................................................ 12
14
BoosterPack With ULN2003A ............................................................................................ 13
15
BoosterPack With ULN2803A ............................................................................................ 13
16
Board Image of LED Section
17
LED Section With R5 Depopulated ...................................................................................... 14
18
Board Image of COM Diode Section
19
COM Diode Section With R14 Depopulated ............................................................................ 14
20
BoosterPack Connected to MSP430F5529 LaunchPad .............................................................. 15
21
BoosterPack With Two Stepper Motors ................................................................................. 15
22
BoosterPack with Motor and Male Expansion Header ................................................................ 16
23
BOOSTXL-ULN2003 Mode Overview ................................................................................... 17
24
3-Pin Mode Abbreviated Schematic (Zoom for Higher Resolution).................................................. 18
25
8-Pin Mode Abbreviated Schematic (Zoom for Higher Resolution).................................................. 19
26
BOOSTXL-ULN2003 Schematic (Zoom for Higher Resolution)...................................................... 21
...............................................................................................
.............................................................................................
....................................................................................
SLCU002 – September 2016
Submit Documentation Feedback
List of Figures
Copyright © 2016, Texas Instruments Incorporated
9
14
14
3
www.ti.com
List of Tables
4
.................................................................................
1
J1 and J2 Connector Pinout Description
2
Dip Switch Description ...................................................................................................... 9
3
LED Description ............................................................................................................ 10
4
Description of Hardware Changes ....................................................................................... 20
List of Tables
8
SLCU002 – September 2016
Submit Documentation Feedback
Copyright © 2016, Texas Instruments Incorporated
User's Guide
SLCU002 – September 2016
BOOSTXL-ULN2003 Dual Stepper Motor Driver
BoosterPack Hardware
1
Introduction
1.1
BOOSTXL-ULN2003 Dual Stepper Motor Driver BoosterPack Overview
The BOOSTXL-ULN2003 provides an easy-to-use development board to interface with up to two unipolar
stepper motors using any Launchpad in the Launchpad Ecosystem. This user’s guide details a hardware
description of the BoosterPack, how to interface the BoosterPack with external hardware, various modes
of operation, and additional features.
The BOOSTXL-ULN2003 allows for the control of eight high-current (up to 500 mA per channel), high
voltage (up to 30 V), sink outputs. These outputs are controlled either through a serial (3-pin) or parallel
(8-pin) mode. Using the BOOSTXL-ULN2003 in serial 3-pin mode allows for control of two unipolar
stepper motors while only requiring 3 General-Purpose Input/Output (GPIO) pins, ultimately allowing for
flexibility in design and reduction in the number of GPIO pins required.
The BOOSTXL-ULN2003 can not only be used to provide an interface to unipolar stepper motors, but also
can be used in the following applications.
• Relay Driving
• Solenoid Driving
• LED Driving
• High-Voltage Logic Level Shifting
For additional information regarding these applications, see What is a Peripheral Driver? Applications and
Design Considerations.
The Boosterpack is not limited to one specific application at a time, but can be used for all of these
applications simultaneously. For example, one BoosterPack could enable driving one stepper motor,
driving one relay, driving two LEDs, and shifting a 3.3-V logic signal to a 24-V logic signal at the same
time.
Figure 1. BOOSTXL-ULN2003 Connected to MSP-EXP430F5529LP
SLCU002 – September 2016
Submit Documentation Feedback
BOOSTXL-ULN2003 Dual Stepper Motor Driver BoosterPack Hardware
Copyright © 2016, Texas Instruments Incorporated
5
Hardware Description
www.ti.com
2
Hardware Description
2.1
Top and Bottom View
Figure 2 is a top view of the BOOSTXL-ULN2003, and Figure 3 is a bottom view of the
BOOSTXL-ULN2003.
Figure 2. Top View of BOOSTXL-ULN2003
2.2
Figure 3. Bottom View of BOOSTXL-ULN2003
Board Overview
Figure 4 shows an overview of the BOOSTXL-ULN2003 BoosterPack. The main features such as devices,
switches, connectors, and LEDs are highlighted.
Dev Board
Header for Other Dev Board Compatibility
J1, J3 Standard
BoosterPack Header
See Section 2.4 for additional details regarding each section.
J2, J4 Standard
BoosterPack Header
Figure 4. BOOSTXL-ULN2003 Top Side Overview
6
BOOSTXL-ULN2003 Dual Stepper Motor Driver BoosterPack Hardware
Copyright © 2016, Texas Instruments Incorporated
SLCU002 – September 2016
Submit Documentation Feedback
Hardware Description
www.ti.com
2.3
Block Diagram
Figure 5 details a block diagram of the BOOSTXL-ULN2003 BoosterPack. The 40-pin BoosterPack
header allows the BoosterPack to be interfaced with any LaunchPad in the MSP430 LaunchPad
ecosystem. See ti.com/launchpad for a list of all available MSP430 LaunchPads. A row of four switches
allow the user to choose between a parallel, direct-drive (8-pin) mode and a serial (3-pin) mode of control
of the ULN2003A.
The ULN2003A is a 7-channel Darlington pair array that is used to drive motors, solenoids, LEDs, or
relays. See the ULN2003A product folder for additional overview regarding this device. The CSD17571Q2
is a TI N-Channel NexFET Power MOSFET that is paired with the ULN2003A in order to enable an eighth
output channel. See the CSD17571Q2 product folder for additional overview regarding this device. The
SN74HC595 shift register enables the 3-pin control mode, ultimately reducing the number of GPIOs
required for driving eight output channels. See the SN74HC595 product folder for additional overview
regarding this device. See Section 4 for additional information on how to select between 3-pin mode and
8-pin mode.
Dual Stepper Motor Driver BoosterPack
BOOSTXL-ULN2003
Inputs
Dip Switches (x4)
VIN
+
8-Pin
Mode
3-Pin
Mode
Motor Supply
VIN
5V
Outputs
Power
OR-ing
VCC
VCC
3V3
AGND
VCC
5V
3V3
+
+
MSP430
Launchpad
-
40-pin
BoosterPack
Interface
SN74HC595
ULN2003A
+
CSD17571Q2
VCC
DGND
CH1-4 + Vcc
[Motor 1]
[4 Relays]
[4 LEDs]
CH5-8 + Vcc
[Motor 2]
[4 Relays]
[4 LEDs]
Copyright © 2016, Texas Instruments Incorporated
Figure 5. BOOSTXL-ULN2003 Block Diagram
SLCU002 – September 2016
Submit Documentation Feedback
BOOSTXL-ULN2003 Dual Stepper Motor Driver BoosterPack Hardware
Copyright © 2016, Texas Instruments Incorporated
7
Hardware Description
2.4
www.ti.com
Connector, Switch, and LED Descriptions
2.4.1
Connectors
The signal assignment on the BoosterPack pin connectors is shown in Figure 6. The J1-J4 descriptions on
the BoosterPack follow the J1-J4 convention for the Launchpad ecosystem. See ti.com/launchpad for
further description of the 40-pin BoosterPack standard.
Only the outer two pin columns, J1 and J2 (highlighted in red below) are required for BoosterPack
operation, the inner 2 columns, J3 and J4, are provided to pass signals from any 40-pin Launchpad to
other BoosterPack boards that may require these pins. The additional headers, J0, J5, and J6 are for
interfacing with other development boards. See Section 3.3 for details regarding connecting to other
development boards.
(1)
Pins with no name/description are not connected. Pins with the same name/description are shorted together.
(2)
*~ These pins are not required for BoosterPack operation.
(3)
* These pins are not connected out of the box. To enable control of this board through these pins, see
Section 4.3.1.
(4)
~ This pin is connected to IN4 out of the box. This allows for channels IN1-IN4 to be driven directly using 8pin parallel mode. A resistor is connected to protect the line from bus contention if 3-pin mode is being used
and this pin is being used for another purpose.
Figure 6. BOOSTXL-ULN2003 2x20 Header Description
Table 1. J1 and J2 Connector Pinout Description
Direction
Pin Name
Pin Number
Pin Number
Pin Name
Direction
POWER
VDD
J1.1
J2.20
DGND
POWER
INPUT
GP2*
J1.2
J2.19
J1.3
J2.18
J1.4
J2.17
J1.5
J2.16
J1.6
J2.15
J1.7
J2.14
J1.8
J2.13
GP13
INPUT
INPUT
INPUT
8
GP6*
GP8~
INPUT
GP9*
J1.9
J2.12
GP12
INPUT
INPUT
GP10*
J1.10
J2.11
GP11
INPUT
BOOSTXL-ULN2003 Dual Stepper Motor Driver BoosterPack Hardware
Copyright © 2016, Texas Instruments Incorporated
SLCU002 – September 2016
Submit Documentation Feedback
Hardware Description
www.ti.com
2.4.2
Switches
The four on-board dip switches are used to select between 3-pin mode and 8-pin mode operation of the
BoosterPack. Descriptions for each of the switches are provided in Table 2.
Figure 7. Board Image of Switches
IN1
IN2
R11
560
R12
560
1
4
2
5
3
6
GP11
GP12
SER
RCLK
S1
IN3
R13
560
3V3
1
4
2
5
3
6
GP13
OE
SRCLK
S2
DGND
Figure 8. Schematic View of Switches
Table 2. Dip Switch Description
Reference
Description
S1 - GP11
This SPDT switch directs the signal from BoosterPack header input GP11. If the switch
is down, it connects GP11 to the SER input of the SN74HC595. If the switch is up, it
connects GP11 directly to IN1 – ultimately connected to the gate of the CSD17571Q2
FET.
Switch Down = 3-pin Serial Mode
Switch Up = 8-pin Parallel Mode
S1 - GP12
This SPDT switch directs the signal from BoosterPack header input GP12. If the switch
is down, it connects GP12 to the RCLK input of the SN74HC595. If the switch is up, it
connects GP12 directly to IN2 – ultimately connected to 1B of the ULN2003A device.
Switch Down = 3-pin Serial Mode
Switch Up = 8-pin Parallel Mode
S2 - GP13
This SPDT switch directs the signal from BoosterPack header input GP13. If the switch
is down, it connects GP13 to the SRCLK input of the SN74HC595. If the switch is up, it
connects GP13 directly to IN3 – ultimately connected to the 2B of the ULN2003A
device.
Switch Down = 3-pin Serial Mode
Switch Up = 8-pin Parallel Mode
S2 - HC595
This SPDT switch connects the OE pin either to 3V3 or DGND. This determines
whether or not the SN74HC595 outputs are enabled or are in high-impedance (Hi-Z)
mode. If the switch is down, it enables the SN74HC595 outputs. If the switch is up, it
disables the SN74HC595 outputs. Disabling these outputs is required for 8-pin Parallel
Mode to avoid bus contention at the inputs of the ULN2003A and the CSD17571Q2
FET.
Switch Down = 3-pin Serial Mode
Switch Up = 8-pin Parallel Mode
SLCU002 – September 2016
Submit Documentation Feedback
BOOSTXL-ULN2003 Dual Stepper Motor Driver BoosterPack Hardware
Copyright © 2016, Texas Instruments Incorporated
9
Hardware Description
2.4.3
www.ti.com
LEDs
The four on-board LEDs provide visual feedback for the IN1 through IN4 signals. When operating in 3-pin
mode these LEDs are driven by the SN74HC595, and when operating in 8-pin mode these LEDs are
being driven directly by the MSP430 GPIO pins.
If the user wants to disable the onboard LEDs, resistor R5 can be removed. Additional details are found in
Section 2.6.2.
R7
1.0k
1
D4
Green
2
D3
Green
2
D2
Green
2
2
D1
Green
R1
1.0k
IN4
1
IN3
1
IN2
1
IN1
R3
1.0k
R4
1.0k
R5
0
DGND
Figure 9. Board Image of LEDs
Figure 10. Schematic View of LEDs
Table 3. LED Description
Reference
10
Description
D1
D1 is connected to the signal IN1. D1 is on when IN1 is high, and is off when IN1 is low.
When IN1 is high, M1_CH1 is activated – ultimately being pulled to AGND as the CSD17571Q2
inverts the logic signal.
D2
D2 is connected to the signal IN2. D2 is on when IN2 is high, and is off when IN2 is low.
When IN2 is high, M1_CH2 is activated – ultimately being pulled to AGND as the ULN2003A inverts
the logic signal.
D3
D3 is connected to the signal IN3. D3 is on when IN3 is high, and is off when IN3 is low.
When IN3 is high, M1_CH3 is activated – ultimately being pulled to AGND as the ULN2003A inverts
the logic signal.
D4
D4 is connected to the signal IN4. D4 is on when IN4 is high, and is off when IN4 is low.
When IN4 is high, M1_CH4 is activated – ultimately being pulled to AGND as the ULN2003A inverts
the logic signal.
BOOSTXL-ULN2003 Dual Stepper Motor Driver BoosterPack Hardware
Copyright © 2016, Texas Instruments Incorporated
SLCU002 – September 2016
Submit Documentation Feedback
Hardware Description
www.ti.com
2.5
2.5.1
Powering the BOOSTXL-ULN2003
Powering the On-Board Devices
The BoosterPack is designed to accept power from a connected Launchpad. The 3.3 V line from the
Launchpad is required to power the SN74HC595 device. The 3.3 V line from the LaunchPad cannot
source enough current to power motors, relays, or LEDs, so an additional source of power is required as
described in Section 2.5.2.
2.5.2
Powering the Motor or Other Peripherals
The method of powering the external peripherals is dependent upon the LaunchPad being used in addition
to the output current requirements.
For higher current or voltage applications, the external motor supply pins should be connected to an
external supply as shown in Figure 11. The maximum voltage supplied through these pins should not
exceed 30 V, or permanent damage to components may occur. While there is some protection against
reverse polarity included on the board, note the correct orientation of the motor supply pins to avoid
permanent damage to the board.
Figure 11. External Supply Connected to Motor Supply Pins
As shown in Figure 12, the VCC connected to the motor peripheral to provide power is created by using
power OR-ing diodes.
• If there is no 5-V line available from the LaunchPad, the motor supply is required to power the external
peripherals.
• If there is a 5-V line connected, and no motor supply is connected, the VCC pins provide a voltage
close to 5 V.
• If there is a 5-V line connected, and the motor supply voltage is connected and greater than 5 V, the
motor supply is used to power any external peripherals.
VIN
D7
D8
VCC
5V
J9
1
2
C1
1µF
R15
0
AGND
DGND
Figure 12. On-Board Power OR-ing
SLCU002 – September 2016
Submit Documentation Feedback
BOOSTXL-ULN2003 Dual Stepper Motor Driver BoosterPack Hardware
Copyright © 2016, Texas Instruments Incorporated
11
Hardware Description
www.ti.com
Some LaunchPad boards have a 5-V supply pin, which is powered directly from the USB port. This supply
can be used to power peripherals, as shown in Figure 13, but there are some exceptions to when this can
be used (See the following NOTE). The 5-V stepper motor used in Figure 13 below has the following DigiKey Part Number: 1528-1366-ND. A 12-V version of this stepper motor has the following Digi-Key Part
Number: 1528-1367-ND.
Figure 13. USB Powering a Single Motor (See NOTE)
NOTE: When using the 5-V pin (USB Power) to provide power to an external peripheral, TI does not
recommend to exceed 250 mA, and further caution should be taken when powering
additional BoosterPacks. TI does not recommend to power more than one stepper motor
from this board when using the 5-V LaunchPad power pin.
12
BOOSTXL-ULN2003 Dual Stepper Motor Driver BoosterPack Hardware
Copyright © 2016, Texas Instruments Incorporated
SLCU002 – September 2016
Submit Documentation Feedback
Hardware Description
www.ti.com
2.6
2.6.1
Other Hardware Highlights
Additional Device Compatibility
While the board initially comes populated with a ULN2003A device, this board is compatible with many
other pin-to-pin devices that perform a similar function. As shown in Figure 14, the Boosterpack has the
landing pattern for both the 16-pin D (SOIC) as well as the 18-pin DW (WIDE SOIC) package. Figure 15
shows the Boosterpack populated with the ULN2803A device.
If the ULN2003A device is depopulated, the following list of devices can be populated in order to be
evaluated.
• ULQ2003A - –40°C to +105°C Temperature Range
• ULQ2003-Q1 - Automotive Qualified Variant
• ULN2003LV - FET based variant
• ULN2003V12 - Wider-Voltage FET based variant
• ULN2803 - 8 channel variant
• TPL7407L - FET based variant with 40V outputs and drive circuitry to decrease power dissipation
ULN2803A
ULN2003A
Figure 14. BoosterPack With ULN2003A
SLCU002 – September 2016
Submit Documentation Feedback
Figure 15. BoosterPack With ULN2803A
BOOSTXL-ULN2003 Dual Stepper Motor Driver BoosterPack Hardware
Copyright © 2016, Texas Instruments Incorporated
13
Hardware Description
2.6.2
www.ti.com
Disabling the On-Board LEDs
Figure 16 shows the section of the board with the LEDs. The R5 resistor is labeled LED ENABLE because
when a 0-Ω resistor is populated here, it allows a path for current flow through the LEDs. The on-board
LEDs can be disabled easily by depopulating this R5 resistor. Figure 17 shows the resistor depopulated,
so there is no longer a path for current to flow through the LEDs, thereby disabling them.
Figure 16. Board Image of LED Section
2.6.3
Figure 17. LED Section With R5 Depopulated
Enabling Quick Inductor Discharge
The ULN2003A has internal flyback diodes to suppress voltage spikes due to inductive kickback. Stepper
Motors and relays have inductive kickback that is suppressed by these internal diodes. The rate of
discharge of the inductor is also directly proportional to the voltage across the inductor when discharging.
Figure 18 shows the section of the board near the COM pin of the ULN2003A device. Diode D5, also
labeled Flyback COM diode, is a 12-V Zener diode that is in series with the internal flyback diodes of the
ULN2003A. Normally there is a 0-Ω resistor (R14) in parallel with this Zener diode, also labeled Diode
Bypass, effectively bypassing the Zener diode. To enable the quick inductor discharge, the Diode Bypass
resistor (R14) should be depopulated. Figure 19 shows the board with this resistor depopulated, ultimately
enabling quick inductor discharge.
Figure 18. Board Image of COM Diode Section
14
Figure 19. COM Diode Section With R14 Depopulated
BOOSTXL-ULN2003 Dual Stepper Motor Driver BoosterPack Hardware
Copyright © 2016, Texas Instruments Incorporated
SLCU002 – September 2016
Submit Documentation Feedback
Interfacing With External Hardware
www.ti.com
3
Interfacing With External Hardware
3.1
Connecting to a LaunchPad
The BoosterPack is ready to connect to any LaunchPad out of the box. Figure 20 shows the correct
orientation of the BoosterPack on the LaunchPad.
CAUTION
The connectors should be aligned carefully as misalignment could cause
permanent damage to the BoosterPack.
Figure 20. BoosterPack Connected to MSP430F5529 LaunchPad
3.2
Connecting a Motor or Other Peripherals
The Boosterpack provides two standard 100 mil spacing female receptacles to interface two unipolar
stepper motors or other peripherals such as relays, solenoids, or LEDs.
Each receptacle provides a six-pin interface. Four pins are dedicated to the outputs of the ULN2003A and
CSD17571Q2 to drive the peripheral, and two pins are connected to the motor supply that is connected to
the board. These two VCC pins allow for connection to both 5-pin and 6-pin type Unipolar stepper motors.
Figure 21 shows two 5-pin unipolar motors connected to the BoosterPack.
Figure 21. BoosterPack With Two Stepper Motors
SLCU002 – September 2016
Submit Documentation Feedback
BOOSTXL-ULN2003 Dual Stepper Motor Driver BoosterPack Hardware
Copyright © 2016, Texas Instruments Incorporated
15
Interfacing With External Hardware
www.ti.com
As shown in Figure 22, a male to male header can also be added to the receptacle to help interface with
standard 5-pin or 6-pin unipolar stepper motors with female receptacles.
Figure 22. BoosterPack with Motor and Male Expansion Header
3.3
Connecting to Other Development Boards
The BoosterPack is compatible with Arduino development boards, but some additional hardware is
required beyond what is supplied in the box. The following list shows the additional required materials.
These must be populated on the BoosterPack to enable a hardware interface with the development board.
• J0 Male Pin Header
• J5 Male Pin Header
• J6 Male Pin Header
Once the additional headers are populated, the BoosterPack can be connected to the development board.
NOTE:
16
The BoosterPack must be placed on the development board upside down for the pins to
align properly.
BOOSTXL-ULN2003 Dual Stepper Motor Driver BoosterPack Hardware
Copyright © 2016, Texas Instruments Incorporated
SLCU002 – September 2016
Submit Documentation Feedback
Functional Modes
www.ti.com
4
Functional Modes
4.1
Modes of Operation Overview
Figure 23 provides a brief overview of how the Boosterpack pins are connected to either the SN74HC595
or the ULN2003A based on the selected mode of operation. Additional details for 3-pin mode and 8-pin
mode can be found in Section 4.2 and Section 4.3 respectively.
(1)
*There are NO resistors populated for pins GP6, GP2, GP9, and GP10, therefore there will be no direct
connection to IN5, IN6, IN7, and IN8 respectively. 0 Ohm or solder bridge connections can be made to
connect these pins in order to enable the full functionality of 8 pin mode. See Section 4.3.1 for additional
details
(2)
~There IS a resistor populated for pin IN4, therefore it can be used in 8-pin mode without bus contention;
however, in 3-pin mode it will draw current if GP8 is set low. The resistor allows IN4 and GP8 to be different
voltage levels when GP8 is being used for another purpose while the Boosterpack is in 3-pin mode. See
Section 4.2.1 for additional details.
Figure 23. BOOSTXL-ULN2003 Mode Overview
SLCU002 – September 2016
Submit Documentation Feedback
BOOSTXL-ULN2003 Dual Stepper Motor Driver BoosterPack Hardware
Copyright © 2016, Texas Instruments Incorporated
17
Functional Modes
4.2
4.2.1
www.ti.com
3-pin Serial Mode
Enabling 3-pin Mode
The BoosterPack has all of the required components to run 3-pin Mode out of the box. To enable this
mode of operation, the four dip switches should be in the lower position. Each switch works as defined in
Table 2.
4.2.2
3-pin Mode of Operation
Figure 24 shows the effective schematic for the 3-pin mode of operation. Inputs GP11, GP12, and GP13
from the microcontroller are used to drive the inputs of the SN74HC595 device. This 8-bit shift register
converts the serial input data to parallel output data to control the ULN2003A channels. For example
software to drive the SN74HC595, see Section 5.2.
D7
VIN
D8
VCC
5V
J9
VCC
DB2W40200L
DB2W40200L
C1
1µF
IN1
R15
R14
0
COM
D5
0
AGND
C3
0.1 µF
U1
9
DGND
TP1
7
QH
SER
3V3
11
10
GP12
12
13
DGND
SRCLK
QE
SRCLR
QD
RCLK
QC
OE
16
C2
0.1 µF
1
IN3
TP3
5
2
IN4
TP4
4
3
IN5
3
4
IN6
2
5
IN7
1
QB
VCC
9
IN2
QF
6
IN8
15
QA
M1_CH1
7
COM
J7
1
2
3
4
5
6
M1_CH2
1B
1C
2B
2C
3B
3C
4B
4C
5B
5C
6B
6C
7B
7C
GND
SN74HC595DR
16
M1_CH3
VCC
15
M1_CH4
14
M2_CH5
13
M2_CH6
1
2
3
4
5
6
12
M2_CH7
11
M2_CH8
10
VCC
J8
8
ULN2003ADR
IN3
R1
1.0k
R7
1.0k
AGND
D4
Green
2
D3
Green
2
D2
Green
2
2
D1
Green
IN4
1
IN2
1
IN1
1
DGND
1
Launchpad Inputs
14
GP13
Q1
AGND CSD17571Q2
IN1
TP2
6
QG
GP11
AGND
U2
1,2,
5,6,8
4,7
Motor/Peripheral Outputs
8
QH'
D6
DB2W 40200L
12V
DGND
GND
COM
3
1
2
R3
1.0k
R4
1.0k
R5
0
Copyright © 2016, Texas Instruments Incorporated
DGND
Figure 24. 3-Pin Mode Abbreviated Schematic (Zoom for Higher Resolution)
18
BOOSTXL-ULN2003 Dual Stepper Motor Driver BoosterPack Hardware
Copyright © 2016, Texas Instruments Incorporated
SLCU002 – September 2016
Submit Documentation Feedback
Functional Modes
www.ti.com
4.3
4.3.1
8-pin Parallel Mode
Enabling 8-pin Mode
The BoosterPack has the required components to run ONLY 4 pins of the 8-pin Mode out of the box.
Ultimately, this allows control of a single stepper motor in a parallel control mode, so additional
components are required to enable control of all 8 outputs in parallel mode. To use 8-pin mode, the four
dip switches should be in the upper position. Each switch works as defined in Table 2.
To enable all 8 pins for this mode of operation, a 0-Ω resistor or solder bridge should be populated on the
pads for resistors R6, R2, R9, and R10 to enable IN5, IN6, IN7, and IN8 respectively.
NOTE: The 560-Ω resistors exist on IN1, IN2, IN3, and IN4 to help protect against bus contention if
the IN1, IN2, IN3, and IN4 pins are being driven by both the SN74HC595 and the
microcontroller. This should only happen if the dip switches are in the wrong position. If the
intent is to use the device in the 8-pin mode, and the switches are set properly, then there
should be no potential for bus contention, and therefore 560-Ω resistors are not required for
R6, R2, R9, and R10.
4.3.2
8-pin Mode of Operation
Figure 25 shows the effective schematic for the 8-pin mode of operation. Inputs GP11, GP12, GP13, GP8,
GP6, GP2, GP9, and GP10 from the microcontroller are used to drive the inputs of the ULN2003A device
directly. For example software to drive unipolar stepper motors using the ULN2003A, see Section 5.2.
1
2
D7
D8
VCC
5V
VCC
DB2W40200L
DB2W40200L
C1
1µF
IN1
R15
R14
0
COM
D5
0
AGND
C3
0.1 µF
Launchpad Inputs
TP1
GP12
560
GP8
560
9
IN2
R12
560
R13
TP2
TP3
2
IN4
R8
TP4
560
R6
GP2
0
GP10
0
3
IN5
4
IN6
R2
0
R9
1
IN3
X
DNP X
DNP
X
DNP X
DNP
GP9
Q1
AGND CSD17571Q2
M1_CH1
J7
1
2
3
4
5
6
IN1
R11
GP6
1,2,
5,6,8
4,7
5
IN7
6
IN8
R10
7
COM
M1_CH2
1B
1C
2B
2C
3B
3C
4B
4C
5B
5C
6B
6C
7B
7C
16
M1_CH3
VCC
15
M1_CH4
14
M2_CH5
13
M2_CH6
M2_CH7
11
M2_CH8
10
VCC
0
GND
1
2
3
4
5
6
12
J8
8
Motor/Peripheral Outputs
AGND
U2
GP13
D6
DB2W 40200L
12V
DGND
GP11
COM
3
VIN
J9
ULN2003ADR
R1
1.0k
R7
1.0k
1
AGND
D4
Green
2
D3
Green
2
D2
Green
2
2
D1
Green
IN4
1
IN3
1
IN2
1
IN1
R3
1.0k
R4
1.0k
R5
0
Copyright © 2016, Texas Instruments Incorporated
DGND
Figure 25. 8-Pin Mode Abbreviated Schematic (Zoom for Higher Resolution)
SLCU002 – September 2016
Submit Documentation Feedback
BOOSTXL-ULN2003 Dual Stepper Motor Driver BoosterPack Hardware
Copyright © 2016, Texas Instruments Incorporated
19
Additional Information
www.ti.com
5
Additional Information
5.1
Design Files
All design files including schematics, layout, Bill of Materials (BOM), Gerber files, and documentation are
made available in the Texas Instruments Resource Explorer:
dev.ti.com/tirex
The schematic for the design is also attached as Figure 26 to the end of the document for quick reference.
5.2
Software
For software examples including the out-of-box experience, 3-pin mode driving, and 8-pin mode driving,
see dev.ti.com/BOOSTXL-ULN2003.
For additional information regarding stepper motor driving patterns, including half-step, full-step, and wave
drive, see Stepper Motor Driving with Peripheral Drivers (Driver ICs)
5.3
Hardware Change Log
Table 4. Description of Hardware Changes
PCB Revision
Rev 1.0
20
Description of Changes
• Initial Release
BOOSTXL-ULN2003 Dual Stepper Motor Driver BoosterPack Hardware
Copyright © 2016, Texas Instruments Incorporated
SLCU002 – September 2016
Submit Documentation Feedback
Additional Information
www.ti.com
5.4
Schematic
D7
VIN
D8
VCC
5V
J9
1
2
DB2W40200L
C1
1µF
DB2W40200L
R15
0
AGND
IN1
IN2
IN3
DGND
VCC
IN1
DNP
J5
DGND
GP2
R12
560
1
4
2
5
GP11
1
2
3
4
5
6
7
8
9
10
SER
3
X
GP8
GP9
GP13
SRCLK
6
X
GP10
4
2
5
D5
OE
12V
U1
6
GND
GP2
GP6
GP8
GP9
5V
1
2
3
4
5
6
7
8
9
10
+3.3V
Analog_In
LP_ UART_RX
LP_ UART_TX
GPIO!
Analog In
SPI_CLK
GPIO!
I2C_SCL
I2C_SDA
+5V
GND
Analog_In
Analog_In
Analog_In
Analog_In
Analog_In/I2S_WS
Analog_In/I2S_ SCLK
Analog_Out/I2S_ SDout
Analog_Out/I2S_ SDin
21
22
23
24
25
26
27
28
29
30
GP6
R8
GP2
DGND
GP9
560
X
X
X
X
GP10
R6
560
R2
560
R9
560
R10
560
SSQ-110-03-T-D
QH'
IN4
QH
IN5
DNP
DNP
IN7
DNP
IN6
QG
SER
14
SRCLK
3V3
11
10
RCLK
12
IN8
OE
DNP
13
16
C2
0.1 µF
SER
QF
SRCLK
QE
SRCLR
QD
RCLK
QC
OE
QB
VCC
QA
AGND
U2
DGND
TP1
7
9
1
IN3
TP3
2
IN4
TP4
4
J6
COM
IN2
5
DNP
M1_CH1
J7
1
2
3
4
5
6
IN1
TP2
6
D6
DB2W 40200L
Q1
AGND CSD17571Q2
8
9
COM
1,2,
5,6,8
4,7
C3
0.1 µF
S2
GP8
R14
0
COM
3V3
DGND
GP10
J0
1
3
J1/J3
DNP
1
2
3
4
5
6
7
8
GP12
RCLK
S1
3V3
GP6
R13
560
3
R11
560
3
IN5
3
4
IN6
2
5
IN7
1
6
IN8
15
7
M1_CH2
1B
1C
2B
2C
3B
3C
4B
4C
5B
5C
6B
6C
7B
7C
GND
SN74HC595DR
16
M1_CH3
J2/J4
VCC
15
40
39
38
37
36
35
34
33
32
31
M1_CH4
14
M2_CH5
13
M2_CH6
1
2
3
4
5
6
12
M2_CH7
11
M2_CH8
10
PWM/ GPIO!
PWM/ GPIO!
PWM/ GPIO!
PWM/ GPIO!
Timer_Cap/ GPIO!
Timer_Cap/ GPIO!
GPIO!
GPIO!
GPIO!
GPIO!
X
GND
PWM/ GPIO!
GPIO!
GPIO
RST
SPI_ MOSI
SPI_ MISO
SPI_CS/ GPIO!
SPI_CS/ GPIO!
GPIO!
5
4
3
2
1
20
19
18
17
16
15
14
13
12
11
3V3
DGND
GP13
GP12
GP11
SSQ-110-03-T-D
VCC
J8
8
ULN2003ADR
DGND
X
IN3
3
IN4
4
IN5
5
IN6
6
IN7
7
IN8
8
IN2
IN3
IN4
3B
4C
4B
5C
5B
6C
6B
7C
7B
8C
8B
GND
1
3C
1
2C
2B
1
1B
18
M1_CH2
17
D1
Green
M1_CH3
16
D2
Green
D3
Green
D4
Green
2
2
1C
2
1
IN2
COM
2
IN1
IN1
M1_CH1
U3
1
10
2
COM
AGND
M1_CH4
15
M2_CH5
14
M2_CH6
R1
1.0k
R7
1.0k
R3
1.0k
R4
1.0k
13
M2_CH7
12
M2_CH8
R5
0
11
9
DGND
ULN2803ADW
DNP
Copyright © 2016, Texas Instruments Incorporated
AGND
Figure 26. BOOSTXL-ULN2003 Schematic (Zoom for Higher Resolution)
NOTE: DNP is an abbreviation for do not populate. Components highlighted as DNP in the schematic are not populated out of the box.
SLCU002 – September 2016
Submit Documentation Feedback
BOOSTXL-ULN2003 Dual Stepper Motor Driver BoosterPack Hardware
Copyright © 2016, Texas Instruments Incorporated
21
22
BOOSTXL-ULN2003 Dual Stepper Motor Driver BoosterPack Hardware
SLCU002 – September 2016
Submit Documentation Feedback
Additional Information
www.ti.com
IMPORTANT NOTICE FOR TI DESIGN INFORMATION AND RESOURCES
Texas Instruments Incorporated (‘TI”) technical, application or other design advice, services or information, including, but not limited to,
reference designs and materials relating to evaluation modules, (collectively, “TI Resources”) are intended to assist designers who are
developing applications that incorporate TI products; by downloading, accessing or using any particular TI Resource in any way, you
(individually or, if you are acting on behalf of a company, your company) agree to use it solely for this purpose and subject to the terms of
this Notice.
TI’s provision of TI Resources does not expand or otherwise alter TI’s applicable published warranties or warranty disclaimers for TI
products, and no additional obligations or liabilities arise from TI providing such TI Resources. TI reserves the right to make corrections,
enhancements, improvements and other changes to its TI Resources.
You understand and agree that you remain responsible for using your independent analysis, evaluation and judgment in designing your
applications and that you have full and exclusive responsibility to assure the safety of your applications and compliance of your applications
(and of all TI products used in or for your applications) with all applicable regulations, laws and other applicable requirements. You
represent that, with respect to your applications, you have all the necessary expertise to create and implement safeguards that (1)
anticipate dangerous consequences of failures, (2) monitor failures and their consequences, and (3) lessen the likelihood of failures that
might cause harm and take appropriate actions. You agree that prior to using or distributing any applications that include TI products, you
will thoroughly test such applications and the functionality of such TI products as used in such applications. TI has not conducted any
testing other than that specifically described in the published documentation for a particular TI Resource.
You are authorized to use, copy and modify any individual TI Resource only in connection with the development of applications that include
the TI product(s) identified in such TI Resource. NO OTHER LICENSE, EXPRESS OR IMPLIED, BY ESTOPPEL OR OTHERWISE TO
ANY OTHER TI INTELLECTUAL PROPERTY RIGHT, AND NO LICENSE TO ANY TECHNOLOGY OR INTELLECTUAL PROPERTY
RIGHT OF TI OR ANY THIRD PARTY IS GRANTED HEREIN, including but not limited to any patent right, copyright, mask work right, or
other intellectual property right relating to any combination, machine, or process in which TI products or services are used. Information
regarding or referencing third-party products or services does not constitute a license to use such products or services, or a warranty or
endorsement thereof. Use of TI Resources may require a license from a third party under the patents or other intellectual property of the
third party, or a license from TI under the patents or other intellectual property of TI.
TI RESOURCES ARE PROVIDED “AS IS” AND WITH ALL FAULTS. TI DISCLAIMS ALL OTHER WARRANTIES OR
REPRESENTATIONS, EXPRESS OR IMPLIED, REGARDING TI RESOURCES OR USE THEREOF, INCLUDING BUT NOT LIMITED TO
ACCURACY OR COMPLETENESS, TITLE, ANY EPIDEMIC FAILURE WARRANTY AND ANY IMPLIED WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, AND NON-INFRINGEMENT OF ANY THIRD PARTY INTELLECTUAL
PROPERTY RIGHTS.
TI SHALL NOT BE LIABLE FOR AND SHALL NOT DEFEND OR INDEMNIFY YOU AGAINST ANY CLAIM, INCLUDING BUT NOT
LIMITED TO ANY INFRINGEMENT CLAIM THAT RELATES TO OR IS BASED ON ANY COMBINATION OF PRODUCTS EVEN IF
DESCRIBED IN TI RESOURCES OR OTHERWISE. IN NO EVENT SHALL TI BE LIABLE FOR ANY ACTUAL, DIRECT, SPECIAL,
COLLATERAL, INDIRECT, PUNITIVE, INCIDENTAL, CONSEQUENTIAL OR EXEMPLARY DAMAGES IN CONNECTION WITH OR
ARISING OUT OF TI RESOURCES OR USE THEREOF, AND REGARDLESS OF WHETHER TI HAS BEEN ADVISED OF THE
POSSIBILITY OF SUCH DAMAGES.
You agree to fully indemnify TI and its representatives against any damages, costs, losses, and/or liabilities arising out of your noncompliance with the terms and provisions of this Notice.
This Notice applies to TI Resources. Additional terms apply to the use and purchase of certain types of materials, TI products and services.
These include; without limitation, TI’s standard terms for semiconductor products http://www.ti.com/sc/docs/stdterms.htm), evaluation
modules, and samples (http://www.ti.com/sc/docs/sampterms.htm).
Mailing Address: Texas Instruments, Post Office Box 655303, Dallas, Texas 75265
Copyright © 2017, Texas Instruments Incorporated
SLCU002 – September 2016
Submit Documentation Feedback
BOOSTXL-ULN2003 Dual Stepper Motor Driver BoosterPack Hardware
Copyright © 2016, Texas Instruments Incorporated
23
IMPORTANT NOTICE FOR TI DESIGN INFORMATION AND RESOURCES
Texas Instruments Incorporated (‘TI”) technical, application or other design advice, services or information, including, but not limited to,
reference designs and materials relating to evaluation modules, (collectively, “TI Resources”) are intended to assist designers who are
developing applications that incorporate TI products; by downloading, accessing or using any particular TI Resource in any way, you
(individually or, if you are acting on behalf of a company, your company) agree to use it solely for this purpose and subject to the terms of
this Notice.
TI’s provision of TI Resources does not expand or otherwise alter TI’s applicable published warranties or warranty disclaimers for TI
products, and no additional obligations or liabilities arise from TI providing such TI Resources. TI reserves the right to make corrections,
enhancements, improvements and other changes to its TI Resources.
You understand and agree that you remain responsible for using your independent analysis, evaluation and judgment in designing your
applications and that you have full and exclusive responsibility to assure the safety of your applications and compliance of your applications
(and of all TI products used in or for your applications) with all applicable regulations, laws and other applicable requirements. You
represent that, with respect to your applications, you have all the necessary expertise to create and implement safeguards that (1)
anticipate dangerous consequences of failures, (2) monitor failures and their consequences, and (3) lessen the likelihood of failures that
might cause harm and take appropriate actions. You agree that prior to using or distributing any applications that include TI products, you
will thoroughly test such applications and the functionality of such TI products as used in such applications. TI has not conducted any
testing other than that specifically described in the published documentation for a particular TI Resource.
You are authorized to use, copy and modify any individual TI Resource only in connection with the development of applications that include
the TI product(s) identified in such TI Resource. NO OTHER LICENSE, EXPRESS OR IMPLIED, BY ESTOPPEL OR OTHERWISE TO
ANY OTHER TI INTELLECTUAL PROPERTY RIGHT, AND NO LICENSE TO ANY TECHNOLOGY OR INTELLECTUAL PROPERTY
RIGHT OF TI OR ANY THIRD PARTY IS GRANTED HEREIN, including but not limited to any patent right, copyright, mask work right, or
other intellectual property right relating to any combination, machine, or process in which TI products or services are used. Information
regarding or referencing third-party products or services does not constitute a license to use such products or services, or a warranty or
endorsement thereof. Use of TI Resources may require a license from a third party under the patents or other intellectual property of the
third party, or a license from TI under the patents or other intellectual property of TI.
TI RESOURCES ARE PROVIDED “AS IS” AND WITH ALL FAULTS. TI DISCLAIMS ALL OTHER WARRANTIES OR
REPRESENTATIONS, EXPRESS OR IMPLIED, REGARDING TI RESOURCES OR USE THEREOF, INCLUDING BUT NOT LIMITED TO
ACCURACY OR COMPLETENESS, TITLE, ANY EPIDEMIC FAILURE WARRANTY AND ANY IMPLIED WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, AND NON-INFRINGEMENT OF ANY THIRD PARTY INTELLECTUAL
PROPERTY RIGHTS.
TI SHALL NOT BE LIABLE FOR AND SHALL NOT DEFEND OR INDEMNIFY YOU AGAINST ANY CLAIM, INCLUDING BUT NOT
LIMITED TO ANY INFRINGEMENT CLAIM THAT RELATES TO OR IS BASED ON ANY COMBINATION OF PRODUCTS EVEN IF
DESCRIBED IN TI RESOURCES OR OTHERWISE. IN NO EVENT SHALL TI BE LIABLE FOR ANY ACTUAL, DIRECT, SPECIAL,
COLLATERAL, INDIRECT, PUNITIVE, INCIDENTAL, CONSEQUENTIAL OR EXEMPLARY DAMAGES IN CONNECTION WITH OR
ARISING OUT OF TI RESOURCES OR USE THEREOF, AND REGARDLESS OF WHETHER TI HAS BEEN ADVISED OF THE
POSSIBILITY OF SUCH DAMAGES.
You agree to fully indemnify TI and its representatives against any damages, costs, losses, and/or liabilities arising out of your noncompliance with the terms and provisions of this Notice.
This Notice applies to TI Resources. Additional terms apply to the use and purchase of certain types of materials, TI products and services.
These include; without limitation, TI’s standard terms for semiconductor products http://www.ti.com/sc/docs/stdterms.htm), evaluation
modules, and samples (http://www.ti.com/sc/docs/sampterms.htm).
Mailing Address: Texas Instruments, Post Office Box 655303, Dallas, Texas 75265
Copyright © 2017, Texas Instruments Incorporated