Giter VIP home page Giter VIP logo

Comments (5)

madhephaestus avatar madhephaestus commented on August 22, 2024

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.

dpharris avatar dpharris commented on August 22, 2024

from esp32encoder.

madhephaestus avatar madhephaestus commented on August 22, 2024
  1. 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.

  2. 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.

dpharris avatar dpharris commented on August 22, 2024

from esp32encoder.

madhephaestus avatar madhephaestus commented on August 22, 2024

ok, done!

from esp32encoder.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.