I remember working on a similar, though slightly less destructive, app. I had a first or second generation iPod touch and it's back was curved so that you could spin it on a flat surface. I collected lots of accelerometer data and wrote the algorithm to figure out how long and fast the device had been spinning. Unfortunately, the next generation of devices came out with a flat back so I shelved the idea.