Simple Turn and Bank Indicator, just for fun, educational purposes, and in-flight testing.
Excellent for teaching physics and aeronautical sciences students about the behavior of this instrument used in aircrafts.
This an example for the MIT App Inventor framework. And the source code is available at:
http://ai2.appinventor.mit.edu/
and search for: Boole Turn
DO NOT USE THIS APPLICATION WHILE PILOTING AN AIRCRAFT OR DRIVING ANY AUTOMOBILE
WARNING:
That uses Accelerometer and Gyroscope Sensor of your mobile.
If it does not operate correctly, it may be because your phone does not have all the required sensors.