cancel
Showing results for 
Search instead for 
Did you mean: 

I would like to know if either or both STEVAL-IHM040V1 and EVSPIN32F06Q1S3 are plug and play modules for controlling 3-Phase Sensorless Motors, and do not require initial software programming?

SBung.1
Associate II
1 ACCEPTED SOLUTION

Accepted Solutions

Yes, once the firmware is downloaded in the  STSPIN32F0601 you can run the motor without connecting the board to the PC.

Take care of two points:

  • you have to set correctly the jumpers in order to provide the supply to the microcontroller embedded in the STSPIN32F0601 VDD = 3.3V (JP8 closed between pin1 and pin2)
  • Since the PC is no more connected, you cannot use the GUI embedded in the X-CUBE-MCSDK. The firmware should manage this with proper instructions to start and stop the motor or to change the speed and so on… If you need to connect the PC for debugging and using the GUI, I suggest to use an USB isolator in between the board and the PC.

I forgot one last important thing… good luck !

View solution in original post

29 REPLIES 29
Dario CUCCHI
ST Employee

Hello @SBung.1​ and welcome to the ST Community !

Both the STEVAL-IHM040V1 and EVSPIN32F06Q1S3 needs to be programmed with a control firmware before driving the motor.

If it is ok with your application requirements, I can suggest to use the EVSPIN32F06Q1S3 or the EVSPIN32F0601S3.

The two boards are almost the same: what changes is the package of the device STSPIN32F0601.

These boards embed the ST-LINK programmer, so you just need to connect it with a USB to a computer for programming the microcontroller.

About the firmware, you can try to download the MC workbench program (X-CUBE-MCSDK).

This environment allows to configure the firmware for the FOC algorithm and generate the code that can be downloaded in the microcontroller.

Whether you choose the EVSPIN32F06Q1S3 or the EVSPIN32F0601S3, when creating a new project select the "EVSPIN32F0601S3" among the items in the dropdown menu (see picture below).

0693W000007Ex7RQAS.pngI hope this post can help you; if so, consider to mark it as best answer by clicking the label "select as Best".

This will help other community members with similar questions to quickly find the answer.

SBung.1
Associate II

Greetings Dario,

Thank you for best answer, I will use the EVSPIN32F06Q1S3 instead because of high voltage input range.

I have further points needing clarification:

What is the App Motor Profiler 5.4.5, used for? and I cannot find the EVSPIN32F06Q1S3 in it.

On MotorControl Workbench 5.4.5, after selections on 1, 2, and 3 on your picture above, selecting on 4: Motor high voltage shows Poles Pairs=4, No. vol.=320, should these values be absolute on the motor to be used, what about if the motor to be used has Pole Pairs=6 instead?

On the picture below, will the 400V DC power supply be applied on the same point referenced as AC input info, which is connector J4 on the board?

Can the Rated Bus voltage below be increased to 400V or more?

Is there a document manual for choosing the best settings above?

I am looking forward to your further clarifications.

Greetings Dario,
 
Thank you for best answer, I will use the EVSPIN32F06Q1S3 instead because of high voltage input range.
 
I have further points needing clarification:
 
What is the App Motor Profiler 5.4.5, used for? and I cannot find the EVSPIN32F06Q1S3 in it.
 
On MotorControl Workbench 5.4.5, after selections on 1, 2, and 3 on your picture above, selecting on 4: Motor high voltage shows Poles Pairs=4, No. vol.=320, should these values be absolute on the motor to be used, what about if the motor to be used has Pole Pairs=6 instead?
 
On the picture below, will the 400V DC power supply be applied on the same point referenced as AC input info, which is connector J4 on the board?
 
Can the Rated Bus voltage below be increased to 400V or more?
 
Is there a document manual for choosing the best settings above?
I am looking forward to your further clarifications.
Greetings Dario, 
Furthermore, after downloading the MC workbench program (X-CUBE-MCSDK), more clarification needed on:
Is the ST STM32CubeIDE the correct tool to be used to generate my code?
Also, I could not see how and when the frameware is programmed to the board?
Below, is the MCU being programmed is STM32 or it should be STSPIN32 instead?
Greetings Dario,
In addition to my previous email, can you please confirm if after programming the EVSPIN32F06Q1S3 with a control firmware, is it possible to run the motor with only EVSPIN32F06Q1S3 board thereafter, without connecting it to the PC anymore?

Hi @SBung.1​ ,

The motor profiler can be used to characterize the motor parameters, such as phase resistance, phase inductance, electrical constant and also the mechanical parameters.

This tool works only with a reduced subset of ST evaluation boards and the EVSPIN32F06Q1S3 is not supported.

The motor selected in the point 4 is not really important, it is just an example.

In fact, you can select the “generic high voltage motor�?, then you can select in the main configuration window the actual motor parameters for your specific application.

Just click on the motor block and a window pops-up for motor parameters' configuration.

0693W000008GehnQAC.png 

Next point: I can’t see your picture but I think you are referring on how to supply the board: J4 can be used for both AC and DC.

The rated bus voltage is max 280 VAC/ 400 VDC so do not exceed this voltage rating.

Documentation available for this board is the Data brief DB4168 and the datasheet of the driver STSPIN32F0601Q.

If you need some more information you can check out the user manual UM2596.

This manual is related to the EVSPIN32F0601S3, but as previously posted, the two boards have the same schematic, so you can use the information in this manual also for the EVSPIN32F06Q1S3 board.

The workbench supports different tools IAR, Keil, STM32CubeIDE and all are good for programming and debugging your firmware, the choice is up to your preference.

The workflow is:

  • Use X-CUBE-MCSDK to configure the FOC algorithm and all the parameters of your application
  • X-CUBE-MCSDK generates the C code and the project in the selected IDE(could be IAR, Keil, or STM32CubeIDE… up to you !)
  • Open the generated code using the IDE you’ve selected, then compile and download it in the board.

Doing this last step, you are programming the the microcontroller STM32F0 embedded in the STSPIN32F0601 driver.

Yes, once the firmware is downloaded in the  STSPIN32F0601 you can run the motor without connecting the board to the PC.

Take care of two points:

  • you have to set correctly the jumpers in order to provide the supply to the microcontroller embedded in the STSPIN32F0601 VDD = 3.3V (JP8 closed between pin1 and pin2)
  • Since the PC is no more connected, you cannot use the GUI embedded in the X-CUBE-MCSDK. The firmware should manage this with proper instructions to start and stop the motor or to change the speed and so on… If you need to connect the PC for debugging and using the GUI, I suggest to use an USB isolator in between the board and the PC.

I forgot one last important thing… good luck !

Greetings Dario,
Thank you for all your responses, much appreciated!
Can you please detail a step by step example of programming the microcontroller STM32F0?
Where and how to:
Compile and download the code (in the microcontroller STM32F0)?Start the execution of the code (Workbench)?
My basic understanding so far is as follow:
Open the created project:
Open the monitor, and connect the board, and the programming is done from this location?
Programming of the microcontroller STM32F0 is started by activating the command highlighted in yellow below?
I am looking forward to your further clarification or step by step example of programming the microcontroller STM32F0 again soon.
Kind regards,
Santos