Friday, May 26, 2017
Angle Encoder Pin Translation
The angle encoder sends a series of ones and zeros depending on what direction the encoder is turning. The above two images allow us to translate the numbers to a direction - either clockwise or counterclockwise.
***Note: The following example uses specific values in order to demonstrate how to use the charts. These values are shown in orange on the images at the bottom of this page.
Looking at the first image, if you take the first two numbers for both pins A and B and if you read them from left to right you will have PA = 0, PB = 0, CA = 0, and CB = 1. 0001 translates to a clockwise rotation on the second image. Referring back to the top right of the first image, our result of clockwise is confirmed. You are able to repeat this process for any of these combinations and translate the encoder's pin values to what direction it's actually rotating in.
Subscribe to:
Post Comments (Atom)
Note: The coding style of Current/Past A/B is called Quadrature or Grey Coding. This may help in searching google for clarity.
ReplyDelete