background image

UM0522

Motor control operations

19/39

Motor control operations

8.1 Environmental 

considerations

Warning:

The STEVAL-IHM015V1 evaluation board must only be used 
in a power laboratory. The voltage used in the drive system 
presents a shock hazard.

The kit is not electrically isolated from the DC input. This topology is very common in motor 
drives. The microprocessor is grounded by the integrated ground of the DC bus. The 
microprocessor and associated circuitry are hot and MUST be isolated from user controls 
and communication interfaces.

Warning:

Any measurement equipment must be isolated from the main 
power supply before powering up the motor drive. To use an 
oscilloscope with the kit, it is safer to isolate the DC supply 
AND the oscilloscope. This prevents a shock occurring as a 
result of touching any SINGLE point in the circuit, but does 
NOT prevent shocks when touching two or more points in the 
circuit.

An isolated AC power supply can be constructed using an isolation transformer and a 
variable transformer. A schematic of this AC power supply is in the application note, "AN438, 
TRIAC + microcontroller: safety precautions for development tools." (Although this 
application note was written for TRIAC, the isolation constraints still apply for switching 
semiconductor devices such as MOFSETs.)

Note:

Isolating the application rather than the oscilloscope is highly recommended in any case.

8.2 Hardware 

requirements

To set up the STEVAL-IHM017V1 evaluation board system, the following items are required:

The board: STEVAL-IHM017V1

High-voltage insulated AC power supply up to 230 Vac

Softec inDART-STX (not included in the package)

Softec ICC isolation board (not included in the package)

Two 10-pin flat cables (not included in the package)

3-phase brushless motor with permanet magnet rotor (not included in the package)

Insulated oscilloscope (as needed)

Insulated multimeter (as needed)

www.BDTIC.com/ST

Summary of Contents for STEVAL-IHM017V1

Page 1: ...memory The system has been designed to drive a three phase brushless motor with permanent magnet rotor exploiting trapezoidal sensorless control The STEVAL IHM017V1 features complete hardware for deve...

Page 2: ...T6 microcontroller functions 10 4 1 Main features 10 5 STD5NK52ZD 1 characteristics 12 6 Board electrical characteristics 13 7 Board architecture 14 7 1 Power supply 14 7 2 Power stage 15 7 3 ICC conn...

Page 3: ...ings 24 8 10 Changing the maximum current allowed by GUI 26 8 11 Compiling the firmware 26 8 12 Programming firmware 27 8 13 Setup option byte 29 8 14 Board connection 30 8 15 Changing the maximum cur...

Page 4: ...gure 9 Board schematic control block 17 Figure 10 Board schematic power block 18 Figure 11 STVD7 for InDART STX toolset configuration 20 Figure 12 Motor type choice window 22 Figure 13 3 phase BLAC DC...

Page 5: ...l characteristics 13 Table 4 Configuration h files 21 Table 5 3 phase BLAC DC trapezoidal basic parameters 23 Table 6 3 phase BLAC DC trapezoidal advanced parameters 25 Table 7 Potentiometer functiona...

Page 6: ...Power MOSFET STD5NK52ZD 1 4 4 A 520 V included 15 V auxiliary power supply connector Programming and debug support via 10 pin ICC connector Three potentiometers for runtime settings Start stop button...

Page 7: ...n open source C code is available derived from the ST7MC motor control libraries allowing easy customization and extension of control algorithms The core of the control block is constituted of an ST7M...

Page 8: ...l as information concerning the power supply conditions shall be taken from the documentation and strictly observed 3 3 Evaluation board installation The installation and cooling of the demonstration...

Page 9: ...with additional control and protective devices in accordance with the applicable safety requirements e g compliance with technical equipment and accident prevention rules Warning Do not touch the boa...

Page 10: ...ot used in this evaluation board Serial communication interface LINSCI not used in this evaluation board Motor controller MTC peripheral with 6 high sink pulse width modulator PWM output channels asyn...

Page 11: ...this evaluation board MOSI Master out slave in data not used in this evaluation board SCK Serial clock not used in this evaluation board LINSCI RDI Received data input not used in this evaluation boa...

Page 12: ...it shown in Table 2 may cause permanent damage to the device Table 2 Absolute maximum ratings Symbol Parameter Value Unit VDS Drain source voltage VGS 0 520 V VDGR Drain gate voltage RGS 20 k 520 V VG...

Page 13: ...extended periods may affect device reliability 15 V bias current measurement can be useful to check the working status of the board If measured value is considerably greater than typical value it mea...

Page 14: ...board to feed the drivers and the microcontroller This auxiliary supply can be useful for safety reasons for example it should be used to program or debug the device without feeding the board with hi...

Page 15: ...urned on by means of R1 and D22 while the turnoff is performed very fast by means of the Q1 transistor It is also possible to use the alternate configuration of the network See Figure 6 To set this co...

Page 16: ...onnector The ICC connector J7 is used to establish ICC communication for programming debugging purposes The pinout is shown in Figure 8 This connector is compatible with Softec s inDART STX board not...

Page 17: ...10 1 3 5 7 9 J7 ICC connector HE10 male type 5V C23 470nF 25V C24 470nF 25V C25 470nF 25V R39 10K 5V R40 100K C34 470nF R41 10K R42 10K BB2 R46 1 5K MCO3 HS 1 OSC1 5 OSC2 6 Vss_1 7 Vdd_1 8 PA3 PWM0 A...

Page 18: ...2 D19 STTH106 1 2 D18 STTH106 1 2 D20 STTH106 C2 2 2uF 25V C4 22nF 50V R24 100K 1 2W C1 BE1 15 5A R64 1 2K R65 1 2K R66 1 2K Neutral Main Phase Main 15V 1 2 J9 230VAC 1 2 CON2 15V Vin 3 GND 2 Vout 1...

Page 19: ...prevent shocks when touching two or more points in the circuit An isolated AC power supply can be constructed using an isolation transformer and a variable transformer A schematic of this AC power su...

Page 20: ...smic compiler Installation note 1 Install the Cosmic compiler first Use the default installation folder C Program Files COSMIC CXST7_16Kbite Registration is required before using the product You can p...

Page 21: ...rm configure indicates the act of selecting a specific driving strategy such as open or closed loop voltage or current mode and so on The setting of customized parameters such as current limitation mo...

Page 22: ...ars see Figure 12 In this window the user can choose the kind of motor For this evaluation board only the 3 phase BLAC DC motor trapezoidal is available Figure 12 Motor type choice window Press the OK...

Page 23: ...nment phase in milliseconds ms Acceleration phase Mechanical acceleration rate The mechanical acceleration rate of the rotor during the ramp up in RPMs or Hz per second alternate between RPM and Hz se...

Page 24: ...dge The B EMF Rising delay coefficient value from 0 to 255 B emf falling edge The B EMF Falling delay coefficient value from 0 to 255 Closed loop parameter only in closed loop Integral coefficient Ki...

Page 25: ...rectification it is enable or not Deadtime Value of deadtime in s only if Complementary PWM enabled Current loop Current blanking window Time window filter in milliseconds to prevent erroneous sampli...

Page 26: ...window after a D event in microseconds s Z event counter filter Defines the number of counter events required to validate a Z event Threshold voltage Voltage set in volts for Z detection Demagnetizati...

Page 27: ...the rebuild all command The project will be compiled and built and an executable file firmware name s19 will be generated inside release folder under the workspace Note 1 Make sure that the following...

Page 28: ...the user may safely ignore the warning since every kind of compatibility and security test has been carried out by Softec Microsystems 2 Connect the inDART board with the J7 connector using the 10 pi...

Page 29: ...ttings 9 Click the button near name box and select the binary code S19 to download into the microcontroller and press OK to know which binary code to select see Section 8 11 Compiling the firmware on...

Page 30: ...D behavior to verify that the firmware has been correctly downloaded 8 14 Board connection After the board has been programmed the system can be configured as shown in Figure 19 This configuration is...

Page 31: ...e desired threshold is 2 2 A it is required to use R51 200k Note A place holder named R53 in parallel to R51 is also included that can be useful if the calculated value is not a standard value resisto...

Page 32: ...s started to run After a while LED D13 stays on to indicate idle state 8 18 Potentiometers functionality If enabled during the configuration the three potentiometers R61 R62 R63 can be used to set run...

Page 33: ...ssing and commutation while 255 means that the delay between zero crossing and commutation is equal to last step time The maximum duty cycle allowed in voltage mode depends on the value of PWM frequen...

Page 34: ...RH pitch 15 24mm 12 C13 C14 C15 C16 C19 C20 100 pF SMD 1206 13 C17 C22 C39 C48 1 nF SMD 1206 14 C18 N M Not assy 15 C23 C24 C25 C34 470 nF SMD 1206 16 C28 C40 C42 100 nF SMD 1206 17 C30 C49 C51 C52 10...

Page 35: ...H 44 R4 12 TRH 45 R23 12 SMD 1206 46 R5 R7 R9 R14 R32 R34 220 SMD 1206 47 R10 0 1 3 W TRH 48 R12 R13 R15 R16 R17 R18 82 TRH 49 R19 1 SMD 1206 50 R20 R22 R35 R47 R26 R36 N M Not assy 51 R21 R31 R37 22...

Page 36: ...code RS 100 1199 12 64 x 10 e distrelec 50k cod 740218 0 82x 10 65 S2 SW PUSH SMD 66 TR1 N M 67 X1 CSTCE16MOV53 RO TRH 3pin 68 15 5A NTC TRH 69 Nylon spacer 10 mm Any Table 8 Bill of materials continu...

Page 37: ...please refer to 1 ST7MC datasheet complete information about microcontroller features and peripherals 2 ST7MC motor control related application notes complete information about motor control libraries...

Page 38: ...Revision history UM0522 38 39 11 Revision history Table 9 Document revision history Date Revision Changes 07 Apr 2008 1 Initial release www BDTIC com ST...

Page 39: ...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 UNLESS EXPRESSLY...

Reviews: