¿ªÔÆÌåÓý

ctrl + shift + ? for shortcuts
© 2025 Groups.io

Re: Odd PCB design [1 Attachment]


 

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

Join [email protected] to automatically receive all group messages.