Alright, I'll try and keep this short and sweet. I'm in the process of building a kegbot, and I plan on using an iDevice as the frontend for the user interaction. I also want the iDevice to talk to the Arduino via serial communication. I have spent a considerable amount of time researching the topic, and it seems doable.
So for I have jailbroken the iPhone (5.1.1), installed ssh, terminal, and minicom. I found a good tutorial describing some of the steps here. I then soldered a custom iDevice 30 pin dock connector. Now I am at the point where I want to load a simple sketch on the Arduino, and have it output something simple to see if the iPhone can read the data going across the serial connection using terminal with minicom on the iPhone to read a simple "Hello World" message being broadcasted/transmitted from the Arduino serial TX port. I know a simple sketch would do the trick, I have never written a sketch before so I am little behind the curb on that. Thanks for reading.
Note that you'll have to match up the baud rate on the two devices.
thanks for the example i loaded the asciitable example on the arduino already :-l I am presently trying to figure out how to get 5VDC to 3.3VDC using a 1K ohm resistor (fun).
and also thanks for reminding me about the baud rate, i changed it to 9600 on the iphone, hopefully flow control won't make a difference.
I am presently trying to figure out how to get 5VDC to 3.3VDC using a 1K ohm resistor (fun).
You can't do it using 1 resistor. You need two, in the proper ratio.
Given the fact that the Arduino has both a 5V and 3.3V regulator on board, I can't see why you want to do this, though.
I am under the impression that the Serial TX sends a signal of 5V which I can confirm with my multimeter. I read that sending a 5V signal to the iphone's serial TX RX pins could potential be bad for the iphone so a signal of 3.3V was necessary.