Infineon-Stepper_Motor_Control_Shield_with_IFX9201SG_XMC1300_for_Arduino-UM-UM-v01_00-EN
Infineon-Stepper_Motor_Control_Shield_with_IFX9201SG_XMC1300_for_Arduino-UM-UM-v01_00-EN
Infineon-Stepper_Motor_Control_Shield_with_IFX9201SG_XMC1300_for_Arduino-UM-UM-v01_00-EN
Intended audience
This board user manual is intended for anyone using the Stepper Motor Control Shield.
Board User Manual Please read the Important Notice and Warnings at the end of this document Revision 1.0
www.infineon.com 2018-02-15
Stepper Motor Control Shield
with IFX9201 and XMC1300
Table of Contents
Table of Contents
About this document ....................................................................................................................... 1
Table of Contents ........................................................................................................................... 2
1 Overview ...................................................................................................................... 3
2 Introduction to stepper motor control ............................................................................. 4
2.1 Full step control....................................................................................................................................... 4
2.2 Half step control ...................................................................................................................................... 5
2.3 Micro step control ................................................................................................................................... 5
3 Getting Started.............................................................................................................. 6
3.1 Power Supply........................................................................................................................................... 6
3.2 Selecting a stepper motor....................................................................................................................... 6
3.3 Preconditions .......................................................................................................................................... 6
3.4 Connecting the shield ............................................................................................................................. 7
4 Operation ..................................................................................................................... 9
4.1 Control via XMC4700 Relax Kit for 5V shields ......................................................................................... 9
4.1.1 Preconditions ..................................................................................................................................... 9
4.1.1.1 Hardware ....................................................................................................................................... 9
4.1.1.2 PC setup......................................................................................................................................... 9
4.1.2 Test of the board ................................................................................................................................ 9
4.1.3 Configuration of the board .............................................................................................................. 10
4.2 Control by other means ........................................................................................................................ 11
5 Hardware Description ................................................................................................... 12
5.1 Schematics ............................................................................................................................................ 12
5.2 Layout .................................................................................................................................................... 17
5.3 Order information ................................................................................................................................. 18
1 Overview
The key components Stepper Motor Control Shield are shown in Figure 1.
Debug
connector
VS
IFX9201
DIS OUT1
STP PWM
DIR OUT2
DIR GND
DIS
Screw connectors
S
ARDUNINO header
VS
IFX9201
DIS OUT1
PWM
DIR OUT2
GND
5V
GND
N
The advantange is simple control; there is no feedback loop needed as the change of position can be calculated
based on the steps done (the initial position must be known beforehand to determine the final position). In
addition the holding torque is available if the motor is standing still.
Typical applications are 3D printing, robotics and home automation.
There are different methods of control for stepper motors. These wil be described in the following sections.
I I
I I
I I I I
Figure 4 Full step control
I I
I I
I I I I
I
I=0 I I=0
I I=0 I I=0
Figure 5 Half step control
The disadvantage is the holding torque being lower than in full step mode.
Figure 6 Micro step control, sin: blue, cos: red, example for 32 steps, percent of current over one
“full”step(360°)
Board User Manual 5 Revision 1.0
2018-02-15
Stepper Motor Control Shield
with IFX9201 and XMC1300
Getting Started
3 Getting Started
3.1 Power Supply
For providing the power to drive a DC motor the Stepper Motor Control Shield needs an external power supply
connected to VMOT and GND and a 5 V supply for the micro porocessor. VMOT is typically set to 12 or 24 V.
Attention: Stepper motors may not be connected directly to the supply voltage. The Stepper Motor Control
Shield will control the current and reduce the voltage at he output by PWM.
The shield can only be used for bipolar stepper motors (i.e. with a 4-wire connection).
3.3 Preconditions
Before starting, make sure the current is limited for the motor. In the default firmware (as delivered), the
current is limited to 1 A per coil.
To further decrease the maximum current, the potentiometer can be used, see Figure 7.
Attention: For getting started, it is recommended to limit the current to a very low value and later increase
the current. This can be done by turning the potentiometer clockwise as far as possible
(minimum current). Any counterclockwise rotation will then increase the current up to the
configured maximum.
Decrease
current
Increase
current
Figure 7 Potentiometer setting
There are two jumpers on the board, JP4 and JP5. Per default, these shall be connected between the central
pin and I_SIN/I_COS, see Figure 8. This means the operational amplifier is being used for measuring the current
through the IFX9201 devices. It is recommended to keep this setting.
jumper
jumper
Digital control
interface (5 V level)
DIS, STP, DIR
Motor supply
12 - 24 V typ.
Controller supply
5V
XMC4700 Relax Kit for 5V Shields will provide the 5 V supply and digital control interface via the ARDUINO™
header. The signals are described in Table 1.
4 Operation
As mentioned above, there is software available for download at www.infineon.com/ifx9201sg-stepper-motor-
shield. It will control the Stepper Motor Control Shield by an XMC4700 Relax Kit for 5V shields. In addition, the
firmware on the XMC1302 used for stepper control can be downloaded and modified.
4.1.1 Preconditions
4.1.1.1 Hardware
The Stepper Motor Control Shield has been intended as prototype and needs some hardware modification if it
shall be configured by the XMC4700 Relax Kit. It needs a connection between the Rx and Tx pins of the debug
interface to the Rx/Tx pins of the ARDUINO™ header. This is illustrated in Figure 10. Please make these
connections by a wire.
Tx connection
Rx connection
4.1.1.2 PC setup
Make sure the J-Link driver is installed properly. This is for example included in the installation of DAVE™ (see
http://www.infineon.com/dave). For more details on J-Link please visit www.segger.com.
For more information on the installation and USB connection, please refer to the board manual of the XMC4700
Relax Kit for 5V shields available under www.infineon.com/cms/de/product/evaluation-
boards/kit_xmc47_relax_5v_ad_v1.
Note: The memory of the XMC1300 has a limited amount of writing cycles.
Therefore, it is recommended to find a working setup and test it
before finally storing the configuration.
The new configuration can be entered into the IFX9201_STEPPERMOTOR_config_t example_config, see Figure
11.
5 Hardware Description
5.1 Schematics
Figure 13 Connectors
Figure 14 Microcontroller
5.2 Layout
OPN: KITXMC1300IFX9201TOBO1
IMPORTANT NOTICE
Edition 2018-02-15 The information given in this document shall in no For further information on the product, technology,
event be regarded as a guarantee of conditions or delivery terms and conditions and prices please
Published by characteristics (“Beschaffenheitsgarantie”) . contact your nearest Infineon Technologies office
(www.infineon.com).
Infineon Technologies AG
With respect to any examples, hints or any typical
81726 Munich, Germany values stated herein and/or any information
regarding the application of the product, Infineon WARNINGS
Technologies hereby disclaims any and all Due to technical requirements products may
© 2018 Infineon Technologies AG. warranties and liabilities of any kind, including contain dangerous substances. For information on
All Rights Reserved. without limitation warranties of non-infringement the types in question please contact your nearest
of intellectual property rights of any third party. Infineon Technologies office.
Do you have a question about this In addition, any information given in this document Except as otherwise explicitly approved by Infineon
document? is subject to customer’s compliance with its Technologies in a written document signed by
obligations stated in this document and any authorized representatives of Infineon
Email: [email protected] applicable legal requirements, norms and Technologies, Infineon Technologies’ products may
standards concerning customer’s products and any not be used in any applications where a failure of
use of the product of Infineon Technologies in the product or any consequences of the use thereof
Document reference customer’s applications. can reasonably be expected to result in personal
ifx1 injury.
The data contained in this document is exclusively
intended for technically trained staff. It is the
responsibility of customer’s technical departments
to evaluate the suitability of the product for the
intended application and the completeness of the
product information given in this document with
respect to such application.