Electronic – Rotary encoder to 2 buttons

buttonencoderrotarysurface-mount

Please excuse me if this question is a very obvious one, I have searched on here but my electronics knowledge is very very basic.

Here's what I'm trying to do, I have taken an old Android phone apart, which has 2 surface mount buttons (Volume Up/Volume Down). I am trying to integrate this phone into a different case so it can act as a head unit for a car, and what I'd like to do is wire an incremental rotary encoder to these 2 buttons, so when I turn it clockwise, the volume up button gets 'pressed' and viceversa.

I'm a bit lost when it comes to rotary encoders, I have read up on gray code and all that but I'll admit I'm still very lost.

Best Answer

This simulates nicely in LTspice:

enter image description here

and you'll need the following links to get to the files you'll need to run the sim. Download all of the files into the same folder and then start LTspice by left-clicking on the .asc file.

https://www.dropbox.com/s/bubgfvl8ewj5v9g/Quadrature%20decoder.asc?dl=0 https://www.dropbox.com/s/lonoh1d3bucnf1j/74hc04.asy?dl=0 https://www.dropbox.com/s/i9tsv0cjzoof21j/74HC.lib?dl=0 https://www.dropbox.com/s/9h28abp72zhlynj/74hc00.asy?dl=0 https://www.dropbox.com/s/42dmlx4enjzu1op/74hc74.asy?dl=0

Related Topic