PDA

View Full Version : ipod or Iphone to picbasic



robertg
- 13th August 2011, 05:11
Hi all,

Have been trying in vain to get a simple string to make a ipod play.
Here's a snipped of my code, it's sending out @ 9600 and using 8mhz crystal
SEROUT2 portb.6,16468,[255,85,3,2,0,1,250]

Gone to the extent of ripping apart my sony Ipod doc and hooking into that way with no luck, as I understand (seen a few different suggested on the net) but the basics as I understand to make it work are:
on the ipod connector:
13 rx
21 via 500K to ground
29&30 gnd


If someone could send a snippet of code and also how they connected it up would great help.

Thanks,

Rob.

mister_e
- 13th August 2011, 09:11
From what I see, you should use 19200 Baud.
Click Here (http://devdot.wikispaces.com/Iphone+Serial+Port+Tutorial) they provide a plethora of info + C# code example for your PC. Once you confirm it work on your PC (with a level translator), you do the PIC side.

When you post a question, ALWAYS tell the PIC in use.

robertg
- 14th August 2011, 10:42
sure, using a 16f677

Have progressed a little by sending at 9600,not inverted SEROUT2 portb.6,84,[255,85,3,2,0,1,250]
Catch is, can only do it after the leaving it plugged into the Sony Ipod docking station and then intercepting the RX cable and sending my own commands.

Using my own cabled wired as:

13 rx
21 via 500K to ground
29&30 gnd

Get no activity, in fact using a Iphone4 it displays a warning on the phone notifying of a incompatible Iphone accessory.
So little stumped at this point.

bogdan
- 14th August 2011, 18:05
Hi Robert,
I will like to play with the iPod Accessory Serial Protocol too.
Do you recomend this for start ?
5868
http://www.seeedstudio.com/depot/ipodext-assembled-version-breakout-for-ipod-p-148.html

robertg
- 14th August 2011, 20:55
Hi Bogdan,

Great starting point, I'll order one as well!
Have butchered a PCB from one of the many cheap junk radios with a Ipod dock. The pins and pitch of the connector make it challenging to work with and could also be the reason for m problems.
Longer term have ordered a couple of IPOD 17 wire extension cables, I'll cut the female connector off and wire the fly lead to my pcb.
Keep us posted on this thread, I'll do the same.

Rob.

Rob.