<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
<a class="moz-txt-link-freetext" href="http://ly.rsdelivers.com/product/alps/stec12e08/rotary-encoder-12mm-24pulse-vert-switch/6234237.aspx">http://ly.rsdelivers.com/product/alps/stec12e08/rotary-encoder-12mm-24pulse-vert-switch/6234237.aspx</a><br>
    <br>
    it's an ALPS <span class="wikiword">STEC12E08, and I used a PCB I
      had lying around from the midibox project:<br>
      <a class="moz-txt-link-freetext" href="http://www.ucapps.de/mbhp_din.html">http://www.ucapps.de/mbhp_din.html</a><br>
      <br>
      Still could use some help ;-)<br>
      <br>
      Cheers,<br>
      ToAd<br>
      <br>
    </span>On 21/04/2012 11:29, Paul Maddox wrote:
    <blockquote
cite="mid:CADm3=9Rusm9zxCPOsNybNV3sDrvu9WDYXkf5u12bJWLv2zbJjA@mail.gmail.com"
      type="cite">
      <div class="gmail_extra">sounds like you've got ones with indents
        and that they have no connection at the indent (i.e. they float
        high).</div>
      <div class="gmail_extra">Got a schematic/part number?</div>
      <div class="gmail_extra">
        <br>
      </div>
      <div class="gmail_extra">Paul<br>
        <br>
        <div class="gmail_quote">On Sat, Apr 21, 2012 at 8:41 AM, Jay
          Vaughan <span dir="ltr"><<a moz-do-not-send="true"
              href="mailto:jayv@synth.net" target="_blank">jayv@synth.net</a>></span>
          wrote:<br>
          <blockquote class="gmail_quote" style="margin:0 0 0
            .8ex;border-left:1px #ccc solid;padding-left:1ex">> The
            values I should see are like this:<br>
            > 2 bits per encoder<br>
            > Sequence CW rotation:<br>
            > 00 10 11 01<br>
            > Sequence CCW rotation:<br>
            > 00 01 11 10<br>
            > But between each step I see 11, as this is the value
            when the encoder is not turned.<br>
            > Now, how does one cope with this behaviour?<br>
            > Should I only check for the 10 -> 01 or 01 ->10
            transitions? Am I not loosing too much accuracy this way? (I
            can test this pretty easy I think, but I thought I ask
            first.)<br>
            <br>
            I don't think you're going to lose too much accuracy by
            converting the 4 bytes to a word, and using it as a plain
            old number.  This number, if you get it, tells you what
            direction the knob is turned.  Don't put too much pressure
            on bit-ops, just convert to a word and use that word in your
            switch statement ..<br>
            <br>
            <br>
            ;<br>
            --<br>
            Jay Vaughan<br>
            <br>
            <br>
            <br>
            <br>
            _______________________________________________<br>
            music-bar mailing list<br>
            <a moz-do-not-send="true"
              href="mailto:music-bar@lists.music-bar.org">music-bar@lists.music-bar.org</a><br>
            <a moz-do-not-send="true"
              href="http://lists.music-bar.org/cgi-bin/mailman/listinfo/music-bar"
              target="_blank">http://lists.music-bar.org/cgi-bin/mailman/listinfo/music-bar</a><br>
          </blockquote>
        </div>
        <br>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
music-bar mailing list
<a class="moz-txt-link-abbreviated" href="mailto:music-bar@lists.music-bar.org">music-bar@lists.music-bar.org</a>
<a class="moz-txt-link-freetext" href="http://lists.music-bar.org/cgi-bin/mailman/listinfo/music-bar">http://lists.music-bar.org/cgi-bin/mailman/listinfo/music-bar</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>