Quote:
Originally Posted by MBernstein
Our optical encoder is only returning 0.
We would like an example source code for getting the number of rotations.
Also the LEDs inside do not light up...should they be?
We have it connected to the Digital I/O of the digital side car.
|
Have you wired it correctly? There should be a +5, A, G, and B on the encoder.
PWM 1 - black to G, red to +5, white to A
PWM 2 - black to G, red to +5, white to B
The second PWM cable doesn't really need the ground and power connected. Since you didn't provide enough information, are you sure you connected both the A and B channels and selected the right ones in LabView? (are you using LabView or C++?)