Page 2 of 2 FirstFirst 12
Results 11 to 16 of 16

Thread: Which Rotary Switch Spins Forever?

  1. #11
    Maximum Bitrate JimmyFitz's Avatar
    Join Date
    Nov 2005
    Location
    Austin, Texas
    Posts
    735
    Quote Originally Posted by 2k1Toaster
    I have a very simple question. Will this rotary type switch be able to spin forever. Like basically, if you just spin the knob, will it ever catch on something. Something that I'll be able to spin indefinately such as for volume control or menu selection. I will be using this in a custom hardware project, but never used anything like this. Any help would be appreciated.

    Go for the rotary encoder like others are saying. The switch you asked about here is meant for settings that are not frequently changed. Even if it doesn't have stops, if you put a big knob on here and spin it you will probably wear it out in just a few weeks.
    ~Jimmy

  2. #12
    Fusion Brain Creator 2k1Toaster's Avatar
    Join Date
    Mar 2006
    Location
    Colorado, but Canadian!
    Posts
    10,045
    Quote Originally Posted by Wiredwrx
    I am sure there are some that do not, but MOST due.
    Well I've been pretty unlucky then! All of the ones that I saw at my local electronics store (they just pull parts from everything and sort it into a huge warehouse) spun like a potentiomenter. Can go from the top all the way around but it would stop back at the top. Then you would have to spin the other direction. So 360 degrees of freedom compared with infinate. I guess most of the ones I find online will be the kind I'm looking for.

    Quote Originally Posted by Wiredwrx
    The problem is gonna be, in your situation, that it is binary encoded. Do you plan on using a PIC or something similar to interperate the turns? I think you want something more like a rotary switch, like from a mouse wheel. Continuous, and just a bunch of "button" presses in essence when you turn the knob.
    I actually want it to be binary coded. I am going to be desinging a whole circuit. I don't yet have a PIC programmer (If anyone has a spare to sell Serial/USB/PCI make me an offer ) I will probably use one in the end though. I believe my university has them available for me to program a chip. I think....

    Quote Originally Posted by Wiredwrx
    And, by the way, the ipod, while it continues to spin, does not cycle through the menus. it stops at the top and bottom.
    Good to know! I've never really played around with them.

    Quote Originally Posted by JimmyFitz
    Go for the rotary encoder like others are saying. The switch you asked about here is meant for settings that are not frequently changed. Even if it doesn't have stops, if you put a big knob on here and spin it you will probably wear it out in just a few weeks.
    That's probably true. Like I said, just thinking at this point. Not really even sure of the final project yet! I just want to do this for fun. I know, I'm a geek.

    Quote Originally Posted by shotgunefx
    My opinion, if you want something to spin forever, I'd go with a rotary encoder with detents (little notches that catch it a little bit for some tactile feel and they won't rotate on their own), I'd also get one with the integrated pushbottons. I've got a bunch for my rgb lights, they're pretty easy to read.

    These are the ones I used.
    http://www.mouser.com/index.cfm?&han...*&N=0&crc=true
    Those look promising. I haven't read the datasheet yet, I'll do that later tonight. Since it says incremental rotary encoder, I guess it just spits out if it is incrementing or decrementing. I guess that because it says 15-20 positions, yet only 3 pins, so maximum 3bits of data, or 8 positions. So this is pretty good. It wouldn't tell me what position it is in, but only whether or not the knob has been rotated and in what direction. That is perfect. The pushbutton option is pretty nifty. Didn't really think of that. I wonder if they make cool ones with LED backlight so it illuminates a ring around the pushbutton? I'll look later.

    Also, shotgunefx, do you have any pics of those parts in use? Just kind of curious how they look with a knob on them and all.

    Thankyou everyone for your responses, and I hope it wasn't too dumb a question!
    Fusion Brain Version 6 Released!
    1.9in x 2.9in -- 47mm x 73mm
    30 Digital Outputs -- Directly drive a relay
    15 Analogue Inputs -- Read sensors like temperature, light, distance, acceleration, and more
    Buy now in the MP3Car.com Store

  3. #13
    Variable Bitrate
    Join Date
    Mar 2006
    Location
    San Diego, CA
    Posts
    335
    Dude, you need to hack one of these for those kinda knobs...



    Just kidding, but if you are using two knobs for navigation on a LCD, it would be a cool tablet....
    ~Puff

    View my worklog... I dare you... http://www.mp3car.com/vbulletin/worklogs/77267-2003-audi-a4-worklog-puffs-ride.html

    Carputer Progress [||------------------] 10%

  4. #14
    Fusion Brain Creator 2k1Toaster's Avatar
    Join Date
    Mar 2006
    Location
    Colorado, but Canadian!
    Posts
    10,045
    Quote Originally Posted by Puffanug
    Dude, you need to hack one of these for those kinda knobs...



    Just kidding, but if you are using two knobs for navigation on a LCD, it would be a cool tablet....
    Why didn't I think of that!!! j/k
    Well, the digital etch-a-sketches that can save pictures to flash and stuff, would have the right part. But I think they stopped making those.

    ================================================== =================
    And in case anyone else on this forum one day sees this thread then I will copy some info on rotary encoders here from ubasics.com. I thought they worked this way, but I like having confirmation.
    Quote Originally Posted by www.ubasics.com
    Generally there are two kind of rotary encoders:
    One that puts out absolute position, the other puts out relative position, or position change.

    The absolute position output will vary depending on the resolution and manufacturer. They may use a binary code (also look up references to 'grey code').

    On a 16 position absolute encoder, with four outputs, the outputs may look like this:

    OUT 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1
    OUT 2 0 0 1 1 0 0 1 1 0 0 1 1 0 0 1 1
    OUT 3 0 0 0 0 1 1 1 1 0 0 0 0 1 1 1 1
    OUT 4 0 0 0 0 0 0 0 0 1 1 1 1 1 1 1 1
    Position 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16

    The relative position encoder will either put out a sine wave on both wires, with the second being 90 degrees out of phase with the first, or it puts out a square wave on both wires, as follows (You'll need to set the following to fixed width font to see it):

    ___ ___ ___ ___ ___
    OUT 1 ___| |___| |___| |___| |___| |___
    ___ ___ ___ ___ ___ _
    OUT 2 _| |___| |___| |___| |___| |___|
    <--Clockwise Counter-clockwise-->

    This square wave is basically a representation of a sine wave, 90 degrees out of phase. It is easy to interface, if you take OUT 1 and define it as your direction. If OUT 1 is high when a pulse starts on OUT 2, then the rotary encoder is going clockwise. If OUT 1 is low when a pulse starts on OUT 2, then the encoder is going counter-clockwise. A sine wave output encoder is good if you want a higher resolution than you can get from a square wave encoder. It would require more hardware or software to interpret, though.
    Fusion Brain Version 6 Released!
    1.9in x 2.9in -- 47mm x 73mm
    30 Digital Outputs -- Directly drive a relay
    15 Analogue Inputs -- Read sensors like temperature, light, distance, acceleration, and more
    Buy now in the MP3Car.com Store

  5. #15
    Fusion Brain Creator 2k1Toaster's Avatar
    Join Date
    Mar 2006
    Location
    Colorado, but Canadian!
    Posts
    10,045
    For the ASCII pictures you need a fixed width font. They look good on the original site. Which btw is: http://www.ubasics.com/adam/electron...rotryenc.shtml
    Fusion Brain Version 6 Released!
    1.9in x 2.9in -- 47mm x 73mm
    30 Digital Outputs -- Directly drive a relay
    15 Analogue Inputs -- Read sensors like temperature, light, distance, acceleration, and more
    Buy now in the MP3Car.com Store

  6. #16
    Raw Wave shotgunefx's Avatar
    Join Date
    Apr 2005
    Location
    Boston, MA
    Posts
    1,800
    Quote Originally Posted by 2k1Toaster
    ...
    Those look promising. I haven't read the datasheet yet, I'll do that later tonight. Since it says incremental rotary encoder, I guess it just spits out if it is incrementing or decrementing. I guess that because it says 15-20 positions, yet only 3 pins, so maximum 3bits of data, or 8 positions. So this is pretty good. It wouldn't tell me what position it is in, but only whether or not the knob has been rotated and in what direction. That is perfect. The pushbutton option is pretty nifty. Didn't really think of that. I wonder if they make cool ones with LED backlight so it illuminates a ring around the pushbutton? I'll look later.

    Also, shotgunefx, do you have any pics of those parts in use? Just kind of curious how they look with a knob on them and all.

    Thankyou everyone for your responses, and I hope it wasn't too dumb a question!
    Actually it doesn't have any positions per se. Simply outputs a signal indicating direction that can be figured out with some simple bitwise operators.

    There is an article here with code for the Basic Stamp, trivial to rewrite it in assembler or PIC-Lite C.

    As far as a programmer, you can get a serial Olimex PIC-PG1 or PIC-PG2 for probably under 15 bucks shipped. I haven't looked into them lately, I'm sure there are some cheap usb ones around too.

    Don't have any pics handy and it's in one of many boxes right now (with half of my car ), just plain knobs I got at radio shack.

Page 2 of 2 FirstFirst 12

Similar Threads

  1. MMI style rotary encoder install - details
    By Tony G in forum Input Devices
    Replies: 59
    Last Post: 06-01-2008, 01:41 PM
  2. Capture GPS data at the flip of a switch
    By Mr. Inquisitive in forum GPS
    Replies: 4
    Last Post: 02-02-2005, 06:06 PM
  3. Savage Switch Botton Group Buy via UK's Iconstyling.com....
    By TheBigDog in forum General Hardware Discussion
    Replies: 3
    Last Post: 07-21-2004, 10:51 AM
  4. Need clairification on wiring on/off switch
    By syclone477 in forum Newbie
    Replies: 9
    Last Post: 03-23-2004, 04:59 PM
  5. Help With Extending Laptop Docking Station's Power Button
    By JeffesonM in forum General Hardware Discussion
    Replies: 10
    Last Post: 04-14-2003, 01:13 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •