I’m new at this, so sorry if this is a stupid question but I can’t get the encoder to print the right RPM. I’m using a Pololu Dual VNH5019 Motor Shield with a single 4.4:1 12V 37D Motor with an encoder.
The RPM only prints a nonzero value at the beginning and then never again. My code and a picture of the wiring is attached.
microgravity.ino (2.0 KB)
Any help/thoughts would be greatly appreciated!