Microcontroller

Discussion in 'General Electronics Chat' started by sam_1988, Jun 17, 2011.

  1. sam_1988

    Thread Starter New Member

    Jun 17, 2011
    2
    0
    Hey i am looking to build a quadrature encoder and i was wondering if i could use a microcontroller to create the outputs or do i need a separate input?
    Also if you can what would be the best microcontroller to use?
     
  2. beenthere

    Retired Moderator

    Apr 20, 2004
    15,815
    282
    A quadrature encoder is usually an electromechanical device - http://en.wikipedia.org/wiki/Rotary_encoder

    Perhaps you mean to use the microcontroller to input the signals?

    With no knowledge of the end use, it's about impossible to suggest a device to use.
     
  3. SgtWookie

    Expert

    Jul 17, 2007
    22,182
    1,728
    Microchip posted a Technical Bulletin for using a PIC10F2xx uC as a quadrature encoder simulator.
    Link: http://ww1.microchip.com/downloads/en/devicedoc/91091A.pdf
    Source code is available here: http://projects.mestcs.com/idcplg-IdcService=SS_GET_PAGE&nodeId=2121&fragment6_NextRow=326.htm

    Here's a quadrature decoder using flipflops and a few gates: http://www.fpga4fun.com/QuadratureDecoder.html

    Here's a simple quadrature encoder circuit using phototransistors and Schmitt triggers:
    http://keeganmann.wordpress.com/2011/01/02/quadrature-encoder-circuit/
    You could use a 4093 quad NAND Schmitt trigger for that portion of the circuit.

    You could probably build a quadrature encoder simulator using some D-type flip flops with a clock input.
     
  4. ErnieM

    AAC Fanatic!

    Apr 24, 2011
    7,395
    1,607
    A separate input for each output is always a requirement, but only in professional plumbing applications.

    :D

    (try posting again, as your post needs more sense: your post makes none.)
     
  5. nickelflipper

    Active Member

    Jun 2, 2010
    280
    35
    Microchip has a few devices that have QEI modules for processing the velocity and counts from the encoder, such as the PIC18fxx31 devices. See Microchip MAPS.
     
  6. sam_1988

    Thread Starter New Member

    Jun 17, 2011
    2
    0
    Thanks for all your input guys i will have a look and see if i can get a working model! I will post my results! Thanks again!
     
Loading...