ok so i have been away from my project for a little while.
here is more info.
the encoders are
and i am using the #include <Encoder.h> library
i don’t think it is an issue with the library tho as i have 2 encoders working totally fine. yet the same code doesn’t function similarly for encoders 3 and 4
i also don’t think it is a mechanical issue with some of the encoders as i have tried swapping them round and the issue doesn’t change. if it was a mechanical issue then i would expect it to move with the swap.
therefore i believe it must be some kind of issue with the board or the pins i have chosen to use.
i can copy the code but due to the nature of the project i am working on there is quite a lot of it and a fairly large chunk doesn’t relate to the encoders. i also don’t think is this as the same code is working totally fine with half my encoders.
Make a small program that duplicates your fault.
Add that code to your message.
markup before your code example and
markup after your code.
Describe what you expected the code to to.
Describe what the code actually did.
post a simple schematic of how you connected the encoders to your Arduino.
It would be better to link to the Encoder’s DataSheet instead of a link to the sales item.
Provide a link to the actual library you are using. <Encoder.h> is not one of the libraries included with the Arduino environment. I have no idea which one it is.
My diagnosis is that one of two things are happening, The <Encoder.h> requires specific pin usage to support the encoders, or that the encoders are returning a very bouncy signal.
Without an example of your code, and the results on your hardware, it is almost impossible to guess correctly.