Hack a single MCU analog input to support push button rotary encoder.
To make the experience fit your profile, pick a username and tell us what interests you.
We found and based on your interests.
Create an account to leave a comment. Already have an account? Log In.
That's a pretty good recommendation. Using that technique would also let me sense rotation while the button is pushed.
I love this technique. A also never hooked up a rotary encoder to my scope and now I'm going to try with and without your circuit. Thanks for the inspiration!
One thing that I should have done is determine if the encoder contacts are break before/after make. Seems to be after based on the contact bounce levels but only a scope trace is authoritative.
I thought of your hack for reading multiple buttons when I saw this funny enough lol
Thanks :) I'm definitely adding this to my TODO's, or as most hackers say "to my bag of tools"
Become a member to follow this project and never miss any updates
From the picture, looks like you have a LCD. What I usually do is to share the LCD data lines with buttons. The buttons have series resistors on them so that they don't short the data lines in the output mode. I set a busy flag in my LCD code during access, so that the timer interrupt code polling buttons would skip the scanning.