Re: how to read ky40 mechanical encoder ?
Is your encoder like this ?
http://www.ebay.com/itm/400964660325...%3AMEBIDX%3AIT
These encoders are (supposedly) destroyed by pullup resistors.
Or is your encoder just a noisey old mechanical switch type?
Comparators are supposed to be good buffers for mech switches.
OK I found my answer, Mech. as stated in your post 
You are needing to "debounce" these.
Last edited by Archangel; - 11th October 2015 at 21:21.
If you do not believe in MAGIC, Consider how currency has value simply by printing it, and is then traded for real assets.
.
Gold is the money of kings, silver is the money of gentlemen, barter is the money of peasants - but debt is the money of slaves
.
There simply is no "Happy Spam" If you do it you will disappear from this forum.
Bookmarks