28
September 2015 DocID028304 Rev 1 1/28 www.st.com UM1943 User manual Getting started with the X-NUCLEO-IHM07M1 motor driver expansion board based on the L6230 for STM32 Nucleo Introduction The X-NUCLEO-IHM07M1 is a three-phase brushless DC motor driver expansion board based on the L6230 for STM32 Nucleo. It provides an affordable and easy-to-use solution for driving three-phase brushless DC motors in your STM32 Nucleo project. The X-NUCLEO-IHM07M1 is compatible with the ST morpho connector and supports the addition of other boards which can be stacked onto a single STM32 Nucleo board. The user can also mount the Arduino UNO R3 connector. The X-NUCLEO- IHM07M1 is fully configurable and ready to support different closed loop control based on sensor or sensorless mode control, and it is compatible with three shunt or single shunt current sense measuring. The driver used on this STM32 Nucleo expansion board is the L6230, a DMOS fully-integrated driver for three-phase brushless PMSM motors, assembled in a PowerSO36 package, with overcurrent and thermal protection. This user manual describes the procedure to configure the X-NUCLEO-IHM07M1 expansion board to operate with an STM32 Nucleo board. Figure 1: X-NUCLEO-IHM07M1 three-phase brushless DC motor driver expansion board based on L6230 for STM32 Nucleo

Getting started with the X-NUCLEO-IHM07M1 motor …...Getting started UM1943 4/28 DocID028304 Rev 1 2 Getting started 2.1 System architecture A generic motor control system can be

  • Upload
    others

  • View
    3

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Getting started with the X-NUCLEO-IHM07M1 motor …...Getting started UM1943 4/28 DocID028304 Rev 1 2 Getting started 2.1 System architecture A generic motor control system can be

September 2015 DocID028304 Rev 1 1/28

www.st.com

UM1943 User manual

Getting started with the X-NUCLEO-IHM07M1 motor driver expansion board based on the L6230 for STM32 Nucleo

Introduction The X-NUCLEO-IHM07M1 is a three-phase brushless DC motor driver expansion board based on the L6230 for STM32 Nucleo. It provides an affordable and easy-to-use solution for driving three-phase brushless DC motors in your STM32 Nucleo project. The X-NUCLEO-IHM07M1 is compatible with the ST morpho connector and supports the addition of other boards which can be stacked onto a single STM32 Nucleo board. The user can also mount the Arduino UNO R3 connector. The X-NUCLEO-IHM07M1 is fully configurable and ready to support different closed loop control based on sensor or sensorless mode control, and it is compatible with three shunt or single shunt current sense measuring. The driver used on this STM32 Nucleo expansion board is the L6230, a DMOS fully-integrated driver for three-phase brushless PMSM motors, assembled in a PowerSO36 package, with overcurrent and thermal protection. This user manual describes the procedure to configure the X-NUCLEO-IHM07M1 expansion board to operate with an STM32 Nucleo board.

Figure 1: X-NUCLEO-IHM07M1 three-phase brushless DC motor driver expansion board based on L6230 for STM32 Nucleo

Page 2: Getting started with the X-NUCLEO-IHM07M1 motor …...Getting started UM1943 4/28 DocID028304 Rev 1 2 Getting started 2.1 System architecture A generic motor control system can be

Contents UM1943

2/28 DocID028304 Rev 1

Contents

1 System introduction ......................................................................... 3

1.1 Main characteristics .......................................................................... 3

1.2 Target applications ............................................................................ 3

2 Getting started .................................................................................. 4

2.1 System architecture .......................................................................... 4

2.2 Building the system ........................................................................... 4

2.2.1 Hardware settings ............................................................................... 5

3 Board schematic ............................................................................. 10

4 Circuit description .......................................................................... 18

4.1 Power section – L6230 driver with integrated three-phase bridge ... 18

4.2 Power section – Overcurrent detection (OCP) and current sensing measurement ............................................................................................... 19

4.3 Analog section – Hall/Encoder motor speed sensor ........................ 21

4.4 Analog section – BEMF detection circuit ......................................... 21

4.5 Analog section – Bus voltage and temperature sensing circuit ....... 21

5 BOM (bill of material) ..................................................................... 23

6 Revision history .............................................................................. 27

Page 3: Getting started with the X-NUCLEO-IHM07M1 motor …...Getting started UM1943 4/28 DocID028304 Rev 1 2 Getting started 2.1 System architecture A generic motor control system can be

UM1943 System introduction

DocID028304 Rev 1 3/28

1 System introduction

1.1 Main characteristics

The list below provides the board specification data and the main parameters for the X-NUCLEO-IHM07M1 expansion board:

Three-phase driver board for BLDC/PMSM motors

Nominal operating voltage range from 8 V to 48 V DC

2.8 A output peak current (1.4 ARMS)

Operating frequency up to 100 kHz

Non dissipative overcurrent detection and protection

Cross-conduction protection

Thermal measuring and overheating protection

Full compatibility with ST Six Step or ST FOC control algorithms

Full support for sensor and sensorless mode

3-shunt and 1-shunt configurable jumpers for motor current sensing

Hall/Encoder motor sensor connector and circuit

Debug connector for DAC, GPIOs, etc.

Potentiometer available for speed regulation

Fully populated board conception with test points

User LED

Compatible with STM32 Nucleo boards

Equipped with ST morpho connectors

RoHS compliant

PCB type and size:

PCB material: FR-4

4-layer layout

Copper thickness: 70 μm (external layer), 35 μm (internal layer)

Total dimensions of the board: 70 mm x 66 mm

1.2 Target applications

Low voltage PMSM motor driver

Low power fans

Power tools

Industrial drives

Page 4: Getting started with the X-NUCLEO-IHM07M1 motor …...Getting started UM1943 4/28 DocID028304 Rev 1 2 Getting started 2.1 System architecture A generic motor control system can be

Getting started UM1943

4/28 DocID028304 Rev 1

2 Getting started

2.1 System architecture

A generic motor control system can be schematized in three main blocks (see Figure 2: "Overall system architecture"):

Control block - its main task is to accept user commands and drive a motor. The X-NUCLEO-IHM07M1 is based on the STM32 Nucleo board, which provides all digital signals to properly implement motor driver control.

Power block - it is based on three-phase inverter topology. The core of the power block is the L6230 driver, which contains all the necessary active power and analog components to perform low voltage PMSM motor control.

Motor - the X-NUCLEO-IHM07M1 is able to properly drive a low voltage BLDC/PMSM motor.

Figure 2: Overall system architecture

2.2 Building the system

The X-NUCLEO-IHM07M1 expansion board is a complete hardware development platform (Power block) for the STM32 Nucleo board, for evaluating a motor control solution for a single BLDC/PMSM motor. For normal board operation, it must be connected to an STM32 Nucleo board (Control block) through the ST morpho connector, as shown in the image below.

Page 5: Getting started with the X-NUCLEO-IHM07M1 motor …...Getting started UM1943 4/28 DocID028304 Rev 1 2 Getting started 2.1 System architecture A generic motor control system can be

UM1943 Getting started

DocID028304 Rev 1 5/28

Figure 3: X-NUCLEO-IHM07M1 plugged on STM32 Nucleo

The interconnection between the STM32 Nucleo and the X-NUCLEO-IHM07M1 has been designed for full-compatibility with many STM32 Nucleo boards and no solder bridge modification is required. When stacked, the system is ready to operate with the connection of a BLDC/PMSM motor. For proper use, please respect the hardware and software settings. For the software details, refer to the X-CUBE-SPN7 software expansion documents available on www.st.com.

2.2.1 Hardware settings

Table 1: Jumper settings

Jumper Permitted configurations Default

condition

JP1 Selection for pull-up insertion (BIAS) in current sensing circuit OPEN

JP2 Selection for op amp gain modification in current sensing circuit OPEN

JP3 Selection for pull-up enabling in Hall/Encoder detection circuit CLOSED

J9 Selection to supply the STM32 Nucleo board through the X-NUCLEO-IHM07M(1)

OPEN

J5 Selection for single/three shunt configuration. Set to single shunt by default

2-3 CLOSED

J6 Selection for single/three shunt configuration. Set to single shunt by default

2-3 CLOSED

J7 Debug connector for DAC. Available for probe connection OPEN

Notes: (1)It is recommended to REMOVE jumper J9 before power-on on J1

Page 6: Getting started with the X-NUCLEO-IHM07M1 motor …...Getting started UM1943 4/28 DocID028304 Rev 1 2 Getting started 2.1 System architecture A generic motor control system can be

Getting started UM1943

6/28 DocID028304 Rev 1

With J9 closed, it is mandatory not to exceed 12 V DC on the J1 connector to avoid damage to the STM32 Nucleo board.

Jumper JP5 (STM32 Nucleo board) MUST be connected between pin 2 and 3 to enable the STM32 Nucleo external power supply.

Table 2: Screw terminal table

Screw terminal Function

J1 Motor power supply input (8 V- 48 V DC)

J2 3-phase motor connector

Figure 4: X-NUCLEO-IHM07M1 – top layer with silk-screen

The X-NUCLEO-IHM07M1 expansion board is equipped with the ST morpho connector, male pin headers (CN7 and CN10) accessible on both sides of the board. They can be used to connect the power board to the STM32 Nucleo board. All signals and power pins of the MCU are available on the ST morpho connector. For further details, please refer to user manual UM1724 (5.12 STMicroelectronics morpho connector) available on www.st.com.

Table 3: ST morpho connector table

Connector Pin Default Signal Solder bridge

CN7

1 PC10 Enable_CH1-L6230 R58

2 PC11 Enable_CH2-L6230 R67

3 PC12 Enable_CH3-L6230 R72

4 PD2

5 VDD

6 E5V

7 BOOT0

8 GND

9 NC/PF6

Page 7: Getting started with the X-NUCLEO-IHM07M1 motor …...Getting started UM1943 4/28 DocID028304 Rev 1 2 Getting started 2.1 System architecture A generic motor control system can be

UM1943 Getting started

DocID028304 Rev 1 7/28

Connector Pin Default Signal Solder bridge

10 NC

11 NC/PF7

12 IOREF

13 PA13

14 RESET

15 PA14

16 +3V3

17 PA15 Encoder A/Hall H1 R79

18 +5V Encoder/Hall PS voltage

19 GND

20 GND

21 PB7

22 GND

23 PC13 Blue button

24 VIN

J9

25 PC14

26 NC

27 PC15

28 PA0 Curr_fdbk_PhA R47

29 PH0/PF0/PD0

30 PA1 VBUS_sensing R51

31 PH1/PF1/PD1

32 PA4 DAC_Ch R76 N.M.

33 VLCD/VBAT

34 PB0 BEMF2_sensing R60

35 PC2 Temperature feedback R54

36 PC1 or PB9(1) Curr_fdbk_PhB R48

37 PC3 BEMF1_sensing R59

38 PC0 or PB8(2) Curr_fdbk_PhC R50

CN10

1 PC9

2 PC8

3 PB8

4 PC6

5 PB9

6 PC5

7 AVDD

8 U5V(3)

Page 8: Getting started with the X-NUCLEO-IHM07M1 motor …...Getting started UM1943 4/28 DocID028304 Rev 1 2 Getting started 2.1 System architecture A generic motor control system can be

Getting started UM1943

8/28 DocID028304 Rev 1

Connector Pin Default Signal Solder bridge

9 GND

10 NC

11 PA5(4) GPIO/DAC/PWM R80

12 PA12 CPOUT R52

13 PA6(5) DIAG/ENABLE/BKIN1 R53

14 PA11 DIAG/ENABLE/BKIN2 R46

15 PA7(6) BEMF3_sensing R63

16 PB12

17 PB6

18 PB11/NC

19 PC7

20 GND

21 PA9 VH_PWM R64

22 PB2 LED RED R83

23 PA8 UH_PWM R56

24 PB1 POTENTIOMETER R78

25 PB10 Encoder Z/Hall H3 R84

26 PB15(7) BEMF3_sensing R66

27 PB4 CURRENT REF R77

28 PB14(8) DIAG/ENABLE/BKIN1 R49

29 PB5 GPIO/DAC/PWM R85

30 PB13(9) GPIO/DAC/PWM R82

31 PB3 Encoder B/Hall H2 R81

32 AGND

33 PA10 WH_PWM R70

34 PC4

35 PA2

36 NC/PF5

37 PA3

38 NC/PF4

Notes: (1)Please refer to Table 9: Solder bridges in user manual UM1724 for further details (2)Please refer to Table 9: Solder bridges in user manual UM1724 for further details (3)U5V is 5 V power from ST-LINK/V2-1 USB connector and it rises before +5 V (4)For STM32F302-Nucleo only:

- pin PA5 is on CN10/pin 30 and PB13 is on CN10/pin 11

- pin PA6 is on CN10/pin 28 and PB14 is on CN10/pin 13

- pin PA7 is on CN10/pin 26 and PB15 is on CN10/pin 13

Page 9: Getting started with the X-NUCLEO-IHM07M1 motor …...Getting started UM1943 4/28 DocID028304 Rev 1 2 Getting started 2.1 System architecture A generic motor control system can be

UM1943 Getting started

DocID028304 Rev 1 9/28

(5)For STM32F302-Nucleo only:

- pin PA5 is on CN10/pin 30 and PB13 is on CN10/pin 11

- pin PA6 is on CN10/pin 28 and PB14 is on CN10/pin 13

- pin PA7 is on CN10/pin 26 and PB15 is on CN10/pin 13 (6)For STM32F302-Nucleo only:

- pin PA5 is on CN10/pin 30 and PB13 is on CN10/pin 11

- pin PA6 is on CN10/pin 28 and PB14 is on CN10/pin 13

- pin PA7 is on CN10/pin 26 and PB15 is on CN10/pin 13 (7)For STM32F302-Nucleo only:

- pin PA5 is on CN10/pin 30 and PB13 is on CN10/pin 11

- pin PA6 is on CN10/pin 28 and PB14 is on CN10/pin 13

- pin PA7 is on CN10/pin 26 and PB15 is on CN10/pin 13 (8)For STM32F302-Nucleo only:

- pin PA5 is on CN10/pin 30 and PB13 is on CN10/pin 11

- pin PA6 is on CN10/pin 28 and PB14 is on CN10/pin 13

- pin PA7 is on CN10/pin 26 and PB15 is on CN10/pin 13 (9)For STM32F302-Nucleo only:

- pin PA5 is on CN10/pin 30 and PB13 is on CN10/pin 11

- pin PA6 is on CN10/pin 28 and PB14 is on CN10/pin 13

- pin PA7 is on CN10/pin 26 and PB15 is on CN10/pin 13

Page 10: Getting started with the X-NUCLEO-IHM07M1 motor …...Getting started UM1943 4/28 DocID028304 Rev 1 2 Getting started 2.1 System architecture A generic motor control system can be

Board schematic UM1943

10/28 DocID028304 Rev 1

3 Board schematic Figure 5: X-NUCLEO-IHM07M1 schematic (1 of 8)

Vshunt_3_GND

Vshunt_2_GND

Vshunt_1_GND

External operational-amplifier

Overall AV=1.53

3V3

3V3

3V3

3V3

3V3

3V3

3V3

Vshunt_1

Curr_fdbk1

Curr_fdbk2

CP+

Vshunt_2

Curr_fdbk3

Vshunt_3

C8N.M. 100pF/6.3V

JP1FOC

R11

2.2k

C4

N.M. 100p F/6.3V

R13680

C1

100nF10V

R9

2.2k

-

+ U10C

TSV994IPT

10

98

41

1

-

+ U10D

TSV994IPT

12

1314

41

1

R10 2.2k

C3

680pF 10V

0 3R

R15

2.2k

R12.2k

C7

680pF 10V

R5 2.2k

R4

2.2k

R14

0

R8

0

R2680

R122.2k

C5

680pF 10V

-

+ U10B

TSV994IPT

5

67

41

1

-

+ U10A

TSV994IPT

3

21

41

1

R7

680

R162.2k

R6

2.2k

C6

N.M. 100pF/6.3V

JP2 FOC

C2

4.7uF 10V

GSPG03092015DI0955

Page 11: Getting started with the X-NUCLEO-IHM07M1 motor …...Getting started UM1943 4/28 DocID028304 Rev 1 2 Getting started 2.1 System architecture A generic motor control system can be

UM1943 Board schematic

DocID028304 Rev 1 11/28

Figure 6: X-NUCLEO-IHM07M1 schematic (2 of 8)

HALL/ENCODER SENSOR

5VGND

A+/H1B+/H2Z+/H3

3V3 3V3

5V

A+/H1B+/H2Z+/H3

R301k8

JP3

JUMPER

C20

10pF

10V

R321k8 R34

4K7 N.M.

R311k8

R33

4K7 N.M.

R2910k

J3

Stripline m. 1x5

12345

C22

10pF

10V

R2810k

R2710k

D4

BA

T30KFIL

M

D3

BA

T30KFIL

M

D2

BA

T30KFIL

M

C19100n

R35

4K7N.M.

J4

RING

1

C21

10pF

10V

SPEED REGULATION

SPEED

3V3

SPEEDR42100K

SHUNT RESISTOR

Vshunt_1_GND

Vshunt_2_GND Vshunt_3_GND

Vshunt_1 Vshunt_2 Vshunt_3

R450.33 1W

R440.33 1W

R430.33 1W

RS model 742-8420

Placed near the L6230 driver

3V3

Temperature feedba ck

R19

NTC 10K

21 R20

4K7

C10

10nF 10V

VBUS SENSOR

VBUS_SENS

VIN+

VBUS

C144.7nF/10V

R18

9.31K1%

R17169K 1%

GSPG03092015DI1000

Page 12: Getting started with the X-NUCLEO-IHM07M1 motor …...Getting started UM1943 4/28 DocID028304 Rev 1 2 Getting started 2.1 System architecture A generic motor control system can be

Board schematic UM1943

12/28 DocID028304 Rev 1

Figure 7: X-NUCLEO-IHM07M1 schematic (3 of 8)

L6

23

0 D

MO

S d

rive

rfo

r th

ree-p

hase b

rush

less D

C m

oto

r

PO

WE

R C

ON

NE

CT

OR

OUT1OUT2OUT3

SE

NS

1S

EN

S2

SE

NS

3

CP

OU

T

IN1

EN

1

EN

3IN

3E

N2

IN2

CP

+C

P-

VIN

+

3V

3

3V

3

Vsh

unt

_2

EN

3IN

3E

N2

IN2

DIA

G/E

N

CU

RRE

NT

RE

F

CP

OU

T

CP

+

IN1

EN

1

R21

33K

J16

RIN

G

1

R25

39k

R23

10K

rot

oM

2J1

23

C13

100nF

/100V

C17

1nF

/6.3

V

D1

SM

BD

7000

12

3

C18

10n-

N.M

.

C15

100uF

,63V

C12

10n

100V

U11

L6230PD

IN1

9

CP

OU

T2

4

VS

A4

N.C.3

N.C.2

GN

D1

OUT332

N.C.31

VB

OO

T3

0

EN

32

9

CP

-2

8

VC

P7

CP

+1

3

N.C.14

OUT115

N.C.16

N.C.17

GN

D1

8G

ND

19

N.C.20

N.C.21 E

N1

10

SE

NS

11

2

N.C.23

N.C.6

IN2

26

SE

NS

28

SE

NS

32

5

EN

22

7IN

31

1

OUT25

DIA

G/E

N2

2

VS

B3

3

N.C.34 N.C.35

GN

D3

6

EP37

C16

100n,

6.3

V

R22

10K

C9

220nF

,16V

C11

100nF

/100V

R26

39k

D12

SM

BJ4

8A-T

R

R24

39k

J1 CO

N2

12

GSPG03092015DI1005

Page 13: Getting started with the X-NUCLEO-IHM07M1 motor …...Getting started UM1943 4/28 DocID028304 Rev 1 2 Getting started 2.1 System architecture A generic motor control system can be

UM1943 Board schematic

DocID028304 Rev 1 13/28

Figure 8: X-NUCLEO-IHM07M1 schematic (4 of 8)

3S

h

1S

h

3S

h

1S

h

BE

MF

DE

TE

CT

ION-

SIX

ST

EP

SIN

GL

E/T

HR

EE

SH

UN

T C

ON

FIG

UR

AT

ION

OU

T1

OU

T2

OU

T3

GP

IO_

BE

MF

GP

IO_B

EM

FG

PIO

_B

EM

F

BE

MF

1B

EM

F3

3V

33V

33V

3

3V

3

GP

IO_

BE

MF

BE

MF

1B

EM

F2

GP

IO_B

EM

FG

PIO

_B

EM

F

BE

MF

3

Vshunt_

3S

EN

S3

Vshunt_

2

Vshunt_

1S

EN

S1

Vshunt_

2

R39

10k

J6

CO

N3

1 2 3

R36

2.2

k

D10

BA

T30K

FIL

MD

6B

AT

30K

FIL

M

R41

10k

J5

CO

N3

1 2 3

D9

BA

T30K

FIL

MD

5B

AT

30K

FIL

MD

8B

AT

30K

FIL

M

R38

2.2

k

C23

0.1

uF

/6.3

V

R40

10kD

7B

AT

30K

FIL

M

R37

2.2

k

GSPG03092015DI1010

Page 14: Getting started with the X-NUCLEO-IHM07M1 motor …...Getting started UM1943 4/28 DocID028304 Rev 1 2 Getting started 2.1 System architecture A generic motor control system can be

Board schematic UM1943

14/28 DocID028304 Rev 1

Figure 9: X-NUCLEO-IHM07M1 schematic (5 of 8)

F302

PW

M

PA

8-U

H

PA

6-B

KIN

PA

9-V

H

PA

10

-WH

PC

12

PC

11

PC

10

PA

11

DIA

G/E

N

IN1

EN

1

IN2

EN

2

IN3

EN

3

C1

0_

14

C1

0_

28

C1

0_

13

C1

0_

23

C7

_1

C1

0_

21

C7

_2

C1

0_

33

C7

_3

R5

8

0R4

6

0 R6

4

0

R7

0

0

R6

7

0R5

3

0 R7

2

0R5

6

0

R4

9

0

HA

LL

/EN

CO

DE

RS

EN

SO

R

PA

15

-E

nc.

A/H

1

PB

3-

En

c.

B/H

2P

B1

0-

En

c.

Z/H

3

C7

_1

7

C1

0_

31

C1

0_

25

Z+

/H3

A+

/H1

B+

/H2

R8

10

R7

90

R8

40

DA

C/R

EF

F302

PA

5/P

B1

3

PA

4-

DA

C

PB

4-P

WM

PA

5-

DA

C

PB

5-D

AC

PW

M

CU

RR

EN

TR

EF

C7

_3

2

C1

0_

27

C1

0_

11

C1

0_

30

C1

0_

29

02

8R

J8

RIN

G

1

00

8R

J7

Str

iplin

e m

. 1

x3

1 2 3

07

7RR

76

0-N

.M. 0

58

R

Cu

rre

nts

F302

Em

bP

GAP

A0

-P

hA

PC

1-

Ph

BP

C0

-P

hC

PA

1-

BU

SV

PC

2-

Te

mp

.S

en

s.

PA

1-

Em

bP

GA

PA

7-

Em

bP

GA

PB

0-

Em

bP

GA

3V

3

C7

_2

8

C7

_3

8

C7

_3

5

Cu

rr_

fdb

k1

Cu

rr_

fdb

k2

Cu

rr_

fdb

k3

VB

US

Te

mp

era

ture

fe

ed

ba

ck

C7

_3

0

C1

0_

15

C7

_3

4

Vsh

un

t_1

Vsh

un

t_2 C1

0_

26

Vsh

un

t_3

C7

_3

6

C7

_3

0

07

4R

R7

30

04

5R

R6

9

N.M

.13

K 1

%

R6

50

R7

4

N.N

. 4

.99

K

R6

8

N.N

. 4

.99

K

R6

1N

.N.

4.9

9K

R7

10

-N.M

.

01

5R

08

4R

00

5R

07

5R

R6

2N

.M.1

3K

1%

R7

5

N.M

.13

K 1

%

GSPG03092015DI1015

Page 15: Getting started with the X-NUCLEO-IHM07M1 motor …...Getting started UM1943 4/28 DocID028304 Rev 1 2 Getting started 2.1 System architecture A generic motor control system can be

UM1943 Board schematic

DocID028304 Rev 1 15/28

Figure 10: X-NUCLEO-IHM07M1 schematic (6 of 8)

STM32 NUCLEO PART USEDPC13 - START/STOP (B1 BUTTON)

RESET - MCU RST (B2 BUTTON)

VIN

VIN+

C7_24

J9

JUMPER VIN 3A

12

Open by default J27 on:

1) 12 VMAX on J26

2) JP5 (Nucleo pin 2, 3)

2) JP1 (Nucleo) removed

USER

PB1

PB2

C10_24

C10_22

SPEED

D11RED

0 87R

R83

510

BEMF six STEP

F302

PC9 - GPIO

PC3 - ADCPB0 - ADC

PA7 - ADC

PA12- TIM1 ETRC10_12

C10_1

C7_37C7_34

C10_15C10_26

CPOUT

GPIO_BEMF

BEMF1BEMF2

BEMF3

0 25R

0 66R

0 95R

0 36R0 06R

0 55R

GSPG03092015DI1020

Page 16: Getting started with the X-NUCLEO-IHM07M1 motor …...Getting started UM1943 4/28 DocID028304 Rev 1 2 Getting started 2.1 System architecture A generic motor control system can be

Board schematic UM1943

16/28 DocID028304 Rev 1

Figure 11: X-NUCLEO-IHM07M1 schematic (7 of 8)

AR

DU

INO

/ST

MO

RP

HO

CO

NN

EC

TO

R

C7

_1

C7

_3

C7

_5

C7

_7

C7

_1

3C

7_

15

C7

_1

7C

7_

19

C7

_2

1C

7_

23

C7

_2

5

C7

_2

7C

7_

29

C7

_3

1C

7_

33

C7

_3

5

C7

_3

7

C7

_1

4C

6_

3C

7_

16

C7

_1

8C

6_

5C

7_

20

C7

_2

2C

7_

24

C6

_8

C7

_2

8C

8_

1

C7

_3

8C

8_

6

C7

_3

6C

8_

5C

7_

34

C8

_4

C7

_3

0C

8_

2

C7

_3

2C

8_

3

C7

_2

C7

_4

E5

VC

7_

6

C7

_8

C1

0_

3C

5_

10

C1

0_

7C

5_

8

C1

0_

9C

5_

7C

10

_1

1C

5_

6C

10

_1

3C

5_

5

C1

0_

15

C5

_4

C1

0_

17

C5

_3

C1

0_

19

C5

_2

C1

0_

21

C5

_1

C1

0_

5C

5_

9

C1

0_

35

C9

_2

C1

0_

29

C9

_5

C1

0_

31

C9

_4

C1

0_

25

C9

_7

C1

0_

33

C9

_3

C1

0_

27

C9

_6

C1

0_

23

C9

_8

C1

0_

37

C9

_1

C1

0_

1C

10

_2

C1

0_

4

C1

0_

6C

10

_8

C1

0_

10

C1

0_

12

C1

0_

14

C1

0_

16

C1

0_

18

C1

0_

20

C1

0_

22

C1

0_

24

C1

0_

26

C1

0_

28

C1

0_

30

C1

0_

32

C1

0_

34

C1

0_

36

C1

0_

38

C7

_9

C7

_1

1C

7_

12

C6

_1

N.C

.

C6

_2

+3

V3

C6

_6

N.C

.C

7_

10

C6

_7

C7

_2

6

C6

_4

C7

_1

8

3V

3

5V

CN

61 2 3 4 5 6 7 8

CN

5

12345678910

CN

10

12

34

56

78

91

01

11

21

31

41

51

61

71

81

92

02

12

22

32

42

52

62

72

82

93

03

13

23

33

43

53

63

73

8

CN

7

12

34

56

78

91

01

11

21

31

41

51

61

71

81

92

02

12

22

32

42

52

62

72

82

93

03

13

23

33

43

53

63

73

8

CN

8

1 2 3 4 5 6

CN

9

12345678

GSPG03092015DI1410

Page 17: Getting started with the X-NUCLEO-IHM07M1 motor …...Getting started UM1943 4/28 DocID028304 Rev 1 2 Getting started 2.1 System architecture A generic motor control system can be

UM1943 Board schematic

DocID028304 Rev 1 17/28

Figure 12: X-NUCLEO-IHM07M1 schematic (8 of 8)

L6

23

0 D

MO

S d

river

for

thre

e-p

ha

se

bru

sh

less D

C m

oto

r

PO

WE

R C

ON

NE

CT

OR

OUT1OUT2OUT3

SE

NS

1S

EN

S2

SE

NS

3

CP

OU

T

IN1

EN

1

EN

3IN

3E

N2

IN2

CP

+C

P-

VIN

+

3V

3

3V

3

Vsh

unt

_2

EN

3IN

3E

N2

IN2

DIA

G/E

N

CU

RRE

NT

RE

F

CP

OU

T

CP

+

IN1

EN

1

R21

33K

J16

RIN

G

1

R25

39k

R23

10K

rot

oM

2J1

23

C13

100nF

/100V

C17

1nF

/6.3

V

D1

SM

BD

7000

12

3

C18

10n-

N.M

.

C15

100uF

,63V

C12

10n

100V

U11

L6230PD

IN1

9

CP

OU

T2

4

VS

A4

N.C.3

N.C.2

GN

D1

OUT332

N.C.31

VB

OO

T3

0

EN

32

9

CP

-2

8

VC

P7

CP

+1

3

N.C.14

OUT115

N.C.16

N.C.17

GN

D1

8G

ND

19

N.C.20

N.C.21 E

N1

10

SE

NS

11

2

N.C.23

N.C.6

IN2

26

SE

NS

28

SE

NS

32

5

EN

22

7IN

31

1

OUT25

DIA

G/E

N2

2

VS

B3

3

N.C.34 N.C.35

GN

D3

6

EP37

C16

100n,

6.3

V

R22

10K

C9

220nF

,16V

C11

100nF

/100V

R26

39k

D12

SM

BJ4

8A

-TR

R24

39k

J1 CO

N2

12

GSPG03092015DI1415

Page 18: Getting started with the X-NUCLEO-IHM07M1 motor …...Getting started UM1943 4/28 DocID028304 Rev 1 2 Getting started 2.1 System architecture A generic motor control system can be

Circuit description UM1943

18/28 DocID028304 Rev 1

4 Circuit description

4.1 Power section – L6230 driver with integrated three-phase bridge

The main section is based on the L6230. It is a DMOS fully-configurable driver for three-phase brushless BLDC/PMSM motors. The supply voltage is provided through an external connector (J1) and with (J9) jumper settings, it is possible to choose if the digital section (STM32 Nucleo board) must be supplied by USB or by the expansion board. For these settings, please refer to Table 1: "Jumper settings".

Figure 13: X-NUCLEO-IHM07M1 – power section

The L6230 integrates a three-phase bridge which consists of six power MOSFETs. Using the N-channel power MOSFET for the upper transistors in the bridge requires a gate drive voltage above the power supply voltage. The bootstrapped supply (VBOOT) is obtained through an internal oscillator and a few external components to implement a charge pump circuit as shown in the diagram that follows.

Page 19: Getting started with the X-NUCLEO-IHM07M1 motor …...Getting started UM1943 4/28 DocID028304 Rev 1 2 Getting started 2.1 System architecture A generic motor control system can be

UM1943 Circuit description

DocID028304 Rev 1 19/28

Figure 14: X-NUCLEO-IHM07M1 – charge pump circuit

4.2 Power section – Overcurrent detection (OCP) and current sensing measurement

The L6230 driver implements overcurrent protection with an internal detection circuit that does not require an external resistor. The current is compared with an embedded current reference and the output generates a fault condition to the DIAG pin that goes to ground.

U1

1L

62

30

PD

IN1

9

CP

OU

T2

4

VS

A4

N.C.3

N.C.2

GN

D1

OUT332

N.C.31

VB

OO

T3

0

EN

32

9

CP

-2

8

VC

P7

CP

+1

3

N.C.14

OUT115

N.C.16

N.C.17

GN

D1

8G

ND

19

N.C.20

N.C.21 E

N1

10

SE

NS

11

2

N.C.23

N.C.6

IN2

26

SE

NS

28

SE

NS

32

5

EN

22

7IN

31

1

OUT25

DIA

G/E

N2

2

VS

B3

3

N.C.34 N.C.35

GN

D3

6

EP37

D1

2S

MB

J4

8A

-TR

C1

21

0n

10

0V

C9

22

0nF

,1

6V

VIN

+

C1

3

10

0nF

/10

0V

C1

51

00

uF,

63

V

J1

6R

ING

1

CP

-

C1

11

00

nF/1

00

V

CP

OU

TR

21

33

K

J1

CO

N2

12

CP

+

CU

RR

EN

T R

EF

CP

+

D1

SM

BD

70

00

12

3

GSPG14092015DI1535

Page 20: Getting started with the X-NUCLEO-IHM07M1 motor …...Getting started UM1943 4/28 DocID028304 Rev 1 2 Getting started 2.1 System architecture A generic motor control system can be

Circuit description UM1943

20/28 DocID028304 Rev 1

This pin, connected to the STM32 Nucleo board (BKIN Timer function), detects this condition and immediately disables the driving signals.The current sensing input is connected to the sensing resistors Rsense (refer to the diagram below) and it is possible to choose between three-shunt or single-shunt configuration through the jumpers (J5, J6). For this setting please refer to Table 1: "Jumper settings".

Figure 15: X-NUCLEO-IHM07M1 – current sensing circuit

U11

L6230P

D

IN1

9

CP

OU

T24

VS

A4

N.C.3

N.C.2

GN

D1

OUT332

N.C.31

VB

OO

T30

EN

329

CP

-28

VC

P7

CP

+13

N.C.14

OUT115

N.C.16

N.C.17

GN

D18

GN

D19

N.C.20

N.C.21 E

N1

10

SE

NS

112

N.C.23

N.C.6

IN2

26

SE

NS

28

SE

NS

325

EN

227

IN3

11

OUT25

DIA

G/E

N22

VS

B33

N.C.34 N.C.35

GN

D36

EP37

OUT1OUT2

J2

Mo

tor

123

OUT3

J5

CO

N3

1 2 3

J6

CO

N3

1 2 3

R43

0.3

31W

R44

0.3

31W

R45

0.3

31W

SE

NS

1S

EN

S2

3V

3

SE

NS

3

IN3

EN

3

IN2

EN

2

R25

39

kR

26

39k

C17

1n

F/6

.3V

R22

10K

Vs

hun

t_2

EN

3IN

3E

N2

IN2

DIA

G/E

N

Vs

hun

t_3

SE

NS

3V

shun

t_2

Vs

hun

t_1

SE

NS

1V

shun

t_2

Vs

hun

t_1

Vs

hun

t_2

Vs

hun

t_3

GSPG14092015DI1540

Page 21: Getting started with the X-NUCLEO-IHM07M1 motor …...Getting started UM1943 4/28 DocID028304 Rev 1 2 Getting started 2.1 System architecture A generic motor control system can be

UM1943 Circuit description

DocID028304 Rev 1 21/28

4.3 Analog section – Hall/Encoder motor speed sensor

The X-NUCLEO-IHM07M1 expansion board implements the Hall/Encoder sensor detecting circuit for speed measurement. The motor sensor pin, through the J3 connector and an analog circuit, are connected to the STM32 Nucleo board in order to detect the motor spin; a +5 V and GND are also provided for power supply of the sensors. For sensors that require external pull-up, jumper JP3 is available (see figure below). For this setting please, refer to Table 1: "Jumper settings".

Figure 16: X-NUCLEO-IHM07M1 – hall/encoder sensor circuit

4.4 Analog section – BEMF detection circuit

The X-NUCLEO-IHM07M1 expansion board provides two hardware solutions for motor position measuring, one based on sensors (refer to Section 4.3: "Analog section – Hall/Encoder motor speed sensor") and the other based on sensorless detection. In six-step driving mode one of the three phases is left in high impedance state and comparing the voltage of this phase with the center-tap voltage, we can detect the BEMF zero-crossing. This signal is acquired with an analog circuit embedded on the board, as shown in the diagram below.

Figure 17: X-NUCLEO-IHM07M1 – BEMF detection circuit

4.5 Analog section – Bus voltage and temperature sensing circuit

The X-NUCLEO-IHM07M1 expansion board provides the hardware for bus voltage sensing and temperature measurement. This signal is acquired respectively with a resistor divider

HALL/ENCODER SENSOR

5VGND

A+/H1

B+/H2Z+/H3

3V3 3V3

5V

A+/H1

B+/H2

Z+/H3

R30

1k8

JP3

JUMPER

C20

10p

F10

V

R32

1k8 R34

4K7 N.M.

R31

1k8

R33

4K7 N.M.

R29

10k

J3

Stripline m. 1x5

12345

C22

10p

F10

V

R28

10k

R27

10k

D4

BA

T30K

FIL

M

D3

BA

T30K

FIL

M

D2

BA

T30K

FIL

M

C19100n

R35

4K7 N.M.

J4

RING

1

C21

10p

F10

V

GSPG15092015DI0645

BEMF DETECTION- SIX STEP

OUT1 OUT2 OUT3

GPIO_BEMF GPIO_BEMF GPIO_BEMF

BEMF1 BEMF3

3V3 3V3 3V3

3V3

GPIO_BEMF

BEMF1 BEMF2

GPIO_BEMF GPIO_BEMF

BEMF3R3910k

R36

2.2k

D10BAT30KFILM

D6BAT30KFILM

R4110k

D9BAT30KFILM

D5BAT30KFILM

D8BAT30KFILM

R38

2.2k

C230.1uF/6.3V

R4010k

D7BAT30KFILM

R37

2.2k

GSPG15092015DI0650

Page 22: Getting started with the X-NUCLEO-IHM07M1 motor …...Getting started UM1943 4/28 DocID028304 Rev 1 2 Getting started 2.1 System architecture A generic motor control system can be

Circuit description UM1943

22/28 DocID028304 Rev 1

and with an embedded NTC (placed closed to L6230 driver) as shown in the diagram that follows.

Figure 18: X-NUCLEO-IHM07M1 – VBUS and temperature sensing circuit

VBUS_SENS

VIN+

VBUS

C144.7nF/10V

R18

9.31K 1%

R17169K 1%

RS model 742-8420

Place d near the L6230 driver

3V3

Temperature feedback

R19

NTC 10K

21 R20

4K7

C1010nF 10V

GSPG15092015DI0645

Page 23: Getting started with the X-NUCLEO-IHM07M1 motor …...Getting started UM1943 4/28 DocID028304 Rev 1 2 Getting started 2.1 System architecture A generic motor control system can be

UM1943 BOM (bill of material)

DocID028304 Rev 1 23/28

5 BOM (bill of material) Table 4: BOM (part 1)

Item Qty Ref Part/ value Volt/Watt/Amp Type Tol.

1 4 C1,C16, C19,C23 100nF 10V Ceramic Multilayer

Capacitors X7R 10%

2 1 C2 4.7µF 10V 10V Ceramic Multilayer

Capacitors X7R 20%

3 3 C3,C5,C7 680pF 10V 10V Ceramic Multilayer

Capacitors C0G 5%

4 3 C4,C6,C8 100pF/6.3V 6.3V Ceramic Multilayer

Capacitors X7R 10%

5 1 C9 220nF, 16V 16V Ceramic Multilayer

Capacitors X7R 10%

6 1 C10 10nF 10V 10V Ceramic Multilayer

Capacitors X7R 10%

7 1 C18 10nF 10V 10V Ceramic Multilayer

Capacitors X7R 10%

8 2 C11,C13 100nF 100V Ceramic Multilayer

Capacitors X7R 10%

9 1 C12 10n 100V 100V Ceramic Multilayer

Capacitors X7R 10%

10 1 C14 4.7nF 10V Ceramic Multilayer

Capacitors X7R 10%

11 1 C15 100µF 63V Aluminium Electrolytic

Capacitor 0.2

12 1 C17 1nF 6.3V Ceramic X7R 10%

13 3 C20,C21,C22 10pF 10V Ceramic Multilayer

Capacitors C0G 5%

14 1 D1 SMBD 7000 200 mA Signal Diode

15 9 D2,D3,D4,D5,D6,D7,D8,

D9,D10 BAT30KFILM 30V, 0.3A

ST SCHOTTKY DIODE

16 1 D11 RED

LED standard - SMD

17 4 JP1,JP2, JP3,J9 JUMPER

2 WAYS STRIP LINE-MALE 2.54mm

18 1 J1 Input connector

2 way 3.81mm PCB terminal block

19 1 J2 Motor Connetor

3 way 3.81mm PCB terminal block

20 1 J3 Stripline m. 1x5

5 WAYS STRIP LINE-MALE 2.54mm

21 3 J4,J8,J16 RING

TEST POINT 1 mm

22 3 J5,J6J7 CON3

3 WAYS STRIP LINE-MALE 2.54mm

Page 24: Getting started with the X-NUCLEO-IHM07M1 motor …...Getting started UM1943 4/28 DocID028304 Rev 1 2 Getting started 2.1 System architecture A generic motor control system can be

BOM (bill of material) UM1943

24/28 DocID028304 Rev 1

Item Qty Ref Part/ value Volt/Watt/Amp Type Tol.

23 2 CN7,CN10 ST_morpho_19x2

ELEVATED SOCKET MORPHO

CONNECTOR 38 PIN (19x2)

24 2 CN6,CN9 CONN8

8 PIN ELEVATED SOCKET

25 1 CN5 CONN10

10 PIN ELEVATED SOCKET

26 1 CN8 CONN6

6 PIN ELEVATED SOCKET

27 13 R1,R4,R5,R6,R9,R10,

R11,R12,R15,R16,R36, R37,R38

2.2 kOhm 0.1W SMD RESISTOR 1%

28 3 R2,R7,R13 680 Ohm 0.1W SMD RESISTOR

29 34

R3,R8,R14,R46,R47,R48,R49,R50,R51,R52,R53,R54,R55,R56,R57,R58, R59,R60,R63,R64,R65, R66,R67,R70,R72,R73, R77,R78,R79,R80,R81,

R82,R84,R85

0 Ohm 0.1W SMD RESISTOR

30 1 R17 169 kOhm 0.1W SMD RESISTOR 1%

31 1 R18 9.31 kOhm 0.1W SMD RESISTOR 1%

32 1 R19 NTC 10kOhm

NTC Thermistor 1%

33 1 R20 4.7 kOhm 0.1W SMD RESISTOR

34 1 R21 33 kOhm 0.1W SMD RESISTOR

35 5 R22,R23,R27,R28,R29 10 kOhm 0.1W SMD RESISTOR

36 3 R39,R40,R41 10 kOhm 0.25W SMD RESISTOR

37 3 R24,R25,R26 39 kOhm 0.1W SMD RESISTOR

38 3 R30,R31,R32 1.8 kOhm 0.1W SMD RESISTOR

39 3 R33,R34,R35 4.7 kOhm 0.1W SMD RESISTOR

40 1 R42 100 kOhm 1/2W TRIMMER RESISTOR

10%

41 3 R43,R44,R45 0.33 Ohm 1W SHUNT RESISTOR 1%

42 3 R61,R68,R74 4.99 kOhm 0.1W SMD RESISTOR

43 3 R62,R69,R75 13 kOhm 0.1W SMD RESISTOR

44 2 R71,R76 0 N.M. 0.1W SMD RESISTOR

45 1 R83 510 Ohm 0.1W SMD RESISTOR

46 1 U10 TSV994IPT

Operational Amplifier

47 1 U11 L6230PD

DMOS driver for three-phase

brushless DC motor

48 6 (*) Jumper

Female 2.54mm jumper

Page 25: Getting started with the X-NUCLEO-IHM07M1 motor …...Getting started UM1943 4/28 DocID028304 Rev 1 2 Getting started 2.1 System architecture A generic motor control system can be

UM1943 BOM (bill of material)

DocID028304 Rev 1 25/28

Item Qty Ref Part/ value Volt/Watt/Amp Type Tol.

49 1 X SMBJ48A-TR

Transil™

Table 5: BOM (part 2)

Item Package Manufacturer Orderable part number

1 0603 ANY ANY

2 0805 TDK C2012X7R1A475M125AC

3 0603 ANY ANY

4 0603 ANY ANY

5 0603 ANY ANY

6 0603 ANY ANY

7 0603 ANY ANY

8 0603 ANY ANY

9 0603 ANY ANY

10 0603 ANY ANY

11 SMD 10 mm x 10.5 mm Nichicon UUX1J101MNL1GS

12 0603 ANY

13 0603 ANY ANY

14 SOT-23 Infineon SMBD 7000

15 SOD-523 STMicroelectronics BAT30KFILM

16 SMD 0603 Lite-on LTST-C193KRKT-5A

17 TH 2.54 mm pitch any

18 TH 3.81 pitch any

19 TH 3.81 pitch any

20 TH 2.54 mm pitch any

21 TH Vero Technologies 20-2137

22 TH 2.54 mm pitch any

23 TH 2.54 mm pitch Samtec ESQ-119-24-T-D

24 TH 2.54 mm pitch Samtec ESQ-108-24-T-S

25 TH 2.54 mm pitch Samtec ESQ-110-24-T-S

26 TH 2.54 mm pitch Samtec ESQ-106-24-T-S

27 0603 ANY ANY

28 0603 ANY ANY

29 0603 ANY ANY

30 0603 Vishay CRCW0603169KFKEA

31 0603 PANASONIC ERJ3EKF9311V

32

TDK NTCG103JF103F

Page 26: Getting started with the X-NUCLEO-IHM07M1 motor …...Getting started UM1943 4/28 DocID028304 Rev 1 2 Getting started 2.1 System architecture A generic motor control system can be

BOM (bill of material) UM1943

26/28 DocID028304 Rev 1

Item Package Manufacturer Orderable part number

33 0603 ANY ANY

34 0603 ANY ANY

35 0603 ANY ANY

36 0805 PANASONIC ERJT06J103V

37 0603 ANY ANY

38 0603 ANY ANY

39 0603 ANY ANY

40

Bourns 3386P-1-104LF

41 2512 Panasonic ERJ1TRQFR33U

42 0603 ANY ANY

43 0603 ANY ANY

44 0603 ANY ANY

45 0603 ANY ANY

46 TSSOP STMicroelectronics TSV994IPT

47 PowerSO STMicroelectronics L6230PD

48

49 SMB STMicroelectronics SMBJ48A-TR

Page 27: Getting started with the X-NUCLEO-IHM07M1 motor …...Getting started UM1943 4/28 DocID028304 Rev 1 2 Getting started 2.1 System architecture A generic motor control system can be

UM1943 Revision history

DocID028304 Rev 1 27/28

6 Revision history Table 6: Document revision history

Date Version Changes

17-Sep-2015 1 Initial release.

Page 28: Getting started with the X-NUCLEO-IHM07M1 motor …...Getting started UM1943 4/28 DocID028304 Rev 1 2 Getting started 2.1 System architecture A generic motor control system can be

UM1943

28/28 DocID028304 Rev 1

IMPORTANT NOTICE – PLEASE READ CAREFULLY

STMicroelectronics NV and its subsidiaries (“ST”) reserve the right to make changes, corrections, enhancements, modifications , and improvements to ST products and/or to this document at any time without notice. Purchasers should obtain the latest relevant information on ST products before placing orders. ST products 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 of Purchasers’ 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.

© 2015 STMicroelectronics – All rights reserved