Jasper Ruben built his cats a ‘hamster wheel’ for exercise and just for general cat-happiness-quotient. He’s connected up some sensors to it and these feed data back to the Raspberry Pi which calculates speed and distance travelled. A gallery of how he built it is available as is a gallery of when he added the sensors and Pi and here is a Reddit thread if you’d like to ask questions or leave comments.