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.

DRV8312-C2-KIT: Drivinging maxon BLDC Motor

Other Parts Discussed in Thread: CONTROLSUITE

I set the program to run in Level6.When I use the BLDC motor provided by TI development kit (DT 4260-24-055-04) I can control the speed in any of those cases  .

I'm trying to use the different motors such as Maxon,. By change the parameters:       #define POLES       2         // Number of poles 

1. Above is apply the new configuration of the motor to the program . Unfortunately ,motor spin much faster than I expected and I have no control for speed 

What other parameter need to be set for different motors ?

2."speed1.Speed" steady stay in ZERO ! sounds like HALL sensors don’t give feedback ! What could be the caused of reading wrong speed(actually speed is ZERO as I said )? 

3. How to make sure the Hall logics is right as the commutation states list in ISR?I need to change the order of values for Hall 1. HallGpioAccepted?

The default order is:5 1 3 2 6 4,

Is it necessary to change it to:5 3 1 2 6 4,   1 5 3 2 6 4,  5 1 3 2 4  6,.........?right?

// Comment the following if-else-if statements in case of
// inverted Hall logics for commutation states.
if (hall1.HallGpioAccepted==5)
pwm1.CmtnPointer = 0;

else if (hall1.HallGpioAccepted==1)
pwm1.CmtnPointer = 1;

else if (hall1.HallGpioAccepted==3)
pwm1.CmtnPointer = 2;

else if (hall1.HallGpioAccepted==2)
pwm1.CmtnPointer = 3;

else if (hall1.HallGpioAccepted==6)
pwm1.CmtnPointer = 4;

else if (hall1.HallGpioAccepted==4)
pwm1.CmtnPointer = 5;

  • You may have a look at the guide (DRV8312-C2-KIT_HowToRunGuide_v101.pdf) in below folder, and connect your motor to the kit according to the original bundled motor without changing the code in the project, that should be easier for you to implement. 

    C:\ti\controlSUITE\development_kits\DRV8312-C2-KIT_v128\~Docs

    Btw, the wire color of the original motor is as below.

    Red Hall Supply
    Blue Hall A
    Green Hall B
    White Hall C
    Black Hall Ground
    Yellow Phase A
    Red Phase B
    Black Phase C