Inspired in part by a recent discussion with some fellow makers about getting the iPhone to talk to stuff, I built a sample iPhone app using PhoneGap that lets you tell an Arduino to take a given pin high or low. It’s pretty basic: in the iPhone app, you type in the IP address and pin number, and click an ON/OFF button (the button has no clue about the current state of the pin yet). You could probably adapt this to work with the Arduino using other network modules, like the MatchPort.
- The Arduino needs an Ethernet Shield, and needs to be connected to an Ethernet LAN. There’s a sketch you need to install to get it to work.
- The iPhone needs to be on a Wi-Fi network (must be on the same subnet as the Ethernet LAN), and you’ll need to be a registered iPhone developer to compile and install this on your own phone.
I’ve posted the source here, and I think everything is explained in the README. Because it’s based on PhoneGap, you could just double-click on index.html and test it in Safari or some other WebKit browser.