cancel
Showing results for 
Search instead for 
Did you mean: 

Control 4 BLDC Motors with STM32G484

L_Kopp
Associate II

Hello all,

I have an application in which I want to control four BLDC motors independently using the FOC. I want to use a STM32G484 for this. The question now is how I can distribute the interrups so cleverly that I can control all motors with 16kHz without them blocking each other.

Many thanks for your answers :)

 

1 ACCEPTED SOLUTION

Accepted Solutions

hi @L_Kopp ,
I can also suggest you look at the B-G431-ESC card, it is possible to control it from a PWM input to vary the speed with the Electronic Speed ​​Control, you can for example have 4 ESCs and one central control card.

 

here is information on how the ESC works: 

 

The electronic speed control (ESC) feature allows to control the motor speed with a PWM signal in input, for example on the B-G431B-ESC1 boards it is possible to use this feature to control the motors of a drone sending a PWM signal with a different duty cycle to switch the motor to armed, armed with a minimum speed, armed with a maximum speed and unarmed state.

Ziedb_0-1697615620224.png

You can find more details on this example on this link : click here

If you agree with my answer, please accept it by clicking on "Accept as solution".

View solution in original post

3 REPLIES 3
Zied b.
ST Employee

Hi @L_Kopp 
In the solution that we propose on the MCSDK, it is possible to use the STM32G474E-EVAL Board with 2 motors, but the current solution does not offer baords that make more than 2 motors. One of the ideas that I can suggest to you is to use 2 baords and have them communicate by Uart for example. Out of curiosity, can you tell me for which application you need 4 motors?
Regards

If you agree with my answer, please accept it by clicking on "Accept as solution".

Hey @Zied b. 

thank you for your answer. For a first try I can use two Nucleo boards but later I want to design my own board and use only one MCU if possible. Here, as I said, I'm not sure how to get the timings right so that all four motors can be controlled independently.
The application is a mobile robot :)

Regards

hi @L_Kopp ,
I can also suggest you look at the B-G431-ESC card, it is possible to control it from a PWM input to vary the speed with the Electronic Speed ​​Control, you can for example have 4 ESCs and one central control card.

 

here is information on how the ESC works: 

 

The electronic speed control (ESC) feature allows to control the motor speed with a PWM signal in input, for example on the B-G431B-ESC1 boards it is possible to use this feature to control the motors of a drone sending a PWM signal with a different duty cycle to switch the motor to armed, armed with a minimum speed, armed with a maximum speed and unarmed state.

Ziedb_0-1697615620224.png

You can find more details on this example on this link : click here

If you agree with my answer, please accept it by clicking on "Accept as solution".