I am new to Arduino and using motors/encoders in general. For a project I am doing (similar to the Balanduino http://www.balanduino.net/) I am using the 30:1 Metal Gearmotor with Encoder https://www.pololu.com/product/1443 as part of a self-balancing robot with PID control. I am driving the motors with the Dual VNH2SP30 Motor Driver Carrier MD03A https://www.pololu.com/product/708. The code for the Balanduino can be found at https://github.com/TKJElectronics/Balanduino. Whenever I try to print any values associated with the encoder, I only get 0’s. I have checked to make sure that the encoders are receiving 5v in. I have been able to drive the motors, but I don’t really know what to do with the encoders. Any help would be appreciated, as would a simple tutorial for using the encoders to get output.
Thanks!