Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

6
  • You need to tell us more about: what currently happens with your program, what you would expect instead. Commented May 31, 2015 at 6:19
  • it does not give any output in serial monitor @jfpoilpret Commented May 31, 2015 at 6:24
  • Can you clarify your wiring: which Arduino pin did you wire your encoder to? Commented May 31, 2015 at 6:33
  • i attached encoder`s channel A to digital Pin 2 on arduino which is interrupt 0. Commented May 31, 2015 at 6:34
  • 1
    Also, you could chnage the init order in your setup() to first Serial.begin(...), that would give time for serial init before triggering encoder interrupts. Commented May 31, 2015 at 6:56