2015-09-22 09:51 PM
Hi everyone.
I am developing a robotic application and I need some advice.
I need to drive two BLDC motors (these drive the wheels of the robot) and also to interface with a parallel camera.
I understand that with STM32F407VGT6 I am able to drive individually two BLDC motors (using the STM32 PMSM FOC SDK) and also interface with the camera. For this reason I plan to buy the STM32F4DISCOVERY board.
Do you know some limitation or problem that I could have with STM32F4DISCOVERY and STM32 PMSM FOC SDK?
Thank you and I am sorry in the case I put my message in the wrong place.
#stm3240g-eval2015-11-10 06:10 PM
Hi Gigi
Before using the sensorless algorithm I'm trying to get the motor running properly with hall sensors. It should work without problem with the sensors but it doesn't. So I tried to manually change the PID Gains and it works now.PID Gains:kp 45Ki 15Iq:All 246 (scaled by a factor of 10 respect the default value)I've still the problem of the maximum PWM frequency and I'm not able to run the motor at a velocity lower than 20000 rpm. Between 20000-600000 it works pretty well.Can you help me tuning better these parameters before moving to the sensorless control?GrazieAlex2015-11-11 12:43 AM
Ciao Alex
The maximum modulation index that pratically is the maximum BUS voltage available for the control depends on Sampling Time, and noise parameters (TNoise, TRise) present in power stage parametes. You can try deceasing these values. Maybe you can take a look to the example P-NUCLEO-BullRunning that is for a drone propeller motor. Ciao Gigi2015-11-11 12:46 AM
Ciao Alex
The only thing that I can see from these data is that the PI coefficient that you set are very low. You can try to increase the divider so the numerator can have bigger values and better resolution. Ciao Gigi2015-11-18 10:55 PM
Hi Gigi.
Thank you for your suggestions.I'm able to run a single motor in both the configurations (Sensored and Sensorless) without any problems. But I've some problem with the dual configuration (two motors at the same time). What happens is that, in dual configuration, I'm able to separately drive the motors (one at time), but when I try to get running together the system stop working and the fault status appears.Do you have any suggestions about how to fix this problem? I think that in order to make them running at the same time I need to change some configuration parameter.Actually I'm working with a PWM of 45kHz, current loop of 0.5ms and rate 1, three shunt resistances.Alex2015-11-19 12:40 PM
Hi Gigi.
I've tried to increase the execution rate to 2 or 3 PWM period, as you suggested into this old post:https://my.st.com/public/STe2ecommunities/motordriver_ics/Lists/Motor%20Control%20Firmware%20and%20Software/Flat.aspx?RootFolder=https%3a%2f%2fmy%2est%2ecom%2fpublic%2fSTe2ecommunities%2fmotordriver_ics%2fLists%2fMotor%20Control%20Firmware%20and%20Software%2fFOC%20SDK%203%2e4%20with%20STM32F303CB&Fo...With execution rate PWM period higher than 2 (without changing the other parameters) the motors start up together but they don't stabilize, I receive the error ''Speed feedback'' or ''Start-Up Failure''. I get the same message also driving only one motor at time.Any idea how to fix this? Because it's strange that with execution rate 1 PWM period it works and with 2 it doesn't.Thank you again for your help.Alex.2015-12-01 10:23 AM
Ciao Gigi.
I am still not able to run the motors in dual configuration.Can you help me?2016-01-28 04:30 AM
Hi Gigi.
I'm able to drive both the motor in dual configuration with hall sensors. If I switch to DUAL sensorless it works only If i run one motor at time.Do you have any suggestion about that?2016-03-31 01:10 PM
Hi Gigi,
In reference to the STM3240G-eval can you please confirm some of the boards that are compatible out of the box with the MP? Thank you.2016-04-01 05:19 AM
Ciao Jack,
please don't duplicate your questions, thank See my answer/f60eafe7
Ciao Gigi2021-06-17 01:14 AM
The question has been moved from the "Motor Control Hardware" section to the "STM32 Motor Control" section (the question is about the STM32 MC SDK).
Best regards