Programming Optical Encoders
We ordered some Digi-Key optical encoders for use on our robot's stacking mechanism (for automatic positions). However, we have run into a snag in programming these little buggers. We have hooked the power up to the +5V for Potentiometers on the Analog Inputs, and the ground wire to this port as well. Then, we hooked Inputs A and B onto digital inputs 15 and 16, respectively. Our problem is that all the readings we get on a debug are zeros. Any ideas? Thanks.
|