Forum Rule: Always post complete source code & details to reproduce any issue!
Results 1 to 3 of 3

Thread: Encoder library - works fine on Uno R3, not on Due

  1. #1
    Junior Member
    Join Date
    Aug 2014
    Posts
    6

    Encoder library - works fine on Uno R3, not on Due

    I'm trying to use the Encoder library v1.2, running the "Basic" example sketch compiled with Arduino IDE v1.5.7 on a Due with encoder attached to pins (5,6) plus ground. Regardless of which direction I rotate the encoder it only counts up -- never down. Running the same sketch on my Uno R3 board but using pins (2,3) (I want to use interrupts,) and it works fine -- counts up and down as I expect.

    The encoder I am using: https://www.sparkfun.com/products/10596

    I also tried the "NoInterrupts" example sketch and it also only counts up on the Due and works fine on the Uno.

    Any ideas? Thanks for your help.

  2. #2
    Senior Member
    Join Date
    Nov 2012
    Posts
    1,215
    You'd be a lot better off asking about this on the Due forum which is here.

    Pete

  3. #3
    Junior Member
    Join Date
    Aug 2014
    Posts
    6
    Okay thanks -- will do.

Posting Permissions

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