cancel
Showing results for 
Search instead for 
Did you mean: 

STEVAL-PTOOL 1V1 motor setup in MC Workbench (6-step)

JStamwood
Associate

Hi there,

Im trying to get my STEVAL-PTOOL1V1 up and running with my motor, a Sofasco sDBS7025 with the following specs:

3-phase BLDC

7-12V DC operating voltage

1.5A rated current

11100 max RPM 

4 pole 

8 pins:

PinFunction
1V
2W
3U
4HW
5HU
6HV
75V0
8COM

I have managed to get it operating by using the STEVAL-PTOOL1V1_6S_HL example project in the ST Motor Control SDK V 6.4.1 however I seem to have little control over the speed.

I haven't been using the potentiometer feature of the STEVAL-PTOOL1V1 and instead been using the following functions:

MC_ProgramSpeedRampMotor1(2000, 1000);

MC_StartMotor1();

and when wanting to change the speed, changing the 2000 for a different speed and rebuilding the project and programming to the board.

However when I input a different speed e.g. 10000 there is no difference to the speed, observed by the current draw of the bench power supply remaining the same.

I suspect I have setup the motor parameters incorrectly in the MC Workbench 6-step wizard but am not certain how so I'm looking for solutions to get this working as expected.

1 REPLY 1
ADAVE.1
ST Employee

Hi @JStamwood 

please be aware that the function MC_ProgramSpeedRampMotor1(hFinalSpeed, hDurationms) accepts a value of the final speed that is defined in #SPEED_UNIT.

Since #SPEED_UNIT is tenth of hertz, you have to divide your target value by 6. For instance if you want to spin the motor at 10 kRPM:

MC_ProgramSpeedRampMotor1(1667, 1000);

Alessio