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: BLDC_SENSORLESS CODE MODIFICATION and speed control modification

Part Number: TMS320F28069M

Dear Team,

As per the BLDC_SENSORLESS document, I am following to change the EnableFlag to 1 in watch window as shown below

Now, I am thinking to implement the external push button to make the Enable flag to 1 or 0 when it is pressed or released.

1. I need the code to implement that push button in BLDC_SENSORLESS_CODE for TMS320F28069M.

2. whether that is proper way to make the motor to run?

3.How to control the speed of the motor in this BLDC_SENSORLESS_CODE for TMS320F28069M? 

4 .what parameter should i need to change to control the speed of the motor?

Please provide much information for this.

Thanks & Regards,

senthilvel.

  • Hi Senthilvel,

    1. Using an external push button to control the enable flag is implementable. You can connect a GPIO with your push button and set it as an input, then, change the enable flag to the actual value that read from the GPIO.

    2. Notice that the EnableFlag is in task A1(), and it disables the PWM through trip zone, thus, as long as task A1() is active, you may use the push button to stop the motor.

    For 3. and 4., please refer to the BLDC_SENSORLESS document, which contains a detailed explanation on how to build the project incrementally and achieve closed-loop speed regulation.

    Thanks,

    Jiaxin