Strela91
Newbie level 1
Hi, I'm trying to build a DC motor regulation circuit, however I'm having some trouble with getting my rotary encoder to work properly. I tested the encoder in a pretty simple manner: I hooked it up to my Arduino board, and monitored one of the encoder channels on my PC. The output of the channel was in a form of oscillating pulses while the encoder was completely still; if my understanding of encoders is correct, while the encoder is still, the output should be either 0 or 1, when read as a digital value.
I have programmaticaly enabled pull-up resistors (built-in the Arduino board) for the encoder channel pins, and have also grounded the shield wire from the encoder.
I have provided a picture of the encoder channel response.
My question is, is there something basic about encoders I have overlooked (for example, wiring), and the oscillating encoder channels would be a symptom thereof? That would be quite possible as I am quite new to the practical side of controlling systems. I am happy to provide additional information if anyone is interested in trying to help me out.
I have programmaticaly enabled pull-up resistors (built-in the Arduino board) for the encoder channel pins, and have also grounded the shield wire from the encoder.
I have provided a picture of the encoder channel response.
My question is, is there something basic about encoders I have overlooked (for example, wiring), and the oscillating encoder channels would be a symptom thereof? That would be quite possible as I am quite new to the practical side of controlling systems. I am happy to provide additional information if anyone is interested in trying to help me out.