This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

TMS320F28069M: How to modify the lab05b project to implement the following functions

Genius 3095 points

Part Number: TMS320F28069M

Dear team:

I use 28069M+drv8301 to control BR2804-1700Kv-1 three phase BLDC motor. Can I modify the program in lab05b to achieve the following functions:

1, The motor will automatically start by 10 sec later after power-on, The initial velocity is 2000rpm.

2, After running for 10 seconds, the speed was adjusted to 4000rpm.

3, After another 10 seconds of operation, the speed was adjusted to 6000 rpm.

4, Run for another 10 seconds to stop the motor, and then repeat the process.

 

Best regards

  • Three phase BLDC motor
  • Of course, you can do this. Adding a timer to implement the control flow in the background main loop if the delay time is not very critical.

    1. Define a global variable as time counter, and counting it in ISR.

    2. Set gMotorVars.Flag_enableSys to "true" before the main background loop.

    3. Set gMotorVars.Flag_Run_Identify to "true" and gMotorVars.SpeedRef_krpm to the target speed when the setting time is out.

    4. Set gMotorVars.Flag_Run_Identify to "false" and  gMotorVars.SpeedRef_krpm to the target speed when the setting time is out.

    5. Repeat step 3 and step 4.

    Btw, you may contact your local FAE or post your questions to China E2E forum if you still have any question on this.