Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wiring Schematic #7

Open
Nick1787 opened this issue Nov 23, 2015 · 4 comments
Open

Wiring Schematic #7

Nick1787 opened this issue Nov 23, 2015 · 4 comments

Comments

@Nick1787
Copy link

Not really a code issue I apologize, but can you provide a basic wiring schematic? I have your code up and running but it doesnt seem to be working properly in getting values of the encoder. Im wondering if I have it wired incorrectly.

I realize it can be used on any pin, Im wondering if I have the wrong pins on the encoder going to ground or something.

Thanks

@mrmonteith
Copy link

I agree. At least say in the example which piece goes to which pin. I mean the example shows A0, A1, and A2. But which is wired to Clk, DT, + or what? Thanks

@malleYay
Copy link

Hey, the ClickEncoder.h says

ClickEncoder(uint8_t A, uint8_t B, uint8_t BTN = -1, uint8_t stepsPerNotch = 1, bool active = LOW);

so the call

encoder = new ClickEncoder(A1, A0, A2);

With a 5 (3 wire encoder, 2 wire button) wire encoder you should wire as follows:
Encoder A = A1
Encoder B = A0
Encoder Common = GND
Encoder Button_1 = A2
Encoder Button_2 = GND

@Nick1787
Copy link
Author

Awesome thanks!

  • Nick

On Mon, Feb 22, 2016 at 12:06 PM, malleYay [email protected] wrote:

Hey, the ClickEncoder.h says

ClickEncoder(uint8_t A, uint8_t B, uint8_t BTN = -1,
uint8_t stepsPerNotch = 1, bool active = LOW);

so the call

encoder = new ClickEncoder(A1, A0, A2);

With a 5 (3 wire encoder, 2 wire button) wire encoder you should wire as
follows:
Encoder A = A1
Encoder B = A0
Encoder Common = GND
Encoder Button_1 = A2
Encoder Button_2 = GND


Reply to this email directly or view it on GitHub
#7 (comment).

@pille
Copy link

pille commented Jan 22, 2018

also solves #6

@krukhlis krukhlis mentioned this issue Oct 26, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants