Comments (8)
For anybody who is finding this issue while searching for an explanation on how to connect a bare encoder.
This should be the way it's done:
(Original Picture from: https://www.robotics.org.za/EC11-VS-15)
from ai-esp32-rotary-encoder.
Thanks for posting this.
Based on random references I found I wound up doing things a bit different and things seem to work fine. Specifically:
C -> 3.3v (not ground)
No pull up (or down) resistors for A/B
Do the pull up/down resistors on A/B add some robustness?
from ai-esp32-rotary-encoder.
Thanks for posting this.
Based on random references I found I wound up doing things a bit different and things seem to work fine. Specifically:
C -> 3.3v (not ground)
No pull up (or down) resistors for A/BDo the pull up/down resistors on A/B add some robustness?
To be honest, I probably don't know more than you do - I also just figured it out by googling. 😅 However, on the rotary encoder modules that you can buy pre-assembled, they seem to use resistors for A/B, so I figured they will probably have a reason to do so. 😄
from ai-esp32-rotary-encoder.
I found another example that includes RC circuit to assist with debouncing:
https://www.electroschematics.com/rotary-encoder-arduino/
Direct link to schematic:
This one does not include wiring of the switch but other examples cover that.
from ai-esp32-rotary-encoder.
Answered by community
from ai-esp32-rotary-encoder.
Just to avoid mistakes: the schematic posted by om-hb on 12 Jun does not work with that library.
I just have tested this wiring and can confirm that it does not work.
The contacts a and b must go to 3V Vcc and the (optional) resistors must be pull-down.
For the push switch its just the other logic the contact must go to GND and the input have pull up to Vcc.
from ai-esp32-rotary-encoder.
Just to avoid mistakes: the schematic posted by om-hb on 12 Jun does not work with that library.
Do you mean this library (ai-esp32-rotary-encoder) ?
I just have tested this wiring and can confirm that it does not work.
The contacts a and b must go to 3V Vcc and the (optional) resistors must be pull-down.
Did you mean to say say the contact C must go to VCC?
from ai-esp32-rotary-encoder.
Just to avoid mistakes: the schematic posted by om-hb on 12 Jun does not work with that library.
I just have tested this wiring and can confirm that it does not work.The contacts a and b must go to 3V Vcc and the (optional) resistors must be pull-down.
For the push switch its just the other logic the contact must go to GND and the input have pull up to Vcc.
I just disassemble my project to double-check: Maybe I'm missing something, I'm confused or there are differences between the encoders, but for me that schematic seems to work just fine!
from ai-esp32-rotary-encoder.
Related Issues (20)
- Compilation errors with examples HOT 4
- `encoderVccPin` declared as `uint32_t` so `encoderVccPin >= 0` is always true HOT 2
- push-button works on release not press HOT 2
- ESP32-S3: Warning Invalid Pin Selected HOT 1
- compile error on esp32 HOT 1
- 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
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.