[STEVAL-SPIN3204] MCSDK ~ STM32CubeIDE BLDC Motor Control
- June 18, 2024
- 2 replies
- 2061 views
[VERSION]:
MCSDK-6 : 6.3.0
STM32CubeMX : 6.11.1
STM32CubeIDE : 1.15.1
[TOOL]:-
[DETAILS]:
I am trying to drive a 12V BLDC Motor (Hall sensor) in current mode through STEVAL-SPIN3204.
Set the project parameters in MCSDK as shown in the picture, generate code in CubeMX, debug with CubeIde, and load it on STEVAL-SPIN3204.
It can be driven in MCSDK's Motor Pilot, but the RPM is fixed and cannot be adjusted.
I tried to write code in CubeIDE, but I don't know which part to touch.
----------------------------------------------------------------------------------------------
Additionally, the motor is currently driven by the user1 button. However, if I remove the USB that was used to debug the STEVAL-SPIN3204, the motor does not run even when I press the button. I don't know which part is wrong.
[EXPECTED BEHAVIOR]:
PWM or anything else is fine, so I want to control the speed, direction, start, and stop of the motor.
[HOW TO REPRODUCE]:
STEVAL-SPIN3204 - HallSensor(JP05,06,07 Close)(JP08,09,10 Open)
- Main Power(12V)
- BLDC U, V, W (Current Mode)
- USB(Debug)
Warriors,,,, Please save me..
