cancel
Showing results for 
Search instead for 
Did you mean: 

Generate Code with Dual Motor on MC WorkBench

Harsh_M
Associate

Hi ,

We are working on NUCLEO- F401RE board for motor control and to configure & generate code MC WorkBench(version 6.3.2) is used. We have driven single motor, but we are not able to configure for dual motor below pop up appeared:

Harsh_M_0-1748002626853.png

Hardware Setup:

Motors:

Harsh_M_1-1748002840722.png

Power Board:

Harsh_M_2-1748002868874.png

Control Board:

Harsh_M_3-1748002889583.png

Connections:

Harsh_M_5-1748003071007.png

Is there incorrect configuration, or could you please suggest any other combination for dual motor (preferred control board f4 or f7)?

Thanks,

Harsh

 

 

 

1 REPLY 1
GMA
ST Employee

Hello @Harsh_M,

To drive two motors, MCU should have two advanced-control timers (only one is available on STM32F401RE MCU).
As mentioned on MCSDK6.3.2, dual drive is not supported on the STM32F7 series.
You can have a look to STEVAL-IHM039V1 board that is Dual Drive capable and based on STM32F415ZG MCU. On the STM32F4 series, only one current sensing configuration: 2ADCs, and ADC1-ADC2 configuration for both motors.
You have to ensure that:

  • both motor phase voltage signals could be connected to ADC1/2 Inputs.
  • PWM signal could be connected to two different advanced-control timers.

Refer to the MCU reference manual for more detail.

If you agree with the answer, please accept it by clicking on 'Accept as solution'.
Best regards.
GMA