I made a Magic 8 Ball to make all my important decisions for me by attaching MPU 9DOF and OLED C clicks to a BeagleBoard.org PocketBeagle.
Simple article for BeagleBone and Sparkfun MM8452 accelerometer. Python code is used.