The SensorSimulator lets you simulate sensor data from accerelometer, compass, and orientation sensors. The data can be used in an Android application, to steer them live through the sensors.
More information can be found on the documentation page
Try it out right here...