Measuring "real" speed of the motor

i want to measure the real speed of my motor. the encoder gives me the summary of rotations, but how can i measure the rpm of my motor? is there a readymade function for this, or how could i write one for getting the actual amount of rotations in a certain amount of time?


We do not have a ready-made function in the Pololu AVR Library to measure RPM. However, you could create one. To get the RPM, you could write a function that measures the encoder counts in a given amount of time. For a start, see the wheel_encoders1 program in the Pololu AVR Library user’s guide.