Hi, I'm looking for some advice on electronics feasibility for a project I'm cooking up to translate signals from my car audio, into CTIA controls via a 4 pin, 3.5mm jack (TRRS)
From how I understand CTIA, on a basic level, it shorts the microphone line to ground through various resistors, 220ohm and 600 for prev, next track signals and short circuit to play/stop
The mic is the first (sleeve) pin and the next ring being ground. These two can also be reversed for the alternative OMTP standard.
I'd like the Arduino to be able to generate those signals, preferably for both CTIA & OMTP.
Now im a software guy and my knowledge of electronics is rudimentary at best, so excuse me if it sounds absurd, but I wondered could I simulate the resistors using a single, analog output.
Sampling one line as analog input, outputting a calculated value based on that sample, to the output line.
For example if the mic voltage is sampled at X mv,
I could sent X mv on the other line to simulate a short or X - (what ever volt drop a 220r would yield) to simulate previous track.
Obviously both devices share a common ground.
I realize I could use 3 GPIO pins hooked up to the respective resistors but the analog method would allow me to detect the polarity in software and switch it according for the two different protocols.
Thanks in advance
Hello eurospoofer
Do you have a CTIA/OMTP signal specification available? PDF preferred.
Have a nice day and enjoy coding in C++.
I am confused. Resting state.
What’s talking to whom? Just hand draw a block diagram showing all the actors in your play, so to speak, and how they are connected, wiring and protocol-wise.
What is the problem you are trying to solved or goal you wish to attain with your project?
What you suggest might work; I can think of a designed protocol that would match your description but fail if you tried that trick…
Oh, and welcome to the community!
a7
No, without detailed knowledge of the rest of the device circuitry. If the device expects to be controlled by various resistance loads, then it is mostly likely measuring the voltage across those loads using an internally generated current reference, which you would have to override.
In any case, very few Arduinos have a genuine analog output.
No. But I think you can use a mux. Connect the microphone line to 220, 600 and a piece of wire to three inputs on the mux and put the output to the gnd. Or use a demux.
You can use the enable pin (if any) to put the mux into high-Z (high impedence; disconnected) state.
Thanks for all the input.
As jremington mentioned, that was the specific point I had doubts over. Trying to simulate the reference voltage wouldn't work across two analogue ports.
I think the easier solution will be to wire up the resistors each to their own GPIO pin and run them all to common ground.