> A few years ago this would have required an IMU that cost more than this entire build.

Are you sure about this? MEMS IMUs have been popular and cheap for ~10-15 years.