mcspte1ak144 with a different motor

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

mcspte1ak144 with a different motor

跳至解决方案
2,889 次查看
Albatros
Contributor III

I am using this development kit with M-2310P-LN-04K motor (Datasheet is in the attachments). I can drive the motor in sensorless mode but can not make it work with encoder mode even though I connected the encoder pins and set the encoder macro to true. What could be the problem?

Note: I changed MOTOR_PP to 4 because my motor has 8 poles

Note 2: When I change encoderPospe.thRotEl.filt variable with drvFOC.pospeSensorless.thRotEl my motor starts to spin so I think my problem must be with encoderPospe.thRotEl.filt variable. This value is the encoder's position value. What can I do about that, am I supposed to change MOTOR_PP_GAIN and MOTOR_PP_SHIFT right now?

标记 (3)
0 项奖励
回复
1 解答
2,483 次查看
Albatros
Contributor III
You have a different number of encoder pulses.
The kit has a motor with 1024 pulses.
For the FlexTimer it is 2*1024 - 1 = 2047.
For your motor let's say x = your pulses
Maximum Count Value in PE must be = 2 * x - 1.
And you should also change the initial value of the FTM2 counter in the main code so it must be - maximum count value in pe.

在原帖中查看解决方案

0 项奖励
回复
4 回复数
2,539 次查看
Lesternixon
Contributor I

I alter the encoderPose. drvFOC and the variable thRotEl.filt pospeSensorless. My motor turns on, hence I believe the encoder is the cause of my issue.

0 项奖励
回复
2,484 次查看
Albatros
Contributor III
You have a different number of encoder pulses.
The kit has a motor with 1024 pulses.
For the FlexTimer it is 2*1024 - 1 = 2047.
For your motor let's say x = your pulses
Maximum Count Value in PE must be = 2 * x - 1.
And you should also change the initial value of the FTM2 counter in the main code so it must be - maximum count value in pe.
0 项奖励
回复
1,233 次查看
kains
Contributor I

mcspte1ak144 is a code or identifier, possibly related to a specific motor. Without additional context or details about the replacement igg game motor, it's challenging to provide information on a different motor. Please provide more information for accurate assistance.

 

 

 

0 项奖励
回复
2,875 次查看
PetrS
NXP TechSupport
NXP TechSupport

Hi,

here are some hints received from Apps team:
- change the setting in PE for the encoder (FTM) to the correct number of counts/rev
- correctly set the number of counts in FreeMASTER (Sensors tab)
- change the ENCODER macro
- select the appropriate Sensor option in FreeMASTER
- correctly connect the encoder to the board. Do not forget that for the encoder it is necessary to connect, in addition to ENC A, ENC B and ENC I, also to GND and +5V. On DEVKIT-MOTORGD, check that J8 is disconnected (+5V).

BR, Petr

0 项奖励
回复