Comments (5)
I'm not sure what you're suggesting here. The pull downs ensure that you do not get open-collector noise and ensure when no encoder is connected, or if the encoder breaks, then the library will not register any ticks.
To clarify, Pull up or pull down refers to a mechanism in the chip that connects a 10k resistor from the pin to ground (in the case of pull down) or VCC (in the case of pull up).
Common usually refers to ground, not V+.
from esp32encoder.
from esp32encoder.
-
I avoid the responsibility for hookup instructions because there is no "right" way to do it. That information exists, and should stay, in the data sheet for any specific encoder. This library is expecting Drive high, drive low, low impedance digital signals (normal microcontroller digital input stuff), and how to hook your specific device up to that is up to you and your devices datasheet.
-
To my point in 1), that is not how the encoders i use work. They are photointerrupters, not switches. I have never know an encoder where you can safely reverse power and ground. Do you have a link to the datasheet for yours so i can investigate?
from esp32encoder.
from esp32encoder.
ok, done!
from esp32encoder.
Related Issues (20)
- Trouble with RPM calculation HOT 2
- cannot even compile example for regular esp32 dev board HOT 7
- Encoder limit? ESP32S3 Bootloop Issue "Too Many Encoders!" HOT 4
- wrong counting with fast encoder HOT 2
- Liberary doesn't work when generating a PWM signal (when pins 15 and 16 split the PWM and encoder) HOT 6
- Support for MCP23017 GPIO expander
- compatibility with ESP32 core V3 HOT 2
- Not compiling for ESP32-S2 HOT 3
- Compile error 0.10.0 and 0.10.1 HOT 6
- Encoder Library with PCNT as Frequency Counter
- Function working and direction HOT 6
- Encoder not working in IO2, IO4. HOT 3
- Compile fails with soc.h not found HOT 5
- Not working with tasks HOT 1
- Compiling error HOT 12
- Attach Single edge problem HOT 1
- ESP32-C3 compile fail
- setCount after setup() HOT 2
- Encoder get difference from last read HOT 1
- Definition of NONE confliccts with other libraries
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 esp32encoder.