I have a query regarding determining the rpm of the dc motor using magnetic encoders. I am using a VHN5019 DC motor driver, 156:1 Metal Gearmotor 20Dx44L mm 6V, 93 RPM and 170 mA with no load, 110 oz-in (7.9 kg-cm) and 2.9 A at stall and Magnetic Encoder Pair Kit for 20D mm Metal Gearmotors, 20 CPR, 2.7-18V.
I am enclosing the photograph of the connections. The motor runs fine.
Although the motor runs fine, the rpm value doesn’t equate with the no-load rpm of 93 or closer. I am enclosing the serial monitor snapshot and the code.
Any help/thoughts would be greatly appreciated!
readencoderedit.ino (2.9 KB)