rotary encoder replacement?

Hi!

If I wired 2 push button switches like the one on the schematics of the rotary encoders, can it replace the encoder? like up and down buttons?

or maybe by using up/down decade counters?

Thanks much,

Ryan

Not really. Encs work like that:

Right direction (e.g. up counting):

bit 1: 0 1 1 0 0 …

bit 2: 0 0 1 1 0 …

and the other way (down):

bit 1: 0 0 1 1 0 …

bit 2: 0 1 1 0 0 …

That means you would have to push those two buttons exactly that way to go up/down. This also means that if you releace a button in a certain position you count down by one again (so you can only go up/down by 4 without holding the buttons).

Perhaps you can lget there from the MIOS side: E.g. look at the SID Firmware. The Encoder to select the Menu items can also be two push buttons, you just have to set that bit in the main.asm

Thanks a lot! i’ll see what i can do about it when i finish my box.

Ryan