2024-06-24 09:57 AM - edited 2024-06-25 04:09 AM
Hello ST expert,
I'd like to control 4 300W motors with the BLDC L6234 and my STM32F401, but the problem is that I can't use 12 TIMERS and 12 GPIOs just for that, I need to interface other modules.
Can I just use PWM/BLDC, and interface the two like that?
STM32F401 L6234PD
| |
| PA6 (PWM) ----------> | EN1 (3)
| PA6 (PWM) ----------> | EN2 (6)
| PA6 (PWM) ----------> | EN3 (11)
| PB0 ----------------> | IN1 (17)
| PB1 ----------------> | IN2 (18)
| PB2 ----------------> | IN3 (19)
| |
| |
| 11V ----------------| VS (10) |
| GND ---------------| GND (1, 2, 7, 16) ----+
| |
| | OUT1 (4, 5) -------> Phase U of Motor
| | OUT2 (8, 9) -------> Phase V of Motor
| | OUT3 (14, 15) -----> Phase W of Motor
Best regard.
Solved! Go to Solution.
2024-06-26 05:39 AM
Hi @Paulo971 ,
From my point of view, you have no other choice than using 6 dedicated pins per motor.
Regards
Cedric
2024-06-25 05:34 AM
Hello @Paulo971,
The In1, In2, In3 pins must be connected to three different channels (CH1, CH2, CH3) of the same Timer.
The EN1, EN2, EN3, must be connected to three different GPIOs.
These conditions are mandatory to properly control your motor with 6-STEP algorithm and proper BEMF detection.
I do not see how you could avoid multiplying these numbers by the number of motors, knowing that all those signals must be controlled independently.
Do not hesitate to have a look at the schematic of the board STEVAL-IHM043V1 using this driver available here:
Regards
Cedric
2024-06-26 12:47 AM
Ok i understand, but what if i dont want to use the 6-step algorithme ?
2024-06-26 01:27 AM
Hum, but what kind of control do you want to achieve with your 300W motor?
If your idea is to apply to the four motors exactly the same duty cycle, then you will drive them in open loop with a very bad efficiency and without any way to maintain a torque or a speed. It is clearly a direction we do not encourage.
Regards
Cedric
2024-06-26 01:35 AM
The idea is to design a PCB that can independently control 4 three-phase motors for an omnidirectional RC car.
2024-06-26 05:39 AM
Hi @Paulo971 ,
From my point of view, you have no other choice than using 6 dedicated pins per motor.
Regards
Cedric