DerStrom8
Super Moderator
Hi guys,
I have not had the opportunity to use rotary encoders in the past for my designs, so I am very fuzzy about the differences in types, and how they're handled by software (assuming a uC is used). One design I'm currently looking at uses the Grayhill 25LB11-Q mechanical rotary encoder (Datasheet ). I have the software for reading from this device using a microcontroller, and it works very well. However, being mechanical these encoders are generally only good for about 100k rotations (according to the DS) before they start to fail. The device in question requires constant manipulation of the knobs, so the mechanical ones really don't last very long. I am looking for different options, and thus I have begun to look at optical encoders instead. One that I have considered is the Bourns EM14A0D-C24-L032N (Datasheet: https://www.bourns.com/data/global/pdfs/em14.pdf). I am wondering what changes (if any) will need to be made to the software to "read" the optical encoder instead of the mechanical one? The optical one will, of course, have an extra pin for the external 5V power supply (something that the mechanical encoder didn't need). Neither have a built-in switch.
I don't need any of the code or anything like that. I am wondering, however, if the same code used to "read" the 25LB11-Q will work with the EM14A0D-C24-L032N as well, or if it will require changes (if so, what types of changes)?
The diagrams look identical:
Mechanical:
Optical:
Thanks,
Matt
I have not had the opportunity to use rotary encoders in the past for my designs, so I am very fuzzy about the differences in types, and how they're handled by software (assuming a uC is used). One design I'm currently looking at uses the Grayhill 25LB11-Q mechanical rotary encoder (Datasheet ). I have the software for reading from this device using a microcontroller, and it works very well. However, being mechanical these encoders are generally only good for about 100k rotations (according to the DS) before they start to fail. The device in question requires constant manipulation of the knobs, so the mechanical ones really don't last very long. I am looking for different options, and thus I have begun to look at optical encoders instead. One that I have considered is the Bourns EM14A0D-C24-L032N (Datasheet: https://www.bourns.com/data/global/pdfs/em14.pdf). I am wondering what changes (if any) will need to be made to the software to "read" the optical encoder instead of the mechanical one? The optical one will, of course, have an extra pin for the external 5V power supply (something that the mechanical encoder didn't need). Neither have a built-in switch.
I don't need any of the code or anything like that. I am wondering, however, if the same code used to "read" the 25LB11-Q will work with the EM14A0D-C24-L032N as well, or if it will require changes (if so, what types of changes)?
The diagrams look identical:
Mechanical:
Optical:
Thanks,
Matt
Last edited: