Forum Rule: Always post complete source code & details to reproduce any issue!

Search:

Type: Posts; User: PaulS

Search: Search took 0.00 seconds.

  1. Replies
    15
    Views
    690

    Your code above did not work for me. I had to add...

    Your code above did not work for me. I had to add delay(10) to the loop.
    But your code can be simpler. Just divide the myEnc.read() by 4. And then check for the difference being positive or...
  2. Replies
    15
    Views
    690

    Replacing the Teensy 3.2 by a Teensy 4.1 and...

    Replacing the Teensy 3.2 by a Teensy 4.1 and running your exact code gave the same flawless results as in my post #9.

    Paul
  3. Replies
    15
    Views
    690

    If the serial monitor shows correct counting of...

    If the serial monitor shows correct counting of the encoder, than the encoder is fine. I see 4 counts per detent of the rotary encoder.
    Is it possible for you to make a photo that shows your wiring...
  4. Replies
    15
    Views
    690

    Made a quick setup using a Teensy 3.2 [don't have...

    Made a quick setup using a Teensy 3.2 [don't have a Teensy 3.5] and ran your code.
    Here is the setup:

    28832

    Set USB type to "Serial+MIDI". Could not get it to fail...both serial monitor and...
  5. Replies
    15
    Views
    690

    Is it possible to post your complete code so that...

    Is it possible to post your complete code so that we can reproduce the issue? [or, preferably, the smallest code that shows the error].

    Paul
  6. Replies
    15
    Views
    690

    Yes, no problem. Better not use 5V as not all...

    Yes, no problem. Better not use 5V as not all Teensy's are 5V tolerant.

    But for those simple rotary encoders, you hook them up differently. No need to use 3V3 or 5V.

    28810

    Connect encoder...
  7. Replies
    15
    Views
    690

    Electrically, this absolute endless encoder...

    Electrically, this absolute endless encoder [datasheet] can be connected to a Teensy 3.5. Just use pinMode(pin, INPUT_PULLUP) for pins P1-P8 and then digitalRead each pin.
    However, be aware that...
Results 1 to 7 of 7