Shop OBEX P1 Docs P2 Docs Learn Events
Quadrature Encoder — Parallax Forums

Quadrature Encoder

overthehilloverthehill Posts: 6
edited 2007-06-07 17:12 in Propeller 1
Ref· Using Jeff Martins Code for the quadrature encoder with the Demo Board.
I have an encoder A,B sig connected to P0,P1--No luck so far--·Does anybody have working code so I can see the incoming pulses on a tv monitor.

Comments

  • Graham StablerGraham Stabler Posts: 2,507
    edited 2007-06-06 22:17
    I don't have an encoder to try this on in front of me but it should work. If the update seems too slow/fast change the waitcnt.

    Graham
  • overthehilloverthehill Posts: 6
    edited 2007-06-06 22:30
    Thanks Graham I will give it a go.
    Peter.
  • Chris SavageChris Savage Parallax Engineering Posts: 14,406
    edited 2007-06-07 15:42
    Do you have the pull-up/pull-down resistors on the A/B inputs?

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Chris Savage
    Parallax Tech Support
  • overthehilloverthehill Posts: 6
    edited 2007-06-07 17:12
    The encoder is now working, thanks to Grahams code, I am still trying to understand the spin - its all a learning curve and I think its going to take a little longer to grasp than I first thought.

    But thanks anyway Chris for your interest.
    Although its all new to me , looking around the forum I can see there are so many committed people willing to help.
    What a result!

    Peter.
Sign In or Register to comment.