Sensor simulator is a java standalone application that simulates sensor data and transmits them to the Android emulator. You can try out a web preview version of the Sensor simulator online.
Currently, Sensor simulator sensors supports the following functions:
The SensorSimulator throws the same exceptions as a real sensor would. To try this out:
The Sensor Simulator allows a lot of customization. Scroll down the settings pane to see all settings.
Choose the supported Sensors, that is those sensors that are reported to be available in the emulator. Do this before you connect the emulator to the Sensor simulator.
Sensors have to be enabled by the application. You should not need to touch these check boxes, except for testing purposes.
Sensor update rate:
'Update rates' lets you specify a list of possible update rates that is reported to the Android emulator. 'Default rate' is the rate to which a sensor is reset upon unsetting the rate from an application. 'Current rate' is the current update rate as set by the application. 'Average
This sets the internal update rate of the Sensor simulator. 'Update sensors' sets the duration between internal updates. External updates are controlled by the 'Update rates' settings above. 'Refresh after' determines after how many queries by the emulator the update rates given below are calculated and averaged over. If sensors are enabled and read out through the emulator, the actual read-out rates are displayed here. 'Sensor update' shows the actual internal update rate.
Lets you specify the physical behavior of the accelerometer. 'Gravity constant' is the earth's gravity constant. Accelerometer limit limits the values returned independently for the x-, y-, and z-components. 'Pixels per meter' is used to calculate between screen distance and real word distance in units pixel per meter (p/m). The accelerometer is physically modeled through the deviation of a test mass on a spring. Its spring constant to mass ratio k/m is given in screen units pixel per seconds squared (p/s^2), and its damping constant is given in pixels per second. 'Show acceleration' displays the current acceleration in the simulated device.
You can set the standard gravity to a different value in units of g=9.8 m/s^2.
Set the magnetic field in units of nano Tesla. You can obtain the values for your current location from the National Geophysical Data Center.
Set the temperature in centigrade Celsius.
Set a random component that is added to the data to simulate inaccurate sensors.
Real sensor bridge:
This feature will let you connect a real hardware sensor to the Sensor simulator to control applications in the emulator. In the current version it only displays the sensor data on a Thinkpad computer, if the sensor data are written to a special file.
The wii-mote extension by Dale Thatcher lets you connect a wii-mote to the sensor simulator.