I'm having trouble running 2 motors, one with quadrature encoders, and the other with a potentiometer on the same Roboclaw 2x7A.
Motors:
- Pololu 37Dx73L gearmotor
- Actuonix linear actuator with potentiometer
Wiring matches examples given in the documentation: Quadrature encoder is hooked up to ENC1A and ENC1B, linear actuator potentiometer is hooked up with resistor such wiper pin is hooked up to ENC2A.
With this default setup, in Ion Motion Studio I can read the quadrature encoder just fine, but the analog input doesn't change. It typically starts off at 0 or 2047. When running the motor with quadrature encoder, the encoder 2 value will sometimes jump. I have double-checked with a multimeter that the analog voltage output from the potentiometer is reading as expected.
Even more confusing, if I check the option to swap the encoder, I now can only read the analog input, and the encoder 1 value for the quadrature encoder no longer works.
I have reproduced this behavior on multiple Roboclaw 2x7A boards and multiple sets of Pololu and Actuonix motors with the same results. Any suggestions on how else to debug?