How does a rotary encoder works in esp?

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
Cino2424
Normal user
Posts: 17
Joined: 30 Sep 2018, 16:35

How does a rotary encoder works in esp?

#1 Post by Cino2424 » 16 Oct 2018, 00:34

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

User avatar
grovkillen
Core team member
Posts: 3621
Joined: 19 Jan 2017, 12:56
Location: Hudiksvall, Sweden
Contact:

Re: How does a rotary encoder works in esp?

#2 Post by grovkillen » 16 Oct 2018, 06:55

ESP Easy Flasher [flash tool and wifi setup at flash time]
ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you :idea: :idea: :idea:

Cino2424
Normal user
Posts: 17
Joined: 30 Sep 2018, 16:35

Re: How does a rotary encoder works in esp?

#3 Post by Cino2424 » 16 Oct 2018, 07:05

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.

Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot] and 44 guests