HI,正交编码器接口=QEI。我知道一些DSPIC处理器已经集成了。但如果你看看编码器发出的信号(编码器+示波器的数据表),就不难做出一个函数来给出电机的速度。然后我有2个计时器-我数了脉冲,2个时间。我不需要一个特定的速度,但只是一个马达,它将保持一个速度设定的电位计。整个计划和金属工作是一个1下午的项目,焊接车床项目,它仍然工作。如果它设置在最低速度,动态响应是CRAP,因为我计数100计数-在缓慢的速度,这需要一些时间。但如果你有一个分隔比较多的滗水式编码器,那么这就解决了。我想我的滗水式编码器有32个分隔。祝你好运。祝你好运,马可。
以上来自于百度翻译
以下为原文
Hi,
Quadrature Encoder Interface = QEI. I know some dsPIC processors have it integrated. But if you look at the signals that your encoder gives out (datasheet of the encoder + oscilloscope) it would not be hard to make a function to give you the speed of the motor.
I used some old motors with unknown encoders, they had simple encoders that had open collector outputs. And then I had 2 timers - I counted the pulses and the 2 the time. I did not need a specific speed, but just a motor that would hold a speed set by a potenciometer. The whole program and metal work was a 1 afternoon project a welding lathe project and it still works. If its is set on the lowest speed the dynamic response is crap as I count 100 counts - at slow speeds it takes some time. But this is solved to if you have a decant encoder that has more divisions I think mine had something like 32.
Good luck.
Best regards,
Marko
HI,正交编码器接口=QEI。我知道一些DSPIC处理器已经集成了。但如果你看看编码器发出的信号(编码器+示波器的数据表),就不难做出一个函数来给出电机的速度。然后我有2个计时器-我数了脉冲,2个时间。我不需要一个特定的速度,但只是一个马达,它将保持一个速度设定的电位计。整个计划和金属工作是一个1下午的项目,焊接车床项目,它仍然工作。如果它设置在最低速度,动态响应是CRAP,因为我计数100计数-在缓慢的速度,这需要一些时间。但如果你有一个分隔比较多的滗水式编码器,那么这就解决了。我想我的滗水式编码器有32个分隔。祝你好运。祝你好运,马可。
以上来自于百度翻译
以下为原文
Hi,
Quadrature Encoder Interface = QEI. I know some dsPIC processors have it integrated. But if you look at the signals that your encoder gives out (datasheet of the encoder + oscilloscope) it would not be hard to make a function to give you the speed of the motor.
I used some old motors with unknown encoders, they had simple encoders that had open collector outputs. And then I had 2 timers - I counted the pulses and the 2 the time. I did not need a specific speed, but just a motor that would hold a speed set by a potenciometer. The whole program and metal work was a 1 afternoon project a welding lathe project and it still works. If its is set on the lowest speed the dynamic response is crap as I count 100 counts - at slow speeds it takes some time. But this is solved to if you have a decant encoder that has more divisions I think mine had something like 32.
Good luck.
Best regards,
Marko
举报