Author Topic: Measuring the angle of motor rotation using Encoder shaft and PIC 16f877a  (Read 2268 times)

0 Members and 1 Guest are viewing this topic.

Offline mohamedTopic starter

  • Full Member
  • ***
  • Posts: 88
  • Helpful? 0
i want to know the the angle of rotation of a motor using the pulses coming from an encoder by using microcontroller PIC 16f877a
thank you

Offline waltr

  • Supreme Robot
  • *****
  • Posts: 1,944
  • Helpful? 99
Count the pulses and the angle is #count / #ticks per rev * 360°.

Offline growler

  • Jr. Member
  • **
  • Posts: 24
  • Helpful? 0
Encoder pulses represent rotational translation, time is well, time.

So measure encoder pulses and time, then divide one by the other as said above and you get a speed value. Hell, with quadrature encoders you get a velocity.


Get Your Ad Here