user manual - um2393 - getting started with the x-nucleo ...€¦ · 1 hardware and software...

14
Introduction The X-NUCLEO-IHM15A1 dual brush DC motor driver expansion board is based on the STSPIN840 for STM32 Nucleo. It provides an affordable and easy-to-use solution for the implementation of compact motor driving applications such as thermal printers, robotics and toys. Thanks to the parallel operation, it can be easily converted to a single brush DC driver with double current capability. The current limiters and complete set of protection features make it suitable for rugged applications. The X-NUCLEO-IHM15A1 is compatible with the Arduino UNO R3 connector and most STM32 Nucleo boards. Figure 1. X-NUCLEO-IHM15A1 expansion board Getting started with the X-NUCLEO-IHM15A1 dual brush DC motor driver expansion based on STSPIN840 for STM32Nucleo UM2393 User manual UM2393 - Rev 1 - May 2018 For further information contact your local STMicroelectronics sales office. www.st.com

Upload: others

Post on 08-Oct-2020

4 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: User manual - UM2393 - Getting started with the X-NUCLEO ...€¦ · 1 Hardware and software requirements The main features of the X-NUCLEO-IHM15A1 expansion board are: • Voltage

IntroductionThe X-NUCLEO-IHM15A1 dual brush DC motor driver expansion board is based on the STSPIN840 for STM32 Nucleo.

It provides an affordable and easy-to-use solution for the implementation of compact motor driving applications such as thermalprinters, robotics and toys.

Thanks to the parallel operation, it can be easily converted to a single brush DC driver with double current capability.

The current limiters and complete set of protection features make it suitable for rugged applications.

The X-NUCLEO-IHM15A1 is compatible with the Arduino UNO R3 connector and most STM32 Nucleo boards.

Figure 1. X-NUCLEO-IHM15A1 expansion board

Getting started with the X-NUCLEO-IHM15A1 dual brush DC motor driver expansion based on STSPIN840 for STM32Nucleo

UM2393

User manual

UM2393 - Rev 1 - May 2018For further information contact your local STMicroelectronics sales office.

www.st.com

Page 2: User manual - UM2393 - Getting started with the X-NUCLEO ...€¦ · 1 Hardware and software requirements The main features of the X-NUCLEO-IHM15A1 expansion board are: • Voltage

1 Hardware and software requirements

The main features of the X-NUCLEO-IHM15A1 expansion board are:• Voltage range from 7 to 45 V• Output current up to 1.5 Arms for each motor• Two independent current limiters with adjustable OFF time• Full protection set including: overcurrent, short-circuit, under voltage lock out and thermal shutdown• Parallel operation• Compatible with Arduino UNO R3 connector• Compatible with STM32 Nucleo boards

To use the STM32 Nucleo development boards with the X-NUCLEO-IHM15A1 expansion board, the followingsoftware and hardware specifications are required:• an STM32 Nucleo development board (NUCLEO-F401RE, NUCLEO-F334R8 or NUCLEO-F030R8)• an X-NUCLEO-IHM15A1 expansion board• the X-CUBE-SPN15 software package (available on www.st.com)• a PC/laptop with Microsoft Windows (7 and above) to install the software package (X-CUBE-SPN15)• a type A USB to mini-B USB cable to connect the STM32 Nucleo board to the PC/laptop• an IDE chosen from among IAR Embedded Workbench for ARM (EWARM), Keil microcontroller

development kit (MDK-ARM) and system workbench for STM32 Nucleo project• up to two dual brush DC motors with compatible voltage and current ratings for the STSPIN840 driver• an external power supply able to provide the right voltage for the DC motor used

UM2393Hardware and software requirements

UM2393 - Rev 1 page 2/14

Page 3: User manual - UM2393 - Getting started with the X-NUCLEO ...€¦ · 1 Hardware and software requirements The main features of the X-NUCLEO-IHM15A1 expansion board are: • Voltage

2 Safety precautions

Danger:

Some of the components mounted on the board could reach hazardous temperatureduring operation.

While using the board:• Do not touch the components• Do not cover the board• Do not put the board in contact with flammable materials or with materials releasing smoke when heated• After operation, allow the board to cool down before touching it

UM2393Safety precautions

UM2393 - Rev 1 page 3/14

Page 4: User manual - UM2393 - Getting started with the X-NUCLEO ...€¦ · 1 Hardware and software requirements The main features of the X-NUCLEO-IHM15A1 expansion board are: • Voltage

3 Getting started

The X-NUCLEO-IHM15A1 expansion board is a dual brush DC motor driver covering a wide range ofapplications.The maximum ratings of the expansion board are:• power stage supply voltage (VS) from 7 to 45 V• motor phase current up to 1.5 Arms

To start your project with the expansion board:

Step 1. Check the jumper position based on your configuration.Step 2. Connect the X-NUCLEO-IHM15A1 to the STM32 Nucleo board through Arduino UNO R3 connectors

(CN5, CN6, CN8 and CN9).Step 3. Supply the board through the input 5 (Vin) and 6 (GND) of the connector J1.

The D5 and D6 LEDs (red) turn on.Step 4. Develop your application using the examples provided with the firmware library (X-CUBE-SPN15).

Visit www.st.com for supporting material regarding the STSPIN840 dual brush DC motor driver andwww.st.com/stm32nucleo.

UM2393Getting started

UM2393 - Rev 1 page 4/14

Page 5: User manual - UM2393 - Getting started with the X-NUCLEO ...€¦ · 1 Hardware and software requirements The main features of the X-NUCLEO-IHM15A1 expansion board are: • Voltage

4 Hardware description and configuration

Figure 2. X-NUCLEO-IHM15A1 switch and connector positions

Motor B outputs

OUTB1 test point

OUTB2 test point

OUTA2 test point

OUTA1 test point

Groundtest point

Groundtest point

OFF time setting resistor

STSPIN840

Parallel mode jumper

Supply voltage test point

Power outputoperation LEDs(yellow)

Fault LEDs (red)

Arduino UNO R3 connectors(CN5 and CN9)

Motor Aoutputs

Supply input

Arduino UNO R3 connectors(CN6 and CN8)

VDDtest point

(pull-up voltage)

Current limiterthreshold adjust

trimmers

REFA/B voltagestest points

Bridge Bshunt resistors

Bridge Ashunt resistors

Table 1. Arduino UNO R3 connector table

Connector Pin(1) Signal Description

CN5

1 STBY Active low standby signal

4 EN/FAULTB Enable/Fault signal for motor B

7 Ground

9 REF_PWM_B PWM reference signal for current limiter B

10 REF_PWM_A PWM reference signal for current limiter A

CN6

2 VDD Pull-up voltage from Nucleo board (3.3 V)

6 Ground

7 Ground

CN9

3 EN/FAULTA Enable/Fault signal for motor A

4 PHA Phase (direction) signal for motor A

5 PWMB PWM signal for motor B

6 PWMA PWM signal for motor A

8 PHB Phase (direction) signal for motor B

1. All the non-listed pins are not connected

UM2393Hardware description and configuration

UM2393 - Rev 1 page 5/14

Page 6: User manual - UM2393 - Getting started with the X-NUCLEO ...€¦ · 1 Hardware and software requirements The main features of the X-NUCLEO-IHM15A1 expansion board are: • Voltage

Table 2. J1 connector, switches and test points

Name Pin Label Description

J1

5-6 VIN-GND Motor power supply

1-2 B+, B- Motor B phase connection

3-4 A-, A+ Motor A phase connection

TP1, TP10 - GND Ground

TP2 - VIN Motor power supply

TP3 - VDDDigital power supply (by

default 3.3 V coming fromSTM32 Nucleo board)

TP4, TP5, TP6, TP7 – - OUTB1, OUTB2, OUTA2,OUTA1 power outputs

TP8 - REFA Threshold of current limiter A

TP9 - REFB Threshold of current limiter B

4.1 Selecting the STM32 Nucleo boardThe X-NUCLEO-IHM15A1 expansion board offers native support for the following STM32 Nucleo developmentboards:• NUCLEO-F401RE• NUCLEO-F334R8• NUCLEO-F030R8

4.2 Adjusting the off-time and the thresholds of the current limitersThe STSPIN840 integrates two current limiters, one for each full bridge.The bridge current is sensed through the voltage drop across an external shunt resistor connected between thesource of the low side power MOSFET (SENSEx pins) and the ground.The current limiter compares the voltage of the SNSA and SNSB pins to the respective reference voltage pin(REFA and REFB). When VSNSX > VREFX, the control logic turns on both the low-side MOSFETs of the powerstage for a period adjusted through the pull-down resistor connected to the TOFF pin.In the X-NUCLEO-IHM15A1 board, both a trimmer and a PWM signal from the Nucleo board adjust the currentlimit thresholds:

Ipeak = VREFRSHUNT = VDD × RtrimRtrim+ 5.6 kΩ × PWMDC0.34 Ω (1)

The R5 resistor adjusts the off-time of both limiters; the value mounted by default on the board sets a duration ofabout 40 µs.

UM2393Selecting the STM32 Nucleo board

UM2393 - Rev 1 page 6/14

Page 7: User manual - UM2393 - Getting started with the X-NUCLEO ...€¦ · 1 Hardware and software requirements The main features of the X-NUCLEO-IHM15A1 expansion board are: • Voltage

5 Bill of materials

Table 3. X-NUCLEO-IHM15A1 bill of materials

Item Q.ty Ref. Part/Value Description Manufacturer Order code

1 1 CN5 SSQ-110-04-F-S Header Samtec SSQ-110-04-F-S

2 2 CN6, CN9 SSQ-108-04-F-S Header Samtec SSQ-108-04-F-S

3 2 CN7, CN10 ESQ-119-24-G-D Header (D.N.M) Samtec ESQ-119-24-G-D

4 1 CN8 SSQ-106-04-F-S Header Samtec SSQ-106-04-F-S

5 1 C1 220 NF 50 V±10% 0603 X7R Ceramic capacitor Any Any

6 1 C2 1 NF 50 V ±15%0603 X5R Ceramic capacitor Any Any

7 1 C368 µF 50 V

±20%D8_H11.5_P3

Capacitor (D.N.M) Wurth Elektronik 860080674007

8 1 C4 68 µF 50 V±20% D8_H10.5 ALU CMS Wurth Elektronik 865080653015

9 2 C5, C9 220 NF 35 V±15% 0603 X7R

Ceramiccapacitors Any Any

10 1 C6 470 NF 100 V±15% 0805 X7R Ceramic capacitor Any Any

11 2 C7,C8 10 NF 50 V±15% 0603 X7R

Ceramiccapacitors Any Any

12 4 D1, D2, D3, D4 YELLOW 0805 LED Wurth Elektronik 150080YS75000

13 2 D5, D6 RED 0805 LED Wurth Elektronik 150080RS75000

14 1 JUMPER BLACK Jumper Wurth Elektronik 60900213621

15 1 J1 691241510006 Screw Wurth Elektronik 691241510006

16 1 J2 61300311121 Header (closed2-3) Wurth Elektronik 61300311121

17 2 Q1, Q2 P-MOS SOT323 CMS NXP NX3008PBKW

18 2 Q3, Q4 N-MOS SOT416 CMS Onsemi NTA4001NT1G

19 1 R1 0 R 1/8 W ±5%0805 Resistor Any Any

20 2 R2, R29 1 K 1/4 W ±20%L5_W5_H2.55 Trimmer Bourns 3314J-1-102E

21 1 R3 18 K 1/10 W±5% 0603 Resistor Any Any

22 2 R4, R28 22 K 1/10 W±5% 0603 Resistors Any Any

23 1 R5 39 K 1/8 W ±5%0805 Resistor Any Any

24 4 R6, R7, R8, R9 0.68 R 1/2 W±1% 1206 Resistors Yageo (Phycomp) RL1206FR-7W0R68 L

25 4 R10, R11, R12,R13

10 K 1/2 W ±5%0805 Resistors Any Any

UM2393Bill of materials

UM2393 - Rev 1 page 7/14

Page 8: User manual - UM2393 - Getting started with the X-NUCLEO ...€¦ · 1 Hardware and software requirements The main features of the X-NUCLEO-IHM15A1 expansion board are: • Voltage

Item Q.ty Ref. Part/Value Description Manufacturer Order code

26 6 R14, R15, R16,R17, R25, R27

47 K 1/10 W±5% 0603 Resistors Any Any

27 2 R18, R22 1 K 1/10 W ±5%0603 Resistors Any Any

28 2 R19, R23 39 K 1/10 W±5% 0603 Resistors Any Any

29 2 R20, R21 330 R 1/10 W ±5% 0603 Resistors Any Any

30 2 R24, R26 5.6 K 1/10 W±5% 0603 Resistors Any Any

31 1 R30OPEN

SOLDER_BRIDGE

Resistor Any Any

32 10

TP1, TP2, TP3,TP4, TP5, TP6,TP7, TP8, TP9,

TP10

S1751-46R Test poiints Harwin S1751-46R

33 1 U1 STSPIN840 Dual brush DCmotor driver ST STSPIN840

UM2393Bill of materials

UM2393 - Rev 1 page 8/14

Page 9: User manual - UM2393 - Getting started with the X-NUCLEO ...€¦ · 1 Hardware and software requirements The main features of the X-NUCLEO-IHM15A1 expansion board are: • Voltage

6 X-NUCLEO-IHM15A1 schematic diagram

Figure 3. X-NUCLEO-IHM15A1 circuit schematic

A1

C3

(TH

T) o

r C4

(SM

D)

Dou

ble

foot

prin

t

VDD

Jum

per c

lose

d be

twee

n pi

n 2

and

3

VDD

Vs

Vs

VDD

VDD

VDD

VDD

VDD

VDD

VDD

VDD

VREF

A

VREF

B

ENB_

uC

REF

_PW

M_A

REF

_PW

M_B

STBY

PWM

A_IN

PHA_

INPW

MB_

IN

PHB_

IN

ENA_

uC

OU

TB2

OU

TB1

OU

TA2

OU

TA1

OU

TA1

OU

TA2

OU

TB1

OU

TB2

STBY

PAR

ALLE

L

PAR

ALLE

L

ENA_

uC

ENB_

uC

ENA_

FAU

LTA

ENA_

FAU

LTA

ENB_

FAU

LTB

ENB_

FAU

LTB

VREF

A

VREF

B

REF

_PW

M_B

REF

_PW

M_A

PHB_

IN

PWM

B_IN

PWM

A_IN

PHA_

IN

CN

9

SSQ

-108

-04-

F-S

1 2 3 4 5 6 7 8

D6

RED

R9

0.68

R12

061/

2W

R21

330R

M3

OPT

ICAL

_TAR

GET

TP1 1

C9

220N

F

J2 6130

0311

121

13

2

R25

47K

TP8 1

JUM

PER

Q2

P-M

OS

S2

1G

D3

TP9 1

R29

1K

13

2

R11

10K

CN

6

SSQ

-108

-04-

F-S

1 2 3 4 5 6 7 8

D4

YELL

OW

TP7 1

+C

368

µF TP4 1

Q4

N-M

OS

D3

1G

S2

R30

OPE

N1

2

CN

8

SSQ

-106

-04-

F-S

1 2 3 4 5 6

C6

470N

F

R19

39K

R23

39K

R6

0.68

R12

061/

2W

R5

39K

TP2 1

U1

STSP

IN84

0

VREF

A1

VREF

B2

GND3

SNSA

4SE

NSE

A15

OU

TA1

7

OU

TA2

8

VS9

VS10

OU

TB2

11O

UTB

112

SEN

SEB2

13SE

NSE

B114

SNSB

15

STBY

16

ENA_

FAU

LTA

17

ENB_

FAU

LTB

18

PWM

A19

PHA

20

PWM

B21

PHB

22

PAR

ALLE

L23

TOFF

24

SEN

SEA2

6

EPAD25

CN

7

ESQ

-119

-24-

G-D

1 3 5 7 9 11 13 15 17 19 21 23 25 27 29 31 33 35 37

2 4 6 8 10 12 14 16 18 20 22 24 26 28 30 32 34 36 38

C5

220N

F

R4

22K

M2

OPT

ICAL

_TAR

GET

R8

0.68

R12

061/

2W

R10

10K

R1

0R

R24

5.6K

CN

5

SSQ

-110

-04-

F-S

1 2 3 4 5 6 7 8 9 10

M4

GV_

2xx

J1 6912

4151

0006

1 2 3 4 5 6

D2

YELL

OWTP

6 1

R12

10K

Q3

N-M

OS

D3

1G

S2

C2

1NF

R14

47K

R3

18K

+C

468

µF

D5

RED

R20

330R

M1

OPT

ICAL

_TAR

GET

Q1

P-M

OS

S2

1G

D3

R15

47K

R28 22

K

R13

10K

TP3 1

C8

10N

F

R18

1K

R16

47K

D1

YELL

OW

R17

47K

D3

YELL

OW

R22

1K

R26

5.6K

TP5 1

R2

1K

13

2

C7

10N

F

TP10 1

R7

0.68

R12

061/

2W

C1

220N

F

R27

47K

CN

10

ESQ

-119

-24-

G-D

135791113151719212325272931333537

2468101214161820222426283032343638

TOFF

Vs

GN

DVsA2B2B1

GN

D

VDD

GN

DG

ND

UM2393X-NUCLEO-IHM15A1 schematic diagram

UM2393 - Rev 1 page 9/14

Page 10: User manual - UM2393 - Getting started with the X-NUCLEO ...€¦ · 1 Hardware and software requirements The main features of the X-NUCLEO-IHM15A1 expansion board are: • Voltage

Revision history

Table 4. Document revision history

Date Revision Changes

16-May-2018 1 Initial release.

UM2393

UM2393 - Rev 1 page 10/14

Page 11: User manual - UM2393 - Getting started with the X-NUCLEO ...€¦ · 1 Hardware and software requirements The main features of the X-NUCLEO-IHM15A1 expansion board are: • Voltage

Contents

1 Hardware and software requirements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2

2 Safety precautions. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .3

3 Getting started . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .4

4 Hardware description and configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .5

4.1 Selecting the STM32 Nucleo board . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6

4.2 Adjusting the off-time and the thresholds of the current limiters . . . . . . . . . . . . . . . . . . . . . . . . 6

5 Bill of materials . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .7

6 X-NUCLEO-IHM15A1 schematic diagram . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .9

Revision history . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .10

UM2393Contents

UM2393 - Rev 1 page 11/14

Page 12: User manual - UM2393 - Getting started with the X-NUCLEO ...€¦ · 1 Hardware and software requirements The main features of the X-NUCLEO-IHM15A1 expansion board are: • Voltage

List of tablesTable 1. Arduino UNO R3 connector table . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5Table 2. J1 connector, switches and test points . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6Table 3. X-NUCLEO-IHM15A1 bill of materials. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7Table 4. Document revision history . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10

UM2393List of tables

UM2393 - Rev 1 page 12/14

Page 13: User manual - UM2393 - Getting started with the X-NUCLEO ...€¦ · 1 Hardware and software requirements The main features of the X-NUCLEO-IHM15A1 expansion board are: • Voltage

List of figuresFigure 1. X-NUCLEO-IHM15A1 expansion board . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1Figure 2. X-NUCLEO-IHM15A1 switch and connector positions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5Figure 3. X-NUCLEO-IHM15A1 circuit schematic . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9

UM2393List of figures

UM2393 - Rev 1 page 13/14

Page 14: User manual - UM2393 - Getting started with the X-NUCLEO ...€¦ · 1 Hardware and software requirements The main features of the X-NUCLEO-IHM15A1 expansion board are: • Voltage

IMPORTANT NOTICE – PLEASE READ CAREFULLY

STMicroelectronics NV and its subsidiaries (“ST”) reserve the right to make changes, corrections, enhancements, modifications, and improvements to STproducts and/or to this document at any time without notice. Purchasers should obtain the latest relevant information on ST products before placing orders. STproducts are sold pursuant to ST’s terms and conditions of sale in place at the time of order acknowledgement.

Purchasers are solely responsible for the choice, selection, and use of ST products and ST assumes no liability for application assistance or the design ofPurchasers’ products.

No license, express or implied, to any intellectual property right is granted by ST herein.

Resale of ST products with provisions different from the information set forth herein shall void any warranty granted by ST for such product.

ST and the ST logo are trademarks of ST. All other product or service names are the property of their respective owners.

Information in this document supersedes and replaces information previously supplied in any prior versions of this document.

© 2018 STMicroelectronics – All rights reserved

UM2393

UM2393 - Rev 1 page 14/14