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;