June 2009 Doc ID 15774 Rev 2 1/22
UM0709
User Manual
STM8/128-MCKIT motor control starter kit
1 Introduction
The STM8/128-MCKIT starter kit is an integrated system designed to provide a complete,
ready-to-use motor control applicat ion developed around the STMicroelectronics STM8
microcontroller.
This starter kit is particularly suited to drive 3-phase brushless motors (either AC induction
or permanent magnet types) and demonstrates how effectively the STM8 microcontrollers
can be used in real-world motor control applications.
Drive is based on scalar control (BLDC or ACIM) for thr ee-phase motors.
Position and/or speed measurement is implemented using Hall sensors or a
tachometer.
Sensorless control is also implemented.
The inverter is driven using the PWM modulation technique.
The STM8/128-MCKIT starter kit can be run in various ways:
As a plug-and play demo, out of the box, with the provided BLDC motor, in sensorless
speed control mode.
With an A C induction mo tor, after reprog ramming the microcontroller, in open loop or in
speed control mode.
However, the main advantage of the STM8/128-MCKIT is that you can use it to create your
own applications and re-program the STM8 microcontroller. You can develop your own
applications using the dedicated software libraries provid ed in the starter kit in conjunction
with a third-party IDE and C compiler.
This manual describ e s:
The STM8/128-MCKIT starter kit components, and how to set up the hardware to run
the provided BLDC motor or an AC induction motor.
How to run the STM8/128-MCKIT starter kit in standalone mode.
The BLDC daughterboard (MB843).
For information about the STM8 microcontroller features, refer to the datasheet. The STM8
evaluation board features, peripherals , and connectors are described in the STM8/128-
EVAL use r manual (UM0482).
F or inf ormation on the BLDC and A C induction mot or software lib raries and how to u se them
in motor control application development projects, refer to the STM8S three-phase BLDC
software library (UM0708) and the STM8S three-phase AC induction motor soft ware library
user manual (UM0712) respectively. You will find these manuals, and all related
documentation on the STM8/128-MCKIT CD-ROM.
www.st.com
Contents UM0709
2/22 Doc ID 15774 Rev 2
Contents
1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
2 Safety warnings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
2.1 General . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
2.2 Intended use . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
2.3 Operation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
2.4 Important notice to users . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
3 STM8/128-MCKIT hardware setup . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
3.1 Package checklist . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
3.1.1 Hardware . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
3.1.2 Software . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
3.1.3 Documentation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
3.1.4 Components not provided . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
3.2 Brushless DC motor (default) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
3.3 AC induction motor . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
3.4 Hardware configuration for a BLDC motor (default) . . . . . . . . . . . . . . . . . . 8
3.5 Hardware configuration for an AC induction motor . . . . . . . . . . . . . . . . . . 11
3.6 Power supply connections . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
4 BLDC daughterboar d MB843 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
4.1 Features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
4.2 Layout . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
4.3 Jumper configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
4.4 Schematic . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
5 Running the starter kit . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
5.1 Running the BLDC motor . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
5.2 Running the AC induction motor . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
6 Creating your custom application . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
Appendix A Additional information. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20