iPhone on TV

Grok time ~3 minutes

Sorry for the funky formatting; this was imported from Blogger and I haven’t had a chance to fix it yet.

My Devices Clockwise from top-left: 2x iPod touches, Blackberry, Samsung flip-phone, Garmin GPS watch, classic iPod, iPhone 4S, HTC 8525, HP iPaq

A (very) long-term NerdGoal mine is to use an iPhone as a robot’s brain. As smartphones increase in sophistication and decrease in cost, more and more of these will pile up in people’s drawers – not to mention landfills.

I’d love to see a standardized platform that re-purposes smartphones in a way useful to the average consumer. I’m no engineer so I’m sure I’ll be eclipsed at some point but my first idea was a Roomba-style home cleaning bot. Rather than paying hundreds of dollars for a Roomba, which includes money to pay for the programmers who designed the AI and a lot of internal circuitry to handle it. I paid $300 for my Braava and $40 for my Arduino. I’ve got multiple devices just lying around that could both be offering me a lot of bang for the buck I’ve already spent.

old iPhone

The screen is smaller than I like but I miss phones when they had a reasonable thickness. So, why not plug my first-generation iPhone into a robot to give a brain and eyes Romo notwithstanding as it requires a newer device. The 30-pin interface for the old iWhatevers allows for serial communication as well as video out. As I said, I’m no engineer, but as I learn more about some of these things, I hope to eventually work out an useful way to do this.

First, I knew I had to jailbreak this thing. JailbreakMe is perfect. Except, of course, my home wifi is N. I run it in N-only mode to keep me from accidentally attaching an old 802.11b device and slowing everything else down. The original iPhone only supports 802.11b/g so I set up a wifi repeater Netgear WN300RP in my office and have it spit out a separate guest network at b/g speeds.

radio

I wanted video out. I did not want to buy a cable or a 30-pin connector. Well, my very old and rickety radio has an iPhone dock and was ripe for the picking. It’s been sitting in the “garage sale” box for a couple months so why not see what this thing’s made of?

radio innards

…electronics apparently.

radio closeup

Here’s the other side of the mainboard. The switch on the left is the AM/FM toggle. The other is the source/mode selector. The two biggest cables in the back go to the LCD inputs and the front-most red/black lines, right, are for LCD power. My main interest is that front-center 4x1 (MTA 156?) plug. That goes back to the 30-pin connector.

radio closeup

Not a bad little LCD… With cables!

radio closeup

With that epoxy, I’ll never figure out what they used to actually interface with the iPhone or how.

radio closeup

This is the connector for the dock. Notice the solder points on both sides. The 5-pin cable goes to the video out board (see below). The other four go to the mainboard, the plug I pointed out above. Part of the problem in following the pins is that there’s only 28 pins on this connector, not 30. The pin numbers in parentheses correspond to the left column in this pinout.

A/V Cable (5-pin)
1. ground (pin 1)
2. video out (pin 8)
3. grounded on A/V board
4. not connected on A/V board
5. grounded on A/V board

Data Cable (4-pin)
1. grounded on mainboard (pin 11?)
2. 
3. 
4. 


I can’t seem to count these out in any way that makes all these pins line up with the pinout considering those four in the middle of the 3028-pin connector: one connection, two shorted, one connection. Since grounding pin 11 would send audio through pins 3 and 4, which would align with the A/V cable, I’m wondering if data cable pin 1 is pin 11.



This tiny brown board on the left has a composite video out, line out and line in. The five pin cable from here goes to the 30-pin connector above. 

The red line appears to be +4V from the mainboard.

The other cable has four lines labeled R, W, G and Y.



<div class="separator" style="clear: both; text-align: center;"></div>

Using TvOut2, I get video out with only the 5-pin cable plugged into the 30-pin connector and an RCA cable from the A/V board to the TV.