Skip to main content
MEika.1
Visitor II
April 18, 2023
Question

Get motor to run at board power-up.

  • April 18, 2023
  • 1 reply
  • 865 views

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.

This topic has been closed for replies.

1 reply

GMA
Technical Moderator
September 6, 2023

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