-
Notifications
You must be signed in to change notification settings - Fork 20
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
Rotary encoder isnt registering position #37
Comments
Your configuration is correct - I checked it in hardware with encoder connected to 0-1 pins. It can be checked with a couple of wires by manually simulating encoder signal: without encoder connected, connect pin 0 to GND, connect pin 1 to GND, disconnect pin 0, disconnect pin 1. This sequence should register as encoder step. Can you move encoder wires phase A/B to pins 2-3 for testing? (it will require disconnecting button pins PL and DATA1 and disabling 74HC165 buttons) |
I tried it with pins 2 and 3 with the encoder but it still didnt work and then thought of trying with a new encoder instead cause the 2 and 3 pins were working for the hc165 buttons but the configuration is still not working with the new encoder im really confused why all this is not working...even with the new encoder |
yes the encoder does give output when simulated manually i tried it still doesnt work (the vcc resistor connection) im confused why everything else works but this doesnt should i try again with another new encoder? (i already tried it with 2 encoders i bought) |
|
and im sending this link https://dientuvietduc.com/product/encoder-yt06-600b-op-2m-600-xung-hai-k%C3%AAnh-ab-5-24v/ both the encoders are the same model |
i also had researched what you found and had previously tried it with 9v but it didnt work but then you said it can b done till 12v i got soo excited as your research was correct about the encoders working on a higher voltage i connected a 12v adapter i had lying around with the diagram you had given And it started working with the test sketch.. i mean it was giving output but once i uploaded the afbbwheel sketch it stopped working and the gui wheel was rotating by itself towards the right side (without my input) basically |
Okay so it does respond and works i just connected the A and B to the 12v (not ground) of the adapter with a 10k resistor but idk when turning to left it takes more rotations but while turining to right it takes less rotations edit: okay this might be a problem with the encoder let me try it with a new one |
So assuming the as5600 was faulty and i bought this rotary encoder 600 ppr but the thing also does not work so im assuming its a fault in the sketch can you please rectify it (i have made correct connections according to the sketch and it still does not work)
rotary issue.zip
sorry for the trouble im a student and was doing this as a summer project and bought everything out of my strict budget
The text was updated successfully, but these errors were encountered: