Sunday, January 4, 2009

Complete charging circuit with line-out

Here is the complete circuit that should hopefully work. As I mentioned in earlier posts, it's the ~2.5v on the USB data pins that trigger the iphone to go into charge mode. The resistances are high because I don't want to waste power.

IPhone Dock (Part II)

I believe I have found the proper resistance to mimic a dock. I have used 66kohm from pin 21 (ACC) to pin 1 (GND) and the "This accessory is not made to work with the iphone" message does not come up when connecting the iphone to the line-out circuit. I will post what I believe to be the schematic for the IPhone dock, which is how I determined what the proper resistance should be. I think the majority if this circuit is a debounce switch for the line-out jack. This is done by essentially floating pin11 (serial gnd) until the jack is inserted into the plug (J4). R21, R23, and R4 are connected serially between VDD and GND when no device is connected to the line-out plug. Most of the voltage drops across R21 which means Q2 is "low". Once the device is plugged in, R21, R23 and R4 are disconnected from GND so there is no voltage drop across these resistors which means Q2 goes high (~3.14v in reality). Since the "black box" is probably two transistors, I think that Q2 "on" allows Q1 and Q3 to connect (emitter to collector), effectively grounding pin 11 (serial gnd). At the same time, this sudden change in voltage is seen as a trigger (edge) to the HFC4098B. I believe this causes Q(2)' to either pulse Q5 or to stay at VDD but it allows Q4 and Q6 to connect. When Q4 and Q6 connect, R18 and R12 are now in parallel for an equivalent resistance of 67.013k. The resistor R18 is what everyone sees when probing the dock but I believe that when power is applied to the monostable multivibrator, the resistance becomes the equivalent parallel value. I used an exact 66k series combination since that's as close as I cared to get and it is working for me.

Monday, December 29, 2008

IPhone Dock

I finally got a nice, new multimeter for Christmas (thanks bro!). To break her in I tore apart my Iphone dock to take some measurements of my own. One thing lead to another and I started creating a schematic of the small circuit board. It looks to be a three layer PCB with some test pads and some vias. There are only two active elements on the board. One is the HCF4098B Monostable Multivibrator from ST Micro and the other is illegible but the reference designator is "Q1" which means it's a transistor. Since it's in a six pin SOIC it's probably a dual. This is why everyone is getting a 12.5Mohm reading between pin 21 and pin 11, they are only connected through Q1 (rds off?). There is also a pin 7 on the iphone male connector that is undocumented but appears to just be an audio ground and is common with pin 2. I will try this on the line-out circuit to see if it brings up a message. Right now I need sleep...

[edit] Leaving pin 7 disconnected has no noticeable affect on line out.

Saturday, November 22, 2008

Digital Oscilloscope

I've been developing the hardware and software to make a digital oscilloscope. I would not mind having a standalone scope but they are pricey and it's a good learning experience. I should have been documenting my progress because I won't remember where I got stuck. Anyway, I am using a PIC16F690 on the PICKit2 as the processor. It has an ADC that I will use to convert the waveforms to binary. That binary, possibly scaled, will then be transmitted via the UART to a RS232 transceiver and on to the PC. The OS (windows) will then display the data and allow additional analysis. So far, I've managed to transmit the digital conversions from a potentiometer via rs232 and display the ASCII equivalent in telnet. On the PC side I'm using Microsoft Visual Studio C++ 2008 Express Edition with the Windows Forms (winforms) API to render my windows. For the graphing, I am using OpenGL. All the software is working and I've written some test serial port applications so I know that part of the code works. All that is left is to tie it all together and refine it. Here are some screenshots. The available COM ports are automatically detected for you to select. The draw button creates the OpenGL window. The 'hdiv' and 'vdiv' equally subdivide the window. The width button obviously changes the width of the line. Everything is done relative to the number of pixels. I haven't put much thought into how the user will be able to interact with the data but that will be the fun part. I envision being able to freeze the screen and switch to the frequency domain on any selected range. The next step for me is to put the RS232 transceiver and DSUB9 connector onto a PBA with access via 4 pin connector (VDD, GND, Rx and Tx). This way i will be able to use it with any other device with a UART.

Wednesday, November 19, 2008

LOD on iphone

The resistor on pin 21 to common does not work. That value has to be for something because I don't get the "this accessory is not made for the iphone" message. However, if I float pin 21, the audio starts coming out of the line out but then the accessory message pops up. Why is Apple whoring the directions and why are people not sharing the information after apparently paying for it? I'm going to email Apple and ask them what the values are. OK, done. We'll see what happens with that. Back to keyword searching :(

edit: I stumbled across an article about iphone accessory development. It seems there is some Apple standard or protocol that developers must adhere to get the "iphone compatible" cert. Until I can get one of these products to see how it's done, I'm not going to mess with the iphone anymore.

Monday, November 17, 2008

Adding LOD circuit

Going to try this tomorrow to see if I took care of the 'accessory' message.

Saturday, August 2, 2008

Introduction

I am starting this blog to document the development of hobby projects that i try to work on in my spare time, i.e., not working. I do this to further my education while work at a pace I'm comfortable with. It's ceases to be a hobby when one is demanding results. I enjoyed that type of structured learning at a University but that's why you pay money, it's like having a personal trainer. It's harder to skip the workout when you know someone is keeping track. Anyway, I DO hate writing without a point..I don't expect anyone will read this so I just wasted 30 minutes