Convert rotary encoder movement to up/down output

Discussion in 'The Projects Forum' started by superduper, Dec 5, 2010.

  1. superduper

    Thread Starter Active Member

    Dec 5, 2010
    53
    0
    Hi all. Does anyone know of a simple decoder IC that will output CW or CCW pulses from a rotary encoder? I have a project that currently has up/down momentary buttons and I would like to convert that interface to a rotary control.

    Thanks.
     
  2. superduper

    Thread Starter Active Member

    Dec 5, 2010
    53
    0
    Hmm. Interesting. But seems like this might be more chip than I'm looking for. No sample implementation circuits were provided either....
     
  3. thatoneguy

    AAC Fanatic!

    Feb 19, 2009
    6,357
    720
    I found This Site with google, it shows how to use a rotary encoder output with a PIC.

    How well versed are you in electronics/digital/microcontrollers?
     
  4. hgmjr

    Moderator

    Jan 28, 2005
    9,030
    215
    I don't know if this is what you are looking for but you can use a d-type flip/flop to generate a signal that goes high when the shaft encoder is turning counter-clockwise and low when the shaft encoder is turning clockwise or visa-versa. Of course this assumes that your shaft-encoder outputs phase quadrature signals. All you need to do is connect one of the phases to the data input and the other phase to the clock of the d-type flip/flop.

    hgmjr
     
  5. hgmjr

    Moderator

    Jan 28, 2005
    9,030
    215
    The ebook has an example of such a d-type flip/flop hook up at the end of this link.

    hgmjr
     
    Last edited: Dec 5, 2010
  6. jennyshan

    New Member

    Jul 18, 2014
    1
    0
    ya u are right. use two d flip flops, such that one channel(A) is given as input and the other channel as clock for first flip flop and viceversa for the second. In that case u can have two separate counters for cw and ccw pulses.
     
  7. nsaspook

    AAC Fanatic!

    Aug 27, 2009
    3,638
    3,765
    [​IMG]
     
    crutschow likes this.
  8. KeepItSimpleStupid

    Well-Known Member

    Mar 4, 2014
    2,071
    360
  9. Sensacell

    Senior Member

    Jun 19, 2012
    1,515
    405
  10. KeepItSimpleStupid

    Well-Known Member

    Mar 4, 2014
    2,071
    360
    Looks like same stuff different day
     
Loading...