Hello guys I am trying to count the number of the steps of a stepper motor with an encoder (Avago heds).
I found an Arduino sketch to count that steps and display them on the console and I found online the scheme to connect that encoder to Arduino.
The problem is that the encoder returns as output only 0, even if I rotate manually the motor. I also tried to measure the voltage of the encoder with a voltmeter but the voltage does not change even if I rotate the motor.
That is the Arduino Sketch
Here some picture's of Arduino-encoder connections
P.S. The motor works because I tried it before
Thank you for help