Keyboard Shortcuts
ctrl + shift + ? :
Show all keyboard shortcuts
ctrl + g :
Navigate to a group
ctrl + shift + f :
Find
ctrl + / :
Quick actions
esc to dismiss
Likes
Search
Odd PCB design [1 Attachment]
Jim Hughen
¿ªÔÆÌåÓýNote:? This encoder appears to be binary which
is not a "unit distance code".? May have trouble reading.? Try a gray
code maybe.
?
...Jim
?
|
Off topic reply (about rotary encoder design):
Jorge, if you are designing a conventional 24-position rotary switch, your design should work OK. However, if you are trying to determine a shaft position in a _continuous_ range to the nearest 15 degrees, your rotary encoder design will not work reliably because it will give incorrect codes when the encoder sensors are lined up exactly on a boundary between the 15 degree sectors. For example, at the boundary between 10111 and 00000, the sensors might report 10111, 00000, 10000, 00110, etc. To make a rotary encoder that works over a continuous range, you can use Gray code. See You can use a 32-entry lookup table to quickly convert the Gray code to binary. Cheers, - Jan |
to navigate to use esc to dismiss