read the manual on PulseIn, and you will need some kind of Encoder on the wheels.