Comments (10)
Fixed. (Was a bit complex due to the logic)
from ai-esp32-rotary-encoder.
from ai-esp32-rotary-encoder.
Sure, happy to provide output from the examples. The only thing I changed in the examples was PIN B to 19 and Encoder Steps to 2 for my circuit and hardware:
#define ROTARY_ENCODER_B_PIN 19
#define ROTARY_ENCODER_STEPS 2
Details:
- Hardware: ESP32_Devkitc_V4
- Encoders: https://www.aliexpress.com/item/3256802939670003.html
Here's the output of the "Esp32RotaryEncoderBasics.ino" sketch. Everything working perfectly, Notice I get only one change in value per click of the encoder:
Now here's the output of "Multi-select.ino" on the same exact hardware and encoder setup. I've enabled "Show Timestamp" in the Arduino output and put a red box around those with the same timestamp where I get more than one change when turning the encoder one click:
Multiple Changes per Encoder Click (In Red Squares)
Conclusion:
When the "Circling" option is enabled there are often multiple changes per click of the encoder.
from ai-esp32-rotary-encoder.
from ai-esp32-rotary-encoder.
If I define steps as 4 then the encoder only changes value every other click
from ai-esp32-rotary-encoder.
from ai-esp32-rotary-encoder.
I thought acceleration might be causing the issue, but when I disable it with setAcceleration(0) still the same issue.
from ai-esp32-rotary-encoder.
from ai-esp32-rotary-encoder.
sure no problem. I looked for an obvious bug in the code but couldn't find it but I hope you can! Thanks again for the library.
from ai-esp32-rotary-encoder.
from ai-esp32-rotary-encoder.
Related Issues (20)
- Invalid Pin Selected HOT 5
- Code for Long press-hold HOT 1
- Arduino Nano ESP32 encoder pins HOT 1
- Setting the encoder value outside of the Setup.
- areEncoderPinsPulldownforEsp32=false does not enable PULLUP on esp32 HOT 1
- ESP8266 Compile Error HOT 1
- Arduino IDE 2.2 Standard example Esp32RotaryEncoderBasics.ino fails to compile with the board TTGO T1.
- Arduino IDE 2.2 Standard example Esp32RotaryEncoderBasics.ino fails to compile with the board TTGO T1. HOT 2
- setCount() after setup() HOT 1
- Loss steps HOT 1
- setValue for AiEsp32RotaryEncoderNumberSelector is not working anymore HOT 3
- Compile error HOT 4
- Error when using with WT32-ETH01 Board HOT 10
- Using multiple "encoder number selectors" with one encoder HOT 1
- rotaryEncoder.setEncoderValue() offset by one when value is negative HOT 1
- click extension HOT 4
- rotaryEncoder.setEncoderValue(maxValue); sets to 0 when circleValues set to true
- New release HOT 3
- EEPROM goes max value at esp32 wroom
- The function isEncoderButtonDown() returns an incorrect value when areEncoderPinsPulldown_forEsp32=false HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ai-esp32-rotary-encoder.