I have an AVR device inside of a rotating car wheel that needs to detect when it's in top position (biggest distance from the ground) at up to 400rpm (ideally up to 1200rpm). I can not use tacho, IR, or any other type of sensor that needs fixed or external parts out of my AVR device. So, it came to my mind that some 1-axis gyro chip could be used for this. Is this a good idea? Do you know some cheap one that could be easily connected to AVR? I googled around but found only some helicopter gyros for direct servo control, and that's not what I need.