You are on page 1of 24

UM1604

User manual
STEVAL-IHM039V1 dual motor control demonstration board
featuring the STM32F415 microcontroller

Introduction
The STEVAL-IHM039V1 demonstration board is designed as a dual motor field-oriented
control (FOC) development platform for STMicroelectronics' ARM Cortex™-M4 32-bit core-
based STM32F415ZG microcontroller with up to 168 MHz of clock frequency and FPU
support. The board features full-speed USB 2.0 and CAN 2.0 A/B compliant interfaces; 1
I2S/I2C channel, 1 USART channel and 1 insulate USART through USB to serial bridge, 2
DAC channels, internal 192+4KB SRAM and 1 MB Flash memory, and JTAG and SWD
debugging support. The board is designed to implement multiple motor controls and offers
an advanced user I/O interface (LCD QVGA display and joystick key). Extension headers
make it easy to connect a daughterboard or wrapping board for specific applications.
With dedicated hardware features, the STEVAL-IHM39V1 board is designed to help
developers to evaluate the device and develop their own applications.
The STEVAL-IHM39V1 can be used together with the STM32 PMSM single/dual FOC SDK
v3.x and two of the possible STMicroelectronics demonstration power boards equipped with
MC connector for a complete dual motor control evaluation and development platform.
The demonstration board can be ordered through order code STEVAL-IHM039V1.

Figure 1. Demonstration board

March 2013 DocID024194 Rev 1 1/24


www.st.com
Contents UM1604

Contents

1 Features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3

2 Board description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4

3 Jumper settings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13

4 Using the STEVAL-IHM039V1 with the STM32 FOC firmware library . 16


4.1 Hardware requirements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
4.2 Software requirements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16

5 Bill of material . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18

6 Revision history . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23

2/24 DocID024194 Rev 1


UM1604 Features

1 Features

• STMicroelectronics’ ARMTM Cortex-M4 core-based STM32F415ZG microcontroller


• Two full-featured MC connectors for interfacing with any of the possible
STMicroelectronics demonstration power boards
• JTAG, SWD and trace debug support
• USB connector for isolated virtual com port
• USB 2.0 full speed connection
• 240 x 320 TFT color LCD
• Joystick with 4-direction control and selector
• 4 LEDs
• Reset plus three user buttons
• Five 5 V power supply sources: 2-way screw connector, power jack, two USB
connectors or daughterboard
• Boot from user Flash or system memory
• CAN 2.0 A/B compliant connection
• I2C connection
• RS-232 channel with RTS/CTS handshake support
• Extension connectors for daughterboard or wrapping area board

DocID024194 Rev 1 3/24


Board description UM1604

2 Board description

Figure 2. Schematic diagram (1 of 9)

3*>@
3*>@
3)>@
3)>@
3(>@
3(>@
3'>@
3'>@
3&>@
3&>@
3%>@
3%>@
3$>@
3$>@

&21
3*
3*   3*
3*   3*
3*   3*
3& 5  
 5   3'
5(6(7  
3'  3'
3'   3'
3'   3%
  3%
'9  
3% 3%
3%   3%
3(   3(
3(   3(
3(  
3'   3'
3(   3(
3(   3(
3*  
  3*
3)   3)
3)   3)
3%   3)
3%  
 
3%   3&
3&   3$
3$   3$
3$   3$
  3$
3$  
3&   3&
3&   3&
3)  
 
9  
+HDGHU[

&21
3&
3&   3&
3&   3$
3$   3$
3$  
  3$
3$   3$
3$   3$
3&   3&
  3&
3'   3'
3(   3(
3'   3'
3'   3'
3'  
3'   3*
3*   3*
3*   3*
3*   3*
  3%
3%   3%
3%   3%
3%   3%
3(  
  9
'9  
3( 3(
3(   3(
3& - 3   3&
3)   - 3 3&
  3)
3)   3)
3)   3)
3)   3)
3)   3)
 
9  
+HDGHU[

4/24 DocID024194 Rev 1


UM1604 Board description

Figure 3. Schematic diagram (2 of 9)

9

5
N 
5
5

8VHUB%XWWRQB
5
5

9  
&
8 6(5  Q)

5 5 5 5 5   
. . . . .
6: 
5 

5  5
8
-2<B6HOHFW 5

5  5 
&20021
-2<B'RZQ

6HOHFWLRQ
5  5 9

-2<B/HIW '2:1 5 
5  5 
/()7 +PZTUJDL
-2<B5LJKW

5,*+7  5
5  5
-2<B8S 
83
6: 
0 7  $ &  
& & & & & GRQRWILW
Q)   Q)   Q) Q) Q)
8 6(5 

 
5 

8VHUB%XWWRQB

 5 5 
.

9

&21 5 
 . 
/&'B&6 &6

/&'B6&/ 6&/ 5 

/&'B6', 6',
/&'B56  8VHUB%XWWRQB
56
/&'B: 5 
 :5
 5' 5
/&'B6'2 6'2

5(6(7 5(6(7
9
   &
 9'' Q)
 9&,
9  *1' 8 6(5 
 *1'
5  %/B9'' 5 
  
 %/B&RQWURO
5 %/B*1'
 6: 
5  %/B*1'
/&'%/B&RQWURO  5
GRQRWILW &RORU/&'0RGXOH

DocID024194 Rev 1 5/24


Board description UM1604

Figure 4. Schematic diagram (3 of 9)

9

5  5  5  5 
. . . .

- 3 %FGBVMUTFUUJOH0QFO

-7066: ',2
-7&.6: &/.
-7'2
-7',
-7567
5(6(7

9
&21
 9
5  
. 

9 
&21 5 

  GRQRWILW
 
 
 
 
 
 5  5   5 
 GRQRWILW GRQRWILW  N
 
 
  5  N
 
  5  N
 


 - 7$ *




75 $ & (
5  5 
5 5

75$&(B'
75$&(B'
75$&(B'
75$&(B'
75$&(B&.

6/24 DocID024194 Rev 1


UM1604

9

0&B0DLQ3)&B2&3
5 
  . 5  5 
. 0&B0DLQ%XV9ROWDJH
5
5  &

0&B0DLQ(PHUJHQF\6WRS 5 
Q) .
5
& 
Q)
.PUPSDPOUSPMDPOOFDUP
S
&21
 1'$0$1@4FOTF 
&.&3(&/$:4501 5 
0&B0DLQ3: 0B8+  .$@6) (/%
 0&B0DLQ3)&B9DF
0&B0DLQ3: 0B8/  .$@6- (/%

0&B0DLQ3: 0B9+
 .$@7)   .
(/% & 
0&B0DLQ3: 0B9/  .$@7- (/%
 5 
5  5 0&B0DLQ3: 0B: +  .$@8)  Q) GRQRWILW
(/%
0&B0DLQ3: 0B: /  
0&B0DLQ&XUUHQW$ .$@8- #6470-5"(&
 $633&/5" 
 $633&/5# (/% 
(/%
&   $633&/5$
(/%

GRQRWILW 0&B0DLQ17&%\SDVVUHOD\  /5$#:1"443&-": 1'$7BD@TFOTF 
 5 

DocID024194 Rev 1
 %*44*1"5*7&#3",& 1'$*BD@TFOTF 0&B0DLQ3)&B,DF
0&B0DLQ'LVVLSEUDNH
9  7108&3 )FBUTJOL5FNQFSBUVSF 
 1'$4:/$  5
71PXFS & 
0&B0DLQ3)&B3: 0  1'$18.  5 
5  (/%
 &/$0%&3"  GRQRWILW GRQRWILW
0&B0DLQ6SHHG6HQVRU$ (/%
0&B0DLQ&XUUHQW%  &/$0%&3#
&ODPEFS*OEFY

0&B0DLQ6SHHG6HQVRU%
5
0&B0DLQFRQQHFWRU
& 
GRQRWILW

9
5  0&B0DLQ+HDWVLQN7HPS
%FGBVMU - 3
0&B0DLQ&XUUHQW&
5 TFUUJOH0QFO - 8 0 3(5 5  5 & 
&  Q)
Figure 5. Schematic diagram (4 of 9)

Q)

&  &  & 


0&B0DLQ6SHHG6HQVRU&
Q) GRQRWILW
0&B0DLQ3)&6\QF GRQRWILW
& 
GRQRWILW

7/24
Board description
8/24
Board description

- 0 3 

9 7,0B&+
0&B6XE6SHHG6HQVRU$

7,0B&+ %FGBVMUCFUXFFOBOE

5 
 . - 0 3

7,0B&+
0&B6XE6SHHG6HQVRU%

5  7,0B&+ %FGBVMUCFUXFFOBOE

0&B6XE(PHUJHQF\6WRS
- 0 3
5 
&  7,0B&+
Q) 0&B6XE6SHHG6HQVRU&

7,0B&+ %FGBVMUCFUXFFOBOE
&21 

 &.&3(&/$:4501 (/% 
0&B6XE3: 0B8+  .$@6) 
 (/% 
0&B6XE3: 0B8/ .$@6- (/%
0&B6XE3: 0B9+  
(/%
 .$@7) 
0&B6XE3: 0B9/ .$@7- (/%
0&B6XE3: 0B: +   5 
.$@8) (/%
0&B6XE3: 0B: /  
.$@8- #6470-5"(& 0&B6XE%XV9ROWDJH
 $633&/5" 
(/%
 
$633&/5# (/% & 
5   (/%  5
5 $633&/5$ 5 
0&B6XE17&%\SDVVUHOD\  1'$7BD@TFOTF 
0&B6XE&XUUHQW$ .
 /5$#:1"443&-": 1'$*BD@TFOTF  Q)
0&B6XE'LVVLSEUDNH %*44*1"5*7&#3",&
 

DocID024194 Rev 1
9 )FBUTJOL5FNQFSBUVSF
&   7108&3 
GRQRWILW  1'$4:/$ 71PXFS 
1'$18. (/%
 
0&B6XE6SHHG6HQVRU$ &/$0%&3" (/%
 
0&B6XE6SHHG6HQVRU% &/$0%&3# &ODPEFS*OEFY 5 
5 
0&B6XE&XUUHQW% 0&B6XEFRQQHFWRU 0&B6XE+HDWVLQN7HPS
5
&  5 & 
9 Q)
GRQRWILW

5 
Figure 6. Schematic diagram (5 of 9)

0&B6XE&XUUHQW&
5 - 3 0&B6XE6SHHG6HQVRU&
%FGBVMUTFUUJOH0QFO
&  & 
GRQRWILW &  GRQRWILW
GRQRWILW
& 
GRQRWILW
& 
 Q )
UM1604
UM1604 Board description

Figure 7. Schematic diagram (6 of 9)

9
5  5


5 
. - 0 3


9
& 
%FGBVMUTFUUJOH

%FGBVMUTFUUJOH0QFO
Q)

8 - 3
3
- 8 0 3(5
  
&$1B7; % % 34
  
(/% $"/)
5    
7$$ $"/-
  
&$1B5; 3 3 7SFG
5 
/ 
5  
5 


'%PDOHFRQQHFWRU

5  5 
GRQRWILW 5

&$1

9

9

& 
 Q)

5 GRQRWILW 3

&  
  Q) &  
8  Q) 
  
&  Q)  9 9&&  
 & &  
 & &  
86$57B7; 7LQ 7RXW
5  5   
86$57B5; 5RXW 5LQ
 
86$57B576 7LQ 7RXW
  '%PDOHFRQQHFWRU
86$57B&76


5  5  5RXW 5LQ 
9 *1'
6 7  ( % 7 5
& 
Q)
86$57

' 5HG
5 
/('
5

- ' 2UDQJH
5 
 /('
,&B6&/ 5
,&B6'$ 
' *UHHQ
,&B60%$  5 

/('
5
,&
,& ' %OXH
5 
/('
5
/('

9

5 
5 9
3RWHQWLRPHWHU .

5 & 
 Q)
3RWHQWLRPHWHU

DocID024194 Rev 1 9/24


10/24
(9
Board description

9 8 /' ' 0  9


& 2 1  & 2 1  8  = ( 1 9 $ /6 8
     
  ,1 287 69 &9 9,1 9287

*1'
  
=
 &  6* &  &  &  & 
$X['&


*1'
' &   % Q)  X)   Y X)  9  X) Q)
&* 
6 0 $ -  $  7 5


&* 


&*
% 1 ;  

'9 (9
- 3
89
- 3 
- 9 ' 5HG
5 
  - 3 
 
86%9 - 3  5
5,'&'&FRQYHUWHU
34DPEF
4*1

%FGBVMUTFUUJOHKVNQFSQSFTFOUPOMZPO+1QJOT

DocID024194 Rev 1
9

& 
9'' 95()
Q)
8 %
  - 3 
Figure 8. Schematic diagram (7 of 9)

 9&$3 9''B 


 966B 9''B 
 3'5B21 9''B  9''$ %FGBVMU+1QSFTFOU
 966B 9''B  9'' 9''
 966B 9''B 
 966B 9''B 
 966B 9''B 
 966B 9''B  /
 966B 9''B  5  %($'GLVWUHOHF &  &  &  &  &  &  &  &  &  &  &  & 
95()  966B 9''B  5
966B 9''B  Q )  Q ) Q) Q) Q) Q) Q) Q)  Q) Q) Q) Q)
 
 95() 95() 
9&$3 9''$
5  9''$
 
&  5 &  9''B 9%$7 &  & 
 X)  X)  X) Q)
6 7 0 ) = * 7 
UM1604
UM1604

3*
3*
3*
3) 3*
3) 3*
8 $ 3) 3*
 3* 3( 3) 3*
- 0 3 3$  3*  3* 3( 3) 3*
0&B0DLQ6SHHG6HQVRU$ 3$:.837,0B&+7,0B&+ 3*
0&B0DLQ3)&B,DF  3$   3* 3( 3) 3*
0&B0DLQ6SHHG6HQVRU% 3$7,0B&+7,0B&+ 3*
3$   3* 3( 3) 3*
 3$  3$7,0B&+$'&B&KDQQHOB 3*  3* 3( 3) 3*
0&B6XE+HDWVLQN7HPS 0&B6XE&XUUHQW% 3$$'&B,1 3*
 3$   3* 3( 3) 3*
3$  3$$'&B,1'$&B287 3*  3* 3( 3) 3*
- 0 3 3$  3$$'&B,1'$&B287 3*  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 1
3&
 5 5  - 3
 3'
    . K] 3'7,0B&+  3'
3'7,0B&+ 7,0B&+
&  &   3' 7,0B&+ - 8 0 3(5
 S ) S) 3'7,0B&+  3'
3'7,0B&+ 7,0B&+
 3' /&'B: 5 86%9 9
3'  3'
3'  3'
5(6(7  3'  3'
5(6(7 1567 3'  3' /&'B56 5 
26&B,1  3'  3'
6 86$57B5; N
26&B287  26&B,1 3'86$57B5;  3'
Figure 9. Schematic diagram (8 of 9)

26&B287 3'86$57B7; 86$57B7;


5 (6(7  3' 86$57B576
3'86$57B576  3' 4
3'86$57B&76 86$57B&76
  3' 0&B0DLQ3)&B2&3 6 7 5 
&  %227 3'7,0B(75  3'
3'&$1B7; &$1B7;
 3' &$1B5; & 2 1  5 
3'&$1B5;  5 5 
9&& 86%'0 N
Q) 5  
6 7 0 )  = * 7  ' 5 5 
.  86%'3
' 
5   . 1& 
*1'   N 5 
6+ 
9 6+
&  
6:  6+ 
6+
 S ) % 2 2 7
0LQL86%W\SH%FRQQ
<
0 + ] 34
9
&  5 

S)  5

11/24
Board description
& 89

12/24
89 Q) 5 N 6:  4ZTUFN

%227 'MBTI
- 8B6:&/.
8B6:',2  
8B6:&/.  
 670)57

















8 89
Board description

89
&

3%
3%
3%
3%
3%
3%
3%
3'
3&
3$
3$

3&
3&

966
9''
  Q)

%227
 9%$7 9'' 
 3&7$0357& 966 
3& 3$ 8B6:',2
& ;   86%B'3
S) 0+]  3& 3$ 
3'26&,1 3$ 86%B'0
  8B86$57B5;
 3'26&287 3$ 
1567 3$ 8B86$57B7;
 
& 5    3& 3$ 
 3& 3& 
% S)  3& 3& 
 3& 3&  89 9
   966$ 3& 
   9''$ 3%  -
89  3$:.83 3%   9'' 9'' 
86%5HVHW  3$ 3%   *1' *1' 
& 3$ 3%  ,1 287 
8B86$57B7; 86$57B5;
& Q)  ,1 287 

3%

966$
9''$

3$
3$
3$
3$
3$
3&
3&
3%
3%
3%
3%
966
9''
& X) 8B86$57B5;  287 ,1 
86$57B7;
Q)  287 ,1 

















 1& 1& 
89  *1' *1' 
89
,/(

SLQ62,&
86%B'LVFRQQHFW & 5 &
N Q)
Q) #005

DocID024194 Rev 1
5 5
89
86%B'0
' 8
  89 & Q)
89 *0 *0
&21  (/% 7CVT  5
Figure 10. Schematic diagram (9 of 9)

7$$ 
 *0 *0  N
' ' /'$%075 627/
%  ' 89 89
%  86%/&6&
86%B'3  
(/%  ,1 287
5 5 '
4)&-- 
4)&-- 5 &   & *UHHQ
 & 89 ,1+ *1'
5
86%W\SH%FRQQ Q) 05 675 X)9 8 X)9
4 .
7JSUVBM$0. 89
5 5
*OTVMBUFE 89
 . .
%FGBVMUTFUUJOH
675 5 
4 .



- 03  
86%B'LVFRQQHFW
UM1604
UM1604 Jumper settings

3 Jumper settings

Table 1 gives a detailed description of the jumpers used.

Table 1. Jumper settings


Jumper Selection Description

PC14 is connected to the


Close
extension connector CON3
JP1
PC14 isn't connected to the
Open (default)
extension connector CON3
PC15 is connected to the
Close
extension connector CON3
JP2
PC15 isn't connected to the
Open (default)
extension connector CON3
Add 10nF of capacitor to filter
Close the motor 1 sensor input
JP4 (Encoder A/H1)
Open (default) No filter added
Add 10nF of capacitor to filter
Close the motor 2 sensor input
JP6 (Encoder A/H1)
Open (default) No filter added
TIM4_CH3 is used for motor 2
Between 1-2 (default) sensor input (Encoder
Index/H3)
JMP3
TIM3_CH3 is used for motor 2
Between 2-3 sensor input (Encoder
Index/H3). See JMP5.
TIM4_CH2 is used for motor 2
Between 1-2 (default)
sensor input (Encoder B/H2)
JMP4 TIM3_CH2 is used for motor 2
Between 2-3 sensor input (Encoder B/H2).
See JPM8.
TIM4_CH1 is used for motor 2
Between 1-2 (default)
sensor input (Encoder A/H1)
JMP10
TIM3_CH1 is used for motor 2
Between 2-3
sensor input See JP5.
+5 V is not supplied by the 2-
Open way screw connector CON13 or
by the power jack CON12
JP9
+5 V is supplied by the 2-way
Close (default) screw connector CON13 or by
the power jack CON12

DocID024194 Rev 1 13/24


Jumper settings UM1604

Table 1. Jumper settings (continued)


Jumper Selection Description

+5 V is not connected to the


Open (default)
extension connector
JP10
+5 V is connected to the
Close
extension connector
+5 V is not supplied by USB
Open (default)
connector CON11
JP11
+5 V is supplied by USB
Close
connector CON11
+5 V is not supplied by USB
Open (default)
connector CON14
JP13
+5V is supplied by USB
Close
connector CON14
The microcontroller pin PB0
(TIM3_CH3) is used for motor 2
Between 1-2
sensor input (Encoder
Index/H3). See JMP3.
JMP5
The microcontroller pin PB0
(ADC12_IN8) is connected to
Between 2-3 (default)
the phase C motor 2 current
feedback (MC_Sub1 CurrentC).
Use this setting if TIM3 is used
Between 1-2 for speed and positioning
feedback for the motor 2.

JMP6 The microcontroller pin PB1


(ADC12_IN9) is connected to
Between 2-3 (default) the temperature sensor of
power stage 1 (MC_Main
Heatsink Temp).
The microcontroller pin PA2
(ADC123_IN2) is connected to
Between 1-2 (default) the temperature sensor of
power stage 2 (MC_Sub1
Heatsink Temp).
JMP7
The microcontroller pin PA2
(ADC123_IN2) is connected to
Between 2-3 the AC current feedback of
power stage 1 (MC_Main
PFC_Iac).
The microcontroller pin PB5
(TIM3_Ch2) is used for motor
Between 1-2
control 2 sensor input (Encoder
B/H2). See JPM4.
JMP8
The microcontroller pin PB5
(TIM3_Ch2) is connected to the
Between 2-3
PFC PWM output (MC_Main
PFC_PWM).

14/24 DocID024194 Rev 1


UM1604 Jumper settings

Table 1. Jumper settings (continued)


Jumper Selection Description

The microcontroller pin PC3


(ADC123_IN13) is connected to
Between 1-2 the AC voltage input sensing of
the power stage 1 (MC_Main
PFC_Vac).
JMP9
The microcontroller pin PC3
(ADC123_IN13) is used for bus
Between 2-3 (default) voltage measurement of the
power stage 2 (MC_Sub1 Bus
Voltage).
The microcontroller pin PB4
Between 1-2 (default) (JTRST) is connected to the
JTAG connector CON6
The microcontroller pin PB4 is
connected to the
Between 2-3 synchronization feedback signal
JP5
coming from power stage
(MC_Main PFC Sync)
The microcontroller pin PB4
(TIM3_CH1) is used for motor
Between 2-4
control 2 sensor input (Encoder
A/H1). See JMP10.
This must be closed if TIM4 is
JP7 Closed used for speed and positioning
feedback for the motor 2.

DocID024194 Rev 1 15/24


Using the STEVAL-IHM039V1 with the STM32 FOC firmware library UM1604

4 Using the STEVAL-IHM039V1 with the STM32 FOC


firmware library

The “STM32 FOC firmware library” provided together with the STM3210B-MCKIT performs
the field oriented control (FOC) of a permanent magnet synchronous motor (PMSM) in both
sensor and sensorless configurations.
It is possible to configure the firmware to work with the STEVAL-IHM039V1 board and to
establish a real-time communication for debugging/tuning purposes using the ST motor
control workbench.
This section describes how the “STM32 FOC firmware library” v3.2 or higher can be used
together with the STEVAL-IFN003V1 and with the ST motor control workbench release 2.0
or higher.

4.1 Hardware requirements


The following items are required to run the STEVAL-IHM039V1 together with the “STM32
FOC firmware library”.
• The STEVAL-IHM039V1 board
• A DC power supply (up to 48 V)
• A programmer/debugger dongle (not included in the package). To program/debug the
STEVAL-IHM039V1, a dongle with JTAG or single wire debugging capabilities (SWD)
is required. Use of an insulated dongle (like “ST-LINK/V2-ISOL”) is always
recommended.
• A 3-phase brushless motor with permanent magnet rotor (not included in the package)
• A USB cable with USB connector (type B) to establish a real-time communication (not
included in the package).
• An insulated oscilloscope (as needed).
• An insulated multimeter (as needed).

4.2 Software requirements


To customize, compile and download the “STM32 FOC firmware library” v3.2 or above, a
tool chain must be installed. Please refer to the UM1052 user manual for details on how to
set up the proper tool chain.
Before establishing the real-time communication it is also necessary to install the “STM32
Virtual COM Port Driver” available for download from the ST website.
Two specific configuration files for the ST motor control Workbench designed to work with
the STEVAL-IHM039V1 exist (see Table 2). Both are present in the STM32 PMSM FOC
Firmware Library, under “\Utilities\WB_Projects\SDK3xx” subfolder or in the ST MC
Workbench, under “\WB_Projects\SDK3xx”.

16/24 DocID024194 Rev 1


UM1604 Using the STEVAL-IHM039V1 with the STM32 FOC firmware library

Table 2. STEVAL-IHM039V1 configuration files for ST motor control Workbench


Configuration file name Intended use

STEVAL-IHM039 in single
SDK3xx-STEVAL-IHM039V1-MB459-Shinano-SINGLE-DRIVE.stmc
drive configuration
STEVAL-IHM039 in dual
SDK32x-STEVAL-IHM039V1-MB459-Shinano-DUAL-DRIVE.stmc
drive configuration

To establish real-time communication between STEVAL-IHM039V1 and the ST motor


control Workbench, after installing the “STM32 Virtual COM Port Driver”, connect a USB
cable (type B) to the CON11 connector on the STEVAL-IHM039V1.
New hardware will be found on the system and the driver will be installed. A new COM port
will be added to the system and the new COM port (Ex. COM58) can be set up in the ST
motor control Workbench under the “monitor” window to establish the connection.

DocID024194 Rev 1 17/24


Bill of material UM1604

5 Bill of material

Table 3. Bill of material


Item Quantity Reference Part Tolerance Description

TD-0341
1 1 B1 Micro tactile switch
[RESET/Black]
2x35 way double row
strip line connector
2 2 CON1,CON3 Header 35 x 2
(male connector)
2.54 mm pitch
2 strip line connector
(female connector) 2x8
3 1 CON4 Color LCD module
way double row
2.54 mm pitch
2x10 way double row
strip line connector
4 1 CON5 TRACE
(male connector)
1.27 mm pitch
20 way IDC low profile
5 1 CON6 JTAG boxed header 2.54 mm
pitch
34 way IDC low profile
6 1 CON8 MC_Main connector boxed header 2.54 mm
pitch
34 way IDC low profile
7 1 CON9 MC_Sub1 connector boxed header 2.54 mm
pitch
8 1 CON11 USB-typeB conn. USB connector
Mini DC power socket
9 1 CON12 DC-10B
2.5 mm
2 way PCB screw
10 1 CON13 Aux DC - 250 V
terminal, 5.08 mm pitch
11 1 CON14 MiniUSB-typeB conn. MiniUSB connector
C1,C3,C4,C5,C6,C7,C
12 40 100 nF 16 V +/-10% Ceramic capacitor X7R
8,C9,
C15,C20,C23,C26,C28,
13
C34,C35,
C36,C37,C38,C39,C40,
14
C42,C44,
C45,C46,C47,C50,C57,
15
C60,C61,
C62,C63,C64,C65,C66,
16
C67,C68,
17 C69,C70,C74,C75

18/24 DocID024194 Rev 1


UM1604 Bill of material

Table 3. Bill of material (continued)


Item Quantity Reference Part Tolerance Description

C2,C12,C13,C14,C17,
18 21 do not fit
C18,
C19,R24,C25,C27,C29,
19
R30,
C30,R31,C31,R32,C32,
20
R44,
21 R47,R61,R83
22 2 C10,C24 1 nF +/-10% Ceramic capacitor X7R
23 1 C11 22 nF +/-10% Ceramic capacitor X7R
24 4 C16,C21,C33,C54 10 nF +/-10% Ceramic capacitor X7R
25 1 C22 1 uF +/-10% Ceramic capacitor X7R
26 4 C41,C58,C59,C73 22 pF +/-10% Ceramic capacitor X7R
27 1 C43 4.7 nF +/-10% Ceramic capacitor X7R
Electrolytic aluminum
28 1 C48 10 uF 16 V +/-10%
capacitor
Electrolytic aluminum
29 1 C49 470 uF 10 V +/-10%
capacitor
30 2 C51,C53 10 uF +/-10% Ceramic capacitor X7R
31 1 C52 470 nF +/-10% Ceramic capacitor X7R
32 2 C55,C56 10 pF +/-10% Ceramic capacitor X7R
33 1 C71 1 uF +/-10% Ceramic capacitor X7R
Electrolytic aluminum
34 1 C72 2.2 uF 10 V +/-20%
capacitor
35 2 C76,C77 2.2 uF 16 V +/-10% Ceramic capacitor X7R
36 2 D1,D5 Red Chip LED
37 1 D2 Orange Chip LED
38 2 D3,D6 Green Chip LED
39 1 D4 Blue Chip LED
3 way single row strip
JMP1,JMP2,JMP3,JMP line connector (male
40 10 Jump_linear 3
4,JMP5, connector) 2.54mm
pitch
JMP6,JMP7,JMP8,JMP
41
9,
42 JMP10
2 way single row strip
JP1,JP2,JP3,JP4,JP6,J line connector (male
43 11 JUMPER
P7,JP8,JP9, connector) 2.54mm
pitch

DocID024194 Rev 1 19/24


Bill of material UM1604

Table 3. Bill of material (continued)


Item Quantity Reference Part Tolerance Description

44 JP10,JP11,JP12
3+1 way single row
strip line connector
45 1 JP5 CON3+1_1
(male connector)
2.54mm pitch
4 way single row strip
line connector (male
46 1 J1 I2C
connector) 2.54mm
pitch
RI-0505 DC-DC Isolated DC-DC
47 1 J2
converter converter
IL516-3E 0.15'' 16-pin
48 1 J3 4 channel opto-isolator
SOIC
3 way dual row strip line
49 1 J4
connector
(male
connector)
2,54 mm
pitch
50 1 L1 BEAD distrelec 330005 Data line filter
9 way r/a PCB D
51 2 P1,P2 DB9-male connector
plug,US footprint
Low voltage fast-
52 3 Q1,Q2,Q3 2STR1215 switching NPN power
transistor
53 22 R6,R7,R8,R9,R10,R25, 10 K +/- 1% Resistor
R26,R27,R28,R29,R33,
54
R34,
R35,R63,R64,R73,R77,
55
R88,
56 R91,R92,R97
57 2 R1,R2 820 +/- 1% Resistor
58 2 R3,R20 4K7 +/- 1% Resistor
59 4 R4,R11,R16,R23 100 R +/- 1% Resistor
R5,R12,R13,R14,R15,
60 32 0R +/- 1% Resistor
R17,
R21,R22,R36,R37,R40,
61
R41,
R45,R46,R48,R49,R50,
62
R52,
R53,R54,R56,R57,R58,
63
R59,

20/24 DocID024194 Rev 1


UM1604 Bill of material

Table 3. Bill of material (continued)


Item Quantity Reference Part Tolerance Description

R60,R76,R78,R80,R84,
64
R87,
65 R89,R90
66 1 R18 330 R +/- 1% Resistor
67 1 R19 220 K +/- 1% Resistor
68 2 R38,R51 3.3 K +/- 1% Resistor
69 3 R39,R42,R55 100 K +/- 1% Resistor
70 1 R43 4.7 K +/- 1% Resistor
71 1 R62 1k +/- 1% Resistor
72 4 R65,R66,R69,R71 600 R +/- 1% Resistor
73 2 R67,R68 22 R +/- 1% Resistor
74 1 R70 1 MR +/- 1% Resistor
75 2 R72,R96 1.5 K +/- 1% Resistor
76 2 R74,R98 36 K +/- 1% Resistor
77 1 R75 47 K +/- 1% Resistor
78 1 R79 220 +/- 1% Resistor
79 1 R82 120 R +/- 1% Resistor
80 1 R85 300 R +/- 1% Resistor
81 1 R86 47 R +/- 1% Resistor
82 1 R93 390 R +/- 1% Resistor
83 2 R94,R95 10 R +/- 1% Resistor
Surface mount tactile
84 1 SW1 USER3
switch
Surface mount tactile
85 1 SW2 USER2
switch
Surface mount tactile
86 1 SW3 USER1
switch
1-pole miniature slide
87 1 SW4 BOOT1
switches through hole
1-pole miniature slide
88 2 SW5,SW6 BOOT0
switches through hole
Surface Mount Tactile
89 1 S1 RESET
Switch
90 1 U1 MT008-A Joystick
Very low capacitance
91 1 U2 USBLC6-2SC6
ESD protection
92 1 U3 L9615 CAN transceiver
93 1 U4 ST3232EBTR RS-232 transceiver

DocID024194 Rev 1 21/24


Bill of material UM1604

Table 3. Bill of material (continued)


Item Quantity Reference Part Tolerance Description

Polymer protected
94 1 U5 ZEN056V130A24LS 5.6 V
Zener diode 5.6V
PCB mount DC power
95 1 U6 BNX002-01 50 V/10 A
filter
Low drop linear
96 1 U7 LD1086D2M33TR
regulator
97 1 U8 STM32F415ZGT6
98 1 U9 STM32F103R8T6
Low drop linear
99 1 U11 LD2981ABM33TR
regulator
100 2 X1,Y2 8 MHz
101 1 Y1 32.768 KHz
102 1 Z1 SMAJ5.0A-TR Transil
103 1 RV1 10 K (Trimmer)
Jumper on
JMP3,JMP4,JMP10,JM
P5, JMP6,
104 14 jumper
JMP7,JMP8,JMP9,JMP
2,JP5,JMP1,JP7,JP9,J
P12

22/24 DocID024194 Rev 1


UM1604 Revision history

6 Revision history

Table 4. Document revision history


Date Revision Changes

19-Mar-2013 1 Initial release.

DocID024194 Rev 1 23/24


UM1604

Please Read Carefully:

Information in this document is provided solely in connection with ST products. STMicroelectronics NV and its subsidiaries (“ST”) reserve the
right to make changes, corrections, modifications or improvements, to this document, and the products and services described herein at any
time, without notice.
All ST products are sold pursuant to ST’s terms and conditions of sale.
Purchasers are solely responsible for the choice, selection and use of the ST products and services described herein, and ST assumes no
liability whatsoever relating to the choice, selection or use of the ST products and services described herein.
No license, express or implied, by estoppel or otherwise, to any intellectual property rights is granted under this document. If any part of this
document refers to any third party products or services it shall not be deemed a license grant by ST for the use of such third party products
or services, or any intellectual property contained therein or considered as a warranty covering the use in any manner whatsoever of such
third party products or services or any intellectual property contained therein.

UNLESS OTHERWISE SET FORTH IN ST’S TERMS AND CONDITIONS OF SALE ST DISCLAIMS ANY EXPRESS OR IMPLIED
WARRANTY WITH RESPECT TO THE USE AND/OR SALE OF ST PRODUCTS INCLUDING WITHOUT LIMITATION IMPLIED
WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE (AND THEIR EQUIVALENTS UNDER THE LAWS
OF ANY JURISDICTION), OR INFRINGEMENT OF ANY PATENT, COPYRIGHT OR OTHER INTELLECTUAL PROPERTY RIGHT.
ST PRODUCTS ARE NOT AUTHORIZED FOR USE IN WEAPONS. NOR ARE ST PRODUCTS DESIGNED OR AUTHORIZED FOR USE
IN: (A) SAFETY CRITICAL APPLICATIONS SUCH AS LIFE SUPPORTING, ACTIVE IMPLANTED DEVICES OR SYSTEMS WITH
PRODUCT FUNCTIONAL SAFETY REQUIREMENTS; (B) AERONAUTIC APPLICATIONS; (C) AUTOMOTIVE APPLICATIONS OR
ENVIRONMENTS, AND/OR (D) AEROSPACE APPLICATIONS OR ENVIRONMENTS. WHERE ST PRODUCTS ARE NOT DESIGNED
FOR SUCH USE, THE PURCHASER SHALL USE PRODUCTS AT PURCHASER’S SOLE RISK, EVEN IF ST HAS BEEN INFORMED IN
WRITING OF SUCH USAGE, UNLESS A PRODUCT IS EXPRESSLY DESIGNATED BY ST AS BEING INTENDED FOR “AUTOMOTIVE,
AUTOMOTIVE SAFETY OR MEDICAL” INDUSTRY DOMAINS ACCORDING TO ST PRODUCT DESIGN SPECIFICATIONS.
PRODUCTS FORMALLY ESCC, QML OR JAN QUALIFIED ARE DEEMED SUITABLE FOR USE IN AEROSPACE BY THE
CORRESPONDING GOVERNMENTAL AGENCY.
Resale of ST products with provisions different from the statements and/or technical features set forth in this document shall immediately void
any warranty granted by ST for the ST product or service described herein and shall not create or extend in any manner whatsoever, any
liability of ST.
ST and the ST logo are trademarks or registered trademarks of ST in various countries.
Information in this document supersedes and replaces all information previously supplied.
The ST logo is a registered trademark of STMicroelectronics. All other names are the property of their respective owners.

© 2013 STMicroelectronics - All rights reserved

STMicroelectronics group of companies


Australia - Belgium - Brazil - Canada - China - Czech Republic - Finland - France - Germany - Hong Kong - India - Israel - Italy - Japan -
Malaysia - Malta - Morocco - Philippines - Singapore - Spain - Sweden - Switzerland - United Kingdom - United States of America
www.st.com

24/24 DocID024194 Rev 1

You might also like