Skip to main content
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
Improved formatting.
Source Link
sa_leinad
  • 3.2k
  • 2
  • 24
  • 53

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'sArduino 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 arduino1 arduino2 arduino3

schema1 schema2

P.S. The motor works because I tried it before

Thank you for help

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's 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 arduino1 arduino2 arduino3

schema1 schema2

P.S. The motor works because I tried it before

Thank you for help

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 arduino1 arduino2 arduino3

schema1 schema2

P.S. The motor works because I tried it before

Thank you for help

Source Link

Problem in reading data from encoder with arduino

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's 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 arduino1 arduino2 arduino3

schema1 schema2

P.S. The motor works because I tried it before

Thank you for help