Go Down

Topic: Rotary potentiometer with steps/positions (Read 3 times) previous topic - next topic

retrolefty

Actually I think a standard pot with or without detents could make a fine menu selection input device. Just wire the pot ends to ground and +5vdc and after reading a pot wiper value do a right shift of say 6 bits, so the resulting pot values would be 16 distinct values depending on pot position, that could be used to select 16 different menu items in the coding.

Lefty

Papa G


Actually I think a standard pot with or without detents could make a fine menu selection input device. Just wire the pot ends to ground and +5vdc and after reading a pot wiper value do a right shift of say 6 bits, so the resulting pot values would be 16 distinct values depending on pot position, that could be used to select 16 different menu items in the coding.

Lefty

That would certainly work. You would a have a constant position of the knob for each menu item which may or may not be desirable. It might make the software slightly more complicated for when you wanted to add/delete menu pages. Another way for sure.

fungus


Actually I think a standard pot with or without detents could make a fine menu selection input device. Just wire the pot ends to ground and +5vdc and after reading a pot wiper value do a right shift of say 6 bits, so the resulting pot values would be 16 distinct values depending on pot position, that could be used to select 16 different menu items in the coding.


Nope. It works if there's only one menu (with exactly 16 items in it!) but it falls apart for anything more.

eg. Suppose you select a value in a sub-menu ... the pot will be in the wrong position when you return to the main menu (and it was probably in the wrong position when you went into the sub menu, too...)

Rotary encoders don't have any of those problems.
No, I don't answer questions sent in private messages (but I do accept thank-you notes...)

retrolefty



Actually I think a standard pot with or without detents could make a fine menu selection input device. Just wire the pot ends to ground and +5vdc and after reading a pot wiper value do a right shift of say 6 bits, so the resulting pot values would be 16 distinct values depending on pot position, that could be used to select 16 different menu items in the coding.


Nope. It works if there's only one menu (with exactly 16 items in it!) but it falls apart for anything more.

eg. Suppose you select a value in a sub-menu ... the pot will be in the wrong position when you return to the main menu (and it was probably in the wrong position when you went into the sub menu, too...)

Rotary encoders don't have any of those problems.



You just lack imagination. There is never a 'wrong' position to be in until you do something to tell the software to accept that selection. ;)

I feel it could be a simple reliable menu pointing device if the sketch is designed correctly knowing before hand the maximum items for the menus and submenus before deciding how many shifts to make on the analog input readings. It's just software. Most menu selection interfaces require a second input, usually a button press to say yes that is the selection I want.  ;)

Lefty

fungus


You just lack imagination. There is never a 'wrong' position to be in


Yes there is.

Suppose you have a menu. The fourth option is 'color'

You select 'color' and a sub menu appears. You select 'red', it's the the first click from the left on the pot. The LED turns red as a result and you get sent back to the main menu.

The main menu is now out of sync. If 'color' is still selected then the pot is in the wrong position. If 'color' isn't selected then the menu isn't very intuitive to use (the currently selected item will depend on the color you selected in the submenu).

Now suppose you go back to the 'color' submenu. It should have 'red' highlighted (the current LED color). Problem is, 'color' is the fourth option in the main menu so the pot isn't in the right place to do that.

It doesn't work.
No, I don't answer questions sent in private messages (but I do accept thank-you notes...)

Go Up