EDIT: An engineering acquaintance of mine suggested buying an accelerometer from sparkfun.com, but that requires some assembly