Reversing wiring on a rotary encoder?

Discussion in 'The Projects Forum' started by Johnnz, Feb 17, 2010.

  1. Johnnz

    Thread Starter Active Member

    Dec 31, 2008
    55
    0
    Hi all,
    Just wondering if it is possible to reverse the output of a rotary encoder via the wiring (as opposed to physically turning the unit 180 degrees)? I have one from a scroll wheel in a mouse which has 3 pins and it's metal body is connected in the original circuit board to the central pin. I tried swapping the two outermost connections in the row of three main pins but then it didn't work at all:confused:
     
  2. russ_hensel

    Well-Known Member

    Jan 11, 2009
    818
    47
    What are you connecting the encoder to. If a uc it is easy to reverse the count in software.
     
  3. Johnnz

    Thread Starter Active Member

    Dec 31, 2008
    55
    0
    Computer running XP
     
  4. thatoneguy

    AAC Fanatic!

    Feb 19, 2009
    6,357
    718
    Labeling the pins A B C:

    Swapping A and C didn't work
    put back to original order.
    Swap A and B
    if no change, put back to original and swap B and C
    If no change, put back to original order, and flip the encoder over. :)
     
  5. russ_hensel

    Well-Known Member

    Jan 11, 2009
    818
    47
    Then just change in the XP software. By the way I do not know how to connect an encoder to XP without converting into some protocol like rs232 serial, or perhaps using the lpt port. What is your interface?
     
  6. JDT

    Well-Known Member

    Feb 12, 2009
    658
    85
    Just swap the A and B connections.
     
  7. BMorse

    Senior Member

    Sep 26, 2009
    2,675
    234

    The OP has one of those LED mice for his PC, and he is trying to swap the thumbwheel function for scrolling, basically it sounds like he wants the screen to scroll down when he scrolls up on the wheel, etc.... why? I do not know....
     
  8. eblc1388

    Senior Member

    Nov 28, 2008
    1,542
    102
    The middle(central) pin might not be the common pin of the 3-pin scroll wheel switch.

    I just pull one of my mouses apart and found out it isn't. The common pin is actually off to one side, namely common, phaseA and phaseB.

    The common pin should be the positive side of the +5V supply as in most mouses I have seen.
     
Loading...