I work on a project which is supposed to use 3 standard EC11 rotary encoders. I tried couple available libraries however encoders skip the steps or don't recognize rotation properly.
What is the best way to automate and simplify rot. encoding so there is no issues as above?
Is there maybe external circuit translating multiple encoders or some tricky wiring that works best?
Thanks
Problems with rotary encoder
-
- Posts: 9759
- Joined: Thu Nov 26, 2015 4:08 am
Re: Problems with rotary encoder
The ESP32 has a pulse counter, which can be configured to do up/down counting in the way you'd expect when using a rotary encoder.
Re: Problems with rotary encoder
Looks like a very good api ! I will try it
Great thanks!
Great thanks!
Re: Problems with rotary encoder
Just a small update - tested pcnt example from idf and it works amazingly well with normal EC11 encoder even without changing the parameters in the example. It is very convenient tool and saves a lot lot of coding work )
It has built in thresholds, direction and even events triggered at certain counter values!
It has built in thresholds, direction and even events triggered at certain counter values!
-
- Posts: 1
- Joined: Wed Jun 06, 2018 8:05 am
Re: Problems with rotary encoder
Hi,
Here there is a project that can solve your problem: https://hackaday.io/project/27611-i2c-encoder
Here there is a project that can solve your problem: https://hackaday.io/project/27611-i2c-encoder
-
- Posts: 2
- Joined: Sat Dec 15, 2018 10:31 am
Re: Problems with rotary encoder
Hi! Where did you find this example?Deouss wrote: ↑Wed May 30, 2018 1:59 amJust a small update - tested pcnt example from idf and it works amazingly well with normal EC11 encoder even without changing the parameters in the example. It is very convenient tool and saves a lot lot of coding work )
It has built in thresholds, direction and even events triggered at certain counter values!
Who is online
Users browsing this forum: No registered users and 149 guests