AccSim iPhone App
Accelerometer-Simulator (AccSim) is an iPhone app I made available on the Apple App Store for free. It is no longer available there through me, as I have discontinued paying for my iOS developer account. There are other apps based on the same source code (search for things like "accelerometer data").
***If you previously downloaded the app, but no longer have it on your device, the only way to get it back is to re-sync it from a backup on a computer you had synced your device to. Besides that, you'll need to use one of the alternate (paid) apps or compile the original version on Google Code linked below.***
I originally released 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 as well.
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