2024-07-14 07:37 PM
Hi,
I can't manage to get my motor to work with the EVLDRIVE101-HPD board. I have generated the FOC firmware and uploaded it to the board through STM32CubeIDE. See attached for main.c
Is there something else I need to do? I have followed everything in the user manual for the board, but it is quite minimal in it's instructions.
I have done all of these steps.
"To start your project with the board:
1. Connect the brushless motor phases to J1, J2, and J3
2. Supply the board through J5 (positive) and J6 (ground)
3. Download the compiled code through the SWD interface connecting the STLINK programmer to J7
(STDC14 connector)"
After these steps, the board is powered up but there is no PWM signal on the phases. It is a constant 0V.
Any help will be appreciated,
Thanks!
2024-08-05 01:49 AM
Hi @mitch1
Looking at the file project you shared, I can suggest
- to increase PWM frequency at 16KHz
- to change "regulation execution time" in current sensing tab to 2PWM, avoiding to exceed the time G0 microcontroller needs for FOC calculation
- to reduce speed regulator gains at first, avoiding overshoots when speed loop is closed. Once the motor runs properly you will be able to adjust them (for instance P: 327/1024, I: 235/16384)
Regards
Alessio