AccSim iPhone App
Accelerometer-Simulator (AccSim) is an iPhone app available on the App Store for free.
I am releasing the app on the App Store for free because it is something I wanted to have available when I was playing around with the iPhone SDK and Simulator before I decided to pay the $99 iPhone developer fee which allows you to download apps to your device. I figured someone else out there might also appreciate this being available. There are other apps on the store based on this code, but they aren't free ;-)
Connect AccSim to the iPhone Simulator
First, you will need to add two files to your XCode project (from the Google Code page):
Follow the rest of the instructions on the Google Code page.
Connect AccSim to any other computer program
Here is an example in python of how to receive the packets from the AccSim app:
The instructions on the Google Code page will get you started. I haven't actually tried using the python interface. It would be interesting to control other things with the iPhone, though!
Jakub Blažej has written a program for Windows to capture the data coming from AccSim. I have not been able to test it, but for anyone that is interested: here it is.
OS X Program
Alex Pawlowski wrote an OS X program that simulates a device's accelerometer updates (double simulation FTW!). He has made the code available here: https://github.com/pawlowskialex/AccelerometerTest