Jump to content

rotary encoder replacement?


Recommended Posts

Posted

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

Posted

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

Posted

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

Ryan

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...