Page 1 of 1

How does a rotary encoder works in esp?

Posted: 16 Oct 2018, 00:34
by Cino2424
So is it right that it is a counter? It starts at 0 and when i turn rights it add 1 and at left subtract 1.

What does pulse per cycle mean? 1 for 360 degrees? So at 4 ppc every 90 degrees 1 pulse?

And last question. The min max. when I set 0-3 than i can have 4 pulses. But what happens when I reach 3 pulses? Will the counter stop at 3 pulses untill I turn left?

I want for each Pulse a seperate event. I would like to build a menu for lcd2004. Each Pulse should be a page to scroll.
Like If counter=0 then event page0
counter=1 then event page1

Re: How does a rotary encoder works in esp?

Posted: 16 Oct 2018, 06:55
by grovkillen

Re: How does a rotary encoder works in esp?

Posted: 16 Oct 2018, 07:05
by Cino2424
I understand the min max value. But not the count. How much will increase the turn at 360°?
But for now I cant look at my ESP. Must wait till I´m at home.