cancel
Showing results for 
Search instead for 
Did you mean: 

Get motor to run at board power-up.

MEika.1
Associate

Is there a parameter where I can set the motor speed so that when the board is powered on the motor starts at a given rpm?

I am fairly new to this but have managed to get a motor profile and generated a code but my knowledge stops there.

board: B-G431B-ESC1

2-pole motor

open loop, no sensor.

1 REPLY 1
GMA
ST Employee

Dear MEika.1,

Firstly, we would like to sincerely apologize for the delay in replying to your post.
If your point is still pertinent, on main.c file, after the last init function call (usualy NVIC init), you can call the available APIs (located in mc_api.c file) as MC_ProgramSpeedRampMotor1_F in order to set a targeted speed and MC_StartMotor1 to start the motor. 

If you agree with the answer, please accept it by clicking on 'Accept as solution'.
Best regards.
GMA