upon running the "test encoders" program, I realized that my J2 encoder value does not change from 1000, it merely flickers between 1000 and 999 when I move the motor. All motors and all other encoders work fine. I spliced the encoder cable near the encoder and found that when the teensy is plugged in, the voltage difference between the red and black encoders near the encoder is 4.8V. I then decided to directly wire the blue encoder cable to pin 16 on the teensy, and the brown encoder cable to pin 17. However, the encoder is still not working. Is there any other checks that I can do or should I conclude that the encoder is broken?
Thanks,
Yifei
the encoder was broken and after getting a replacement, things are working again. I think I applied too much pressure to it while assembling the robot