UM2278-STEVAL-SPIN3202-Evaluation-Board-logo

UM2278 STEVAL-SPIN3202 Evaluation Board

UM2278-STEVAL-SPIN3202-Evaluation-Board-product-image

Getting started with the STEVAL-SPIN3202 evaluation board, advanced BLDC controller with embedded STM32 MCU

Introduction

The STEVAL-SPIN3202 three-phase brushless DC motor driver board is based on the STSPIN32F0A 3-phase controller with integrated STM32 MCU and STD140N6F7 MOSFETs.
It implements a single shunt resistor current reading topology and provides an easy-to-use solution for the implementation of home appliances, fans, drones, power tools, and low voltage motor driving applications. The board is designed for censored or sensor less vector control FOC and six-step algorithms with single shunt sensing.

Figure 1. STEVAL-SPIN3202 evaluation boardUM2278-STEVAL-SPIN3202-Evaluation-Board-product-image

Hardware and software requirements

Using the STEVAL-SPIN3202 evaluation board requires the following software and hardware:

  • a Windows ® PC (XP, Vista 7, Windows 8, Windows 10 ) to install the software package;
  • a mini-B USB cable to connect the STEVAL-SPIN3202 evaluation board to the PC;
  • a firmware package based on the STM32 Motor Control SDK (X-CUBE-MCSDK-Y);
  • a 3-phase brushless DC motor with compatible voltage and current ratings;
  • an external DC power supply.

Getting started

To use the board:

  1. Check the jumper position according to the target configuration (see Section 2.2.1 Six-step/FOC selection)
  2. Connect the motor to J3 connector taking care of the motor phases sequence
  3. Supply the board via J2 connector input 1 and 2; the DL1 (red) LED turns on
  4. Connect the board to the PC through the USB cable
  5. Develop your application using the STM32 Motor Control SDK X-CUBE-MCSDK-Y.

Note:
The board maximum ratings are:

  • power stage supply voltage (VS) from 6.7 V to 45 V;
  • motor phase current up to 15 Arms.
Hardware description and configuration

Figure 2. STEVAL-SPIN3202 evaluation board: jumper and connector positions
UM2278-STEVAL-SPIN3202-Evaluation-Board-01

Table 1. Hardware setting jumpers

JumperPermitted configurationsDefault condition
JP1Selection of VREG connected to V motorOPEN
JP2Selection motor power supply connected to DC power supplyCLOSED
JP3Selection Hall encoder supply to USB (1)/VDD (3) power supply1-2 CLOSED
JP4Selection reset of ST-LINK (U4)OPEN
JP5Selection PA0 connected to Hall 1OPEN
JP6Selection PA1 connected to Hall 2OPEN
JP7Selection PA2 connected to Hall 3OPEN
JumperPermitted configurationsDefault condition
JP8Selection mode 6STEP/FOC1-2 CLOSED
J11Selection mode FOCCLOSED
J12Selection mode 6STEPOPEN
JP9Selection PA0 connected to OUT UCLOSED
JP10Selection PA1 connected to OUT VCLOSED
JP11Selection PA2 connected to OUT WCLOSED

Table 2. Connectors, jumpers and test points

NamePinLabelDescription
J11-2J1Motor power supply
J21-2J2Device main power supply (VM)
J31-2-3U, V, W3-phase BLDC motor phase connection
 

J4

1-2-3J4Hall sensors/encoder connector
4-5J4Hall sensors/encoder supply
J5J5USB input ST-LINK
J71-2J7UART (ST-LINK Virtual COM)
J81-2J8ST-LINK reset
J91-2BOOTBoot mode
J101-2RX/TXBootloader UART connector
TP1VREG12 V voltage regulator output
TP2GNDGND
TP3VDDVDD
TP4SPEEDSpeed potentiometer output
TP55VUSB supply voltage
TP6VBUSBus voltage feedback
TP7OUT_UOutput U
TP8TP8Output op amp sense 2
TP9TP9PA5 GPIO
TP10GNDGND
TP11OUT_VOutput V
TP12TP12GPIO BEMF
TP13OUT_WOutput W
TP143V33V3 ST-LINK
TP15TP15Output op amp sense 3
TP16CLKSWD_CLK
TP17I/OSWD_IO

Circuit description

  • The STEVAL-SPIN3202 evaluation board provides a complete single-shunt six-step solution consisting of an STSPIN32F0A advanced BLDC controller with an embedded STM32 MCU and a triple half-bridge power stage with the STD140N6F7 NMOS.
  • The STSPIN32F0A autonomously generates all the required supply voltages starting from the motor supply: the internal DC/DC buck converter provides 3.3 V and the internal linear regulator provides 12 V for the gate drivers.
  • The current feedback signal conditioning is performed through the operational amplifiers embedded in the device and an internal comparator performs overcurrent protection via the shunt resistor.
  • Two user buttons, two LEDs and a trimmer are available to implement simple user interfaces (e.g., starting/stopping the motor and set target speed).
  • The STEVAL-SPIN3202 evaluation board supports the quadrature encoder and digital Hall sensors for motor position feedback. It also provides the circuitry to sense the motor BEMF (sensor less operation).
  • The board includes an ST-LINK/V2 which allows the user to debug and download firmware without additional hardware.
  • The board also supports censored or sensor less field oriented control algorithm with single-shunt sensing.

Six-step/FOC selection
The user can select between six-step and field oriented control modes by selecting different jumpers on the STEVAL-SPIN3202 evaluation board.

The FOC mode is selected as per the following configuration:

  • jumper connected on J12 open and jumper J11 closed;
  • jumper connected on JP8 between pin 2 and 3 (FOC position). The six-step mode is selected as follows:
  • jumper connected on J12 closed and remove jumper from J11;
  • jumper connected on JP8 between pin 1 and 2 (six-step position).

Hall/encoder motor speed sensor

  • The STEVAL-SPIN3202 evaluation board supports the digital Hall and quadrature encoder sensors as motor position feedback.
  • The sensors can be connected to the STSPIN32F0A by closing jumpers JP5, JP6 and JP7 (open by default).
  • Note: When JP5, JP6 and JP7 are closed (Hall/encoder mode), JP9, JP10 and JP11should be respectively open (BEMF sensing mode).
  • The Hall sensor/encoder should be connected to J4 as per the following table.

Table 3. Hall/encoder connector (J4)

NamePinDescription
Hall1/A+1Hall sensor 1/encoder out A+
Hall2/B+2Hall sensor 2/encoder out B+
Hall3/Z+3Hall sensor 3/encoder zero feedback
VDD sensor4Sensor supply voltage
GND5Ground

A protection resistor of 1 kΩ is mounted in series with the sensor outputs.
For sensors requiring an external pull-up, three 10 kΩ resistors are already mounted on the output lines and connected to the VDD voltage. On the same lines, a footprint for pull-down resistors is also available.

JP3 jumper selects the power supply for the sensor supply voltage:

  • jumper between pin 1 and pin 2: Hall sensors powered by VUSB (5 V)
  • jumper between pin 1 and pin 2: Hall sensors powered by VDD (3.3 V)

Overcurrent detection and current sensing measurement

  • The STEVAL-SPIN3202 evaluation board implements overcurrent protection based on the STSPIN32F0A integrated OC comparator.
  • The shunt resistor measures the load current. R26 and R27 resistors bring the voltage signal to the OC_COMP pin. When the peak current flowing though the shunt exceeds the selected threshold, the integrated comparator is triggered and all the high side power switches are disabled.
  • The current threshold of the STEVAL-SPIN3202 varies according to the STSPIN32F0A OC threshold as listed in the following table.

Table 4. Overcurrent thresholds

PF6PF7Internal comp. thresholdOC threshold
01100 mV20 A
10250 mV65 A
11500 mV140 A

Bus voltage sensing circuit
The STEVAL-SPIN3202 evaluation board provides the bus voltage sensing. This signal is set through a voltage divider by the motor supply voltage (VBUS, R10 and R16) and sent to the PB1 GPIO (the ADC channel 9) of the embedded MCU. The signal is also available on TP6.

Hardware user interface
The board provides the following hardware user interface:

  • potentiometer (R6 setting, for example, the target speed)
  • switch SW1 (to reset STSPIN32F0A MCU and ST-LINK/V2)
  • switch SW2 (user button 1)
  • Switch SW3 (user button 2)
  • LED DL3 (user LED 1, turned on when the user 1 button is pressed too)
  • LED DL4 (user LED 2, turned on when the user 2 button is pressed too)

Debug
The STEVAL-SPIN3202 evaluation board embeds an ST-LINK/V2 debugger/programmer.

The ST-LINK/V2 features:

  • USB software re-enumeration
  • virtual com port interface on USB connected to the STSPIN32F0A (UART1) PB6/PB7 pins
  • mass storage interface on USB

The ST-LINK/V2 is supplied by the host PC through the USB cable connected to the board.
LD1 LED signals ST-LINK/V2 communication status:

  • Red LED flashing slowly: at power-on before USB initialization
  • Red LED flashing quickly: following the first successful communication between the PC and ST-LINK/V2 (enumeration)
  • Red LED ON: the initialization between the PC and ST-LINK/V2 is complete
  • Green LED ON: successful target communication initialization
  • Red/green LED flashing: during communication with target
  • Green ON: communication successfully completed

The reset function is activated by removing J8 jumper.

Schematic diagrams

Figure 3. STEVAL-SPIN3202 schematic (1 of 4)
UM2278-STEVAL-SPIN3202-Evaluation-Board-02

Figure 4. STEVAL-SPIN3202 schematic (2 of 4)
UM2278-STEVAL-SPIN3202-Evaluation-Board-03

Figure 5. STEVAL-SPIN3202 schematic (3 of 4)
UM2278-STEVAL-SPIN3202-Evaluation-Board-04

Figure 6. STEVAL-SPIN3202 schematic (4 of 4)
UM2278-STEVAL-SPIN3202-Evaluation-Board-05

Bill of materials

Table 5. STEVAL-SPIN3202 bill of materials

ItemQ.tyRef.Part/ValueDescriptionManufacturerOrder code
115C1, C5, C7, C8, C9, C11, C19, C20, C26, C27, C28, C29, C33, C34, C37100nF 50V ±15% 603Ceramic capacitorsAnyAny
21C222µF 63V ±20% L8.3_W8.3_H9.5Aluminium capacitorPANASONICEEEFK1J220P
34C3, C25, C40, C41220nF 100V ±15% 805Ceramic capacitorsAnyAny
41C410µF 25V ±20% D4_H5.5Aluminium capacitorWURTH865080440002
51C63.3nF 50V ±15% 603Ceramic capacitorAnyAny
61C1047µF 6.3V ±20% 805Ceramic capacitorAnyAny
72C12, C131 nF 50 V ±15% 603Ceramic capacitorsAnyAny
82C14, C184.7nF 50V ±15% 603Ceramic capacitorsAnyAny
91C15100pF 50V ±15% 603Ceramic capacitorAnyAny
102C16, C17220µF 63V ±20% L13.5_W13.5_H15Aluminium capacitorsPANASONICEEVFK1J221Q
111C21220pF 50V ±15% 603Ceramic capacitorAnyAny
 

12

 

5

C22, C23, C24, C35, C3610pF 50V 0.1 603Ceramic capacitorsAnyAny
132C30, C311µF 10V ±15% 603Ceramic capacitorsAnyAny
141C3210nF 50V ±15% 603Ceramic capacitorsAnyAny
152C38, C39NP 63V ±20% D12.5_H22_P5Aluminium capacitorsAnyAny
163C42, C43, C4468PF 50V ±15% 603Ceramic capacitorsAnyAny
171DL1RED 603LEDWURTH150060RS75000
181DL2RED 805LEDWURTH150080RS75000
192DL3, DL4YELLOW 603LEDWURTH150060YS75000
 

20

 

1

 

D1

STPS0560Z SOD12360 V, 0.5 A

power Schottky rectifier

 

ST

 

STPS0560Z

217D2, D9, D10, D11, D12, D13, D14BAT30KFILM SOD52330 V, 300 mA

SMD general purpose signal Schottky diode

ST 

BAT30KFILM

ItemQ.tyRef.Part/ValueDescriptionManufacturerOrder code
226D3, D4, D5, D6, D7, D84148WS SOD323DiodesAnyAny
23 

5

JP1, JP4, JP5, JP6, JP7OPEN 805ResistorsAnyAny
244JP2, JP9, JP10, JP11CLOSE 805ResistorsAnyAny
252JP3, JP861300311121HeadersWURTH61300311121
266JUMPER1, JUMPER2, JUMPER3, JUMPER4, JUMPER5, JUMPER6BLACKJumpersWURTH60900213621
272J1, J2691213510002ScrewsWURTH691213510002
281J3691213510003ScrewWURTH691213510003
291J461300511121HeaderWURTH61300511121
301J565100516121USBWURTH65100516121
311J661300411121HeaderWURTH61300411121
325J7, J8, J9, J11, J1261300211121HeadersWURTH61300211121
331J10NPHeaderWURTH61300211121
341LD1RED-GREEN PLCC4LEDAVAGOHSMF-A201-A00J1
351L122µH 0.6A ±20% L3_W3_H1.5InductorWURTH744 040 322 20
361M8GX_3xxPCBAnyAny
372N1, N2NETS_L1_W0.5CopperAnyAny
386Q1, Q2, Q3, Q4, Q5, Q6N-MOS DPAKN-channel 60

V, 0.0031 Ohm

typ., 80 A Stripe FET F7 power MOSFET in a DPAK package

STSTD140N6F7
391Q7NPN SOT23CMSON SEMICONDUCT ORBC847BL
401R139K 1/10W ±5% 603ResistorAnyAny
417R2, R7, R8, R62, R63, R67, R73 

100R 1/10W ±5% 603

ResistorsAnyAny
421R3330R 1/10W ±5% 603ResistorAnyAny
432R4, R5120R 1/10W ±5% 603ResistorsAnyAny
441R6100K 1/2W 0.1 L9.5_W4.9_H9.5TrimmerBOURNS3386G-1-104-LF
456R9, R14, R43, R50, R51, R520R 1/10W ±5% 603ResAnyAny
461R10169K 1/8W ±1% 805ResistorAnyAny
473R11, R48, R49680R 1/8W ±5% 805ResistorsAnyAny
ItemQ.tyRef.Part/ValueDescriptionManufacturerOrder code
481R125.6K 1/10W ±5% 603ResistorAnyAny
499R13, R45, R46, R47, R53, R54, R55, R65, R7110K 1/10W ±5% 603ResistorsAnyAny
501R158.2K 1/10W ±5% 603ResistorAnyAny
511R169.31K 1/8W ±1% 805ResistorAnyAny
526R17, R22, R31, R35, R39, R4110R 1/10W ±5% 603ResistorsAnyAny
536R18, R23, R32, R36, R40, R4262R 1/10W ±5% 603ResistorsAnyAny
541R1915K 1/10W ±5% 603ResistorAnyAny
551R201.2K 1/10W ±5% 603ResistorAnyAny
565R21, R59, R60, R61, R72NP 603ResistorsAnyAny
573R24, R25, R282.2K 1/10W ±5% 603ResistorsAnyAny
582R26, R270.02R 2W ±5% 2512ResistorsAnyAny
594R29, R56, R57, R581K 1/10W ±5% 603ResistorsAnyAny
602R30, R70100K 1/10W ±5% 603ResistorsAnyAny
611R33560R 1/10W ±5% 603ResistorAnyAny
622R34, R3818K 1/10W ±5% 603ResistorsAnyAny
631R3733K 1/10W ±5% 603ResistorAnyAny
644R44, R69, R74, R754.7K 1/10W ±5% 603ResistorsAnyAny
651R641.5K 1/10W ±5% 603ResistorAnyAny
661R6636K 1/10W ±5% 603ResistorAnyAny
671R682.7K 1/10W ±5% 603ResistorAnyAny
683SW1, SW2, SW3430483025816 L6.2_W6.2_H2.5SwitchesWURTH430483025816
6910TP1, TP2, TP3, TP4, TP5, TP7, TP10, TP11, TP13, TP14S1751-46RTest pointsHARWINS1751-46R
705TP6, TP8, TP9, TP12, TP15TPSMD-1MMTest pointsAnyAny
712TP16, TP17NEEDLE-PAD-1.7mmTest pointsAnyAny
721U1STSPIN32F0A VFQFPN48_L7_W7_P.5Advanced BLDC controller with embedded STM32 MCUSTSTSPIN32F0A
ItemQ.tyRef.Part/ValueDescriptionManufacturerOrder code
731U2USBLC6-2SC6 SOT23-6LESD protection for high speed USB 2.0ST 

USBLC6-2SC6

741U3LD3985M33R SOT23-5Ultra low drop- low noise Bi CMOS voltage regulators low ESR capacitors compatibleST 

LD3985M33R

751U4STM32F103CBT6 LQFP48Mainstream performance line, Arm Cortex-M3 MCU with 128 Kbytes of Flash memory, 72 MHz CPU, motor control, USB and CANSTSTM32F103CBT6
761X18MHz L3.2_W2.5QuartzNDKNX3225GD 8MHz EXS00A-CG04874

Revision history

Table 6. Document revision history

DateRevisionChanges
26-Sep-20171Initial release
21-Jul-20212Updated Section 1 Hardware and software requirements and Section 2 Getting started. Minor text changes.
20-Sep-20223Updated Section 2.1 Hardware description and configuration, Section 2.2.1 Six-step/FOC selection, and Section 3 Schematic diagrams.

IMPORTANT NOTICE – 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 acknowledgment.
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. For additional information about ST trademarks, refer to www.st.com/trademarks.
  • 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.
  • © 2022 STMicroelectronics – All rights reserved

Documents / Resources

ST UM2278 STEVAL-SPIN3202 Evaluation Board [pdf] User Manual
UM2278 STEVAL-SPIN3202 Evaluation Board, UM2278, STEVAL-SPIN3202, STEVAL-SPIN3202 Evaluation Board, Evaluation Board, Board, UM2278 Board

References

Leave a comment

Your email address will not be published. Required fields are marked *