Pages: [1] 2 3   Go Down
Author Topic: Rotary potentiometer with steps/positions  (Read 2482 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 36
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Ok, this is probably not the "correct" way of describing it so please bear with me. smiley

I'm looking for a rotary potentiometer that has pre-defined "steps/positions". I'd like to use it to change pages on a LCD-screen, each position of the potentiometer would be one page. The "feel" would be a lot better if I could match each page with a defined position on the knob.

It would be good if it had the aprox same dimensions as this one since I have a  number of knobs for it.
Pot: http://www.ebay.com/itm/221132272705?ssPageName=STRK:MEWNX:IT&_trksid=p3984.m1497.l2648
Knob: http://www.ebay.com/itm/321038173376?ssPageName=STRK:MEWNX:IT&_trksid=p3984.m1497.l2648
Logged

Offline Offline
Edison Member
*
Karma: 116
Posts: 2205
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Alps has some but they tend to be quite expensive.

A cheaper solution would be to use a rotary switch to control a digital pot.
Logged

Valencia, Spain
Offline Offline
Faraday Member
**
Karma: 119
Posts: 4591
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

What you're after is a called "rotary encoder"

http://www.ebay.com/sch/i.html?_nkw=12mm+rotary+encoder

There's libraries, etc. for them on the Arduino web site.
« Last Edit: January 31, 2013, 09:56:09 am by fungus » Logged

No, I don't answer questions sent in private messages...

Manchester (England England)
Offline Offline
Brattain Member
*****
Karma: 514
Posts: 31543
Solder is electric glue
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
What you're after is a called "rotary encoder"
Yes but you can get them with or without "dents" these dents are the click that you feel when you turn it. You can also get different number of dents per revolution.
Logged

Dallas, TX
Offline Offline
Sr. Member
****
Karma: 10
Posts: 318
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
What you're after is a called "rotary encoder"
Yes but you can get them with or without "dents" these dents are the click that you feel when you turn it. You can also get different number of dents per revolution.
The technical name for which is "detents", although "dents" is sure to get you a laugh.

The term potentiometer is incorrect in this situation, as a potentiometer is a type of variable resistor. As noted by others, a rotary encoder is what you are looking for.

Logged

Manchester (England England)
Offline Offline
Brattain Member
*****
Karma: 514
Posts: 31543
Solder is electric glue
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
The technical name for which is "detents", although "dents" is sure to get you a laugh.
Yep dyslexia and an iPad are not friends  smiley-wink
Logged

Left Coast, CA (USA)
Offline Offline
Brattain Member
*****
Karma: 331
Posts: 16548
Measurement changes behavior
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Well there are/were pots that had mechanical detents, used a lot is older stereo systems to give it a higher tech feel I guess.

Lefty
Logged

Valencia, Spain
Offline Offline
Faraday Member
**
Karma: 119
Posts: 4591
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
The technical name for which is "detents", although "dents" is sure to get you a laugh.
Yep dyslexia and an iPad are not friends  smiley-wink

We might believe that excuse if you'd only typed it once...  smiley-small

Logged

No, I don't answer questions sent in private messages...

Dallas, TX
Offline Offline
Sr. Member
****
Karma: 10
Posts: 318
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Well there are/were pots that had mechanical detents, used a lot is older stereo systems to give it a higher tech feel I guess.

Lefty
Agreed, but one wouldn't normally use one of those to select pages on an LCD like OP wants.

A pot with detents sounds like a really bad idea if the pot gets dirty at one of the detents. Probably why they use encoders for that application nowadays.
Logged

Dallas, TX
Offline Offline
Sr. Member
****
Karma: 10
Posts: 318
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
The technical name for which is "detents", although "dents" is sure to get you a laugh.
Yep dyslexia and an iPad are not friends  smiley-wink

I can sympathize. I get some pretty funny autocorrects from my iDevices.  smiley
Logged

Left Coast, CA (USA)
Offline Offline
Brattain Member
*****
Karma: 331
Posts: 16548
Measurement changes behavior
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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
Logged

Dallas, TX
Offline Offline
Sr. Member
****
Karma: 10
Posts: 318
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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.
Logged

Valencia, Spain
Offline Offline
Faraday Member
**
Karma: 119
Posts: 4591
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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.
Logged

No, I don't answer questions sent in private messages...

Left Coast, CA (USA)
Offline Offline
Brattain Member
*****
Karma: 331
Posts: 16548
Measurement changes behavior
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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. smiley-wink

 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.  smiley-wink

Lefty
Logged

Valencia, Spain
Offline Offline
Faraday Member
**
Karma: 119
Posts: 4591
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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.
Logged

No, I don't answer questions sent in private messages...

Pages: [1] 2 3   Go Up
Jump to: