New approach to Rotary Encoder


Results 1 to 40 of 91

Threaded View

  1. #8
    Join Date
    Aug 2005
    Location
    Michigan, USA
    Posts
    224


    Did you find this post helpful? Yes | No

    Default Re: New approach to Rotary Encoder

    A question, please? With the following "while" statement, does the program wait there until both encoder pins are high? If so, then you're only detecting one of every four AB transitions when moving continually in one direction, correct?

    Code:
    while (portb.0=0 or portb.1=0):pause 10:wend
    Name:  Encoder AB States.png
Views: 14131
Size:  4.1 KB
    Last edited by Mike, K8LH; - 16th August 2011 at 02:55.

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts