I have a 10000 rpm 37D Pololu motor and I’m trying to read the RPM with encoder outputs. I keep getting an RPM of about 6000 and I was hoping someone might be able to help me debug this issue. My code is attached. Thanks so much!
Also my PID control isn’t really working – it keeps printing PWM output values of 0 so if anyone has any ideas for that too, I’d really appreciate it.
sketch_nov10a.ino (3.0 KB)