Shop OBEX P1 Docs P2 Docs Learn Events
Rotary Encoder waveform? — Parallax Forums

Rotary Encoder waveform?

Richard905Richard905 Posts: 4
edited 2012-12-23 19:51 in Propeller 1
Hi, I am very new to Parallax, using an encoder for stepper motor control, i.e. let stepper motor synchronize encoder rev.
my questions are:

1. Rotary Encoder SUNX ORE-38-1000C This encoder produces sine waves or square waves?

2. Assume above encoder produces sine waves, how to use a comparator to convert these into square waves? Comparator IC / circuit diagram example?

3. Could I use LS7184 to convert into square waves?

4.how many microseconds pulse width is long enough for Parallax P8X32A QuickStart to detect the pulse?

Thanks

Comments

  • T ChapT Chap Posts: 4,223
    edited 2012-12-23 18:51
    Hi Richard. Do you have the enoder with you? A volt meter? If so, put the meter on one of the outputs and see what happens when you spin it slowly.
  • Richard905Richard905 Posts: 4
    edited 2012-12-23 19:08
    Hi T Chap:
    I just put the meter on A output of encoder, the meter displays between 0.00, -0.01V, -0.02V, is it normal? (This encoder worked well with Arduino)
    (Wondering: it should show 0v-5V signal?)

    Thanks
  • T ChapT Chap Posts: 4,223
    edited 2012-12-23 19:18
    The encoders I am familiar with swing from 0 to your supply voltage. Are you testing with the outputs disconnected from anything else?
  • kwinnkwinn Posts: 8,697
    edited 2012-12-23 19:18
    Richard905 wrote: »
    Hi T Chap:
    I just put the meter on A output of encoder, the meter displays between 0.00, -0.01V, -0.02V, is it normal? (This encoder worked well with Arduino)
    (Wondering: it should show 0v-5V signal?)

    Thanks

    Did the arduino input pin have a pullup resistor on it?

    Most encoders are digital (no comparator needed), but may have an open collector output so a pullup resistor is needed.
  • Duane DegnDuane Degn Posts: 10,588
    edited 2012-12-23 19:51
    According to the datasheet, yours is an open-collector unit.

    Since these encoders are good up to 100KHz the pulses shouldn't be shorter than 10us long. Plenty of time for a Propeller to monitor it.
Sign In or Register to comment.