Reading incremental encoder


Results 1 to 8 of 8

Threaded View

  1. #7


    Did you find this post helpful? Yes | No

    Default Re: Reading incremental encoder

    The most efficient method for an encoder that I've encountered is a "current state/next state" combination of 4 bits that you can use for a lookup function. The result of the lookup defines the action, where a result of 1 could be "increment", 2 could be "decrement", 0 could be "do nothing/not valid". Super slick, minimal code space. Don't forget to allow for debouncing.
    Last edited by picster; - 4th May 2016 at 14:50. Reason: additional note

Similar Threads

  1. Reading incremental encoder interupt
    By RFsolution in forum mel PIC BASIC Pro
    Replies: 8
    Last Post: - 1st March 2017, 12:50
  2. Using an incremental rotary encoder?
    By keithv in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 12th January 2016, 22:23
  3. Encoder velocity....
    By thasatelliteguy in forum mel PIC BASIC Pro
    Replies: 11
    Last Post: - 21st April 2014, 00:33
  4. Rentron Encoder
    By lerameur in forum mel PIC BASIC Pro
    Replies: 14
    Last Post: - 27th June 2013, 07:28
  5. encoder wowes
    By wallaby in forum mel PIC BASIC Pro
    Replies: 16
    Last Post: - 6th December 2005, 21:56

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