Microchip
直播中

陈静

8年用户 1378经验值
私信 关注
[问答]

没有找到最大的QEI率

您好,我在QCY32 EP256MC506的MCLV2卡上使用QEI。我用matlab编程我的微控制器,我没有找到最大的QEI率。我使用4096行的编码器。在低速,大约1000 rPM,我的控制是完美的。我比较了测量结果与另一个装置并行,它是完美的。当我增加速度时,由于计数问题而失去同步。我尝试转向大约600rPM,这导致1.638兆赫。这张卡片可以吗?还是太多了?最好的问候,Romain DELPOUX

以上来自于百度翻译


      以下为原文

    Hello,

I'm using the QEI on a MCLV2 carte with dspic33ep256mc506. I use matlab to program my microcontrolleur.

I do not manage to find the maximum rate for the QEI. I use an encoder with 4096 lines. At low speed arround 1000rpm, my control is perfect. I compared the measured psotion with another device in parallel and it's perfect. As soon as I increase the velocity the synchronism is lost due to count problem. I try to turn arround 6000rpm, which leads to 1.6384 MHz. Is it possible with this card or it's too much?

Best regards.

Romain DELPOUX

回帖(3)

任莉虹

2019-3-25 10:39:24
亲爱的LubinI正在尝试使用一个QEI块来捕获一个直流电机的角度位置,编码器提供一个非常高的脉冲数(每转500个),它与齿轮相耦合,降低了速度(84倍),这意味着对于一个最终轴的旋转,我有500×84脉冲。ES),使用具有16位输出的DSIC33 FJ128MC802 QEI,在我得到一个转弯之前溢出。我正在考虑使用QEI中断来捕获溢出,这样我就可以更新脉冲的总数,这将是可能的,使用外部C代码块,如果可以的话,你能给我一个如何做的提示吗?

以上来自于百度翻译


      以下为原文

    Dear Lubin
I am trying to use a QEI block to capture the angular position of a dc motor with an encoder that delivers a very high number of pulses (500 per revolution) it is coupled with gear that reduces the speed (84 times) this means that for one revolution of the final axle I have (500 x 84 pulses), using the dspic33fj128mc802 qei with a 16 bit output this overflows before I get one turn. I am thinking of using the qei interrupt to capture the overflow so that I can update the total number of pulses, would that be possible using the external c code block, if so could you give me a hint of how to do it.
thanks in advance
 
bizard
举报

康大争

2019-3-25 10:52:19
你好,Bizard,在QEI块GUI中应该有“索引计数器(完成旋转数)”的输出。这个输出应该为你提供你正在寻找的信息。它将使用QEI中断来计算完成的回合数。根据QEI的方向,中断将递增或递减该索引值。

以上来自于百度翻译


      以下为原文

    Hi Bizard,
 
In the QEI block GUI you should have the "Index counter (Number of completed rotation)" output available.
This output should provide you the information you are looking for.
It will use the QEI interrupt to count the number of completed turn. Depending on the direction QEI, the interrupt will increment or decrement this Index value.
举报

任莉虹

2019-3-25 11:05:20
嗨,鲁宾,非常感谢你的帮助,我没有意识到这已经是最好的了。

以上来自于百度翻译


      以下为原文

    Hi Lubin,
Thank you very much for your help, I didn't realize that it was already there
 
all the best
Bizard
举报

更多回帖

发帖
×
20
完善资料,
赚取积分