Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,807,128 Members 40,268 Now Online
XDA Developers Android and Mobile Development Forum

External Mic on Galaxy Devices

Tip us?
 
AdamOutler
Old
(Last edited by AdamOutler; 29th December 2012 at 08:58 PM.)
#1  
AdamOutler's Avatar
Recognized Developer - OP
Thanks Meter 9,623
Posts: 5,196
Join Date: Feb 2011
Location: Louisiana

 
DONATE TO ME
Default External Mic on Galaxy Devices

Hey guys, I worked on adding external microphone features to my device for a dog-gone long time yesterday... about 5 hours. Elite Recognized Developer Rebellos searched the code and we figured out that the device wouldn't recognize my mic because it's ohms are too low. The WolfsonMicro chip uses any value below 1000 ohms to signify button presses. Above 1000 ohms it signifies a microphone. My microphone is a 900 ohm microphone, so in all actuality, it's pretty high considering most are around 100-500 ohms. However, Rebellos and I managed to hack through it. I wanted to share this method.

My target device is a Galaxy Camera, but Samsung has used WolfsonMicro chips in their devices for a long time. This also works on the Galaxy Note 2 so Its logical to assume it will work on others.

Here's the finished solution. A Samsung 4-pole to 1/4" Mic adapter with a 200ohm resistor inline.



Introduction


The Galaxy Camera and Note2 require over 1000 ohms of resistance in order to recognize that a microphone is connected to it. So, there's two ways to do this.

1. Buy a microphone with over 1000 ohms of impedance.
2. Add some impedance.

Now, adding impedance will reduce the volume of the microphone, but that's not an entirely huge issue as adjusting volume is not a big deal. However, adding a resistor will slightly distort the waveform but even with this slight distortion it's not going to destroy the sound quality because it's a very slight ripple which in most cases will not affect the compressed recording quality.

Getting things together
Everything you need to add external, directional audio is available at Radio Shack for less than $35 USD. Buy a better microphone with higher ohms for louder sound. You get what you pay for.
1. 1/4" Mono In-Line Audio Jack (2-pack) - RS Part Number 274-0340 - $5
2. a set of Samsung Earbuds with 4-pole connections
3. optional - microphone Unidirectional Dynamic Microphone - RS Part Number 3303038 - $19.99 - note the old one is 900ohms. The new one is 600 ohms.
4. optional - Biasing Resistor - you will need to do the following equation to determine the ohmage of resistor you require. $5
1100 ohms - (ohms of your microphone stated in the manual) = ohms of resistor required to turn on the microphone.
1100 ohms - 900 ohms = 200 ohms of resistance required
5. Epoxy and Superglue $5

Building the adapter
Building the adapter is quite simple Samsung uses 7 wires in their headphones. Bare wire is not connected to anything. 3 are copper colored in clear shields there is a Blue or Green, Red and White as well. The 3 copper are the common leads The White is the microphone.
  1. Cut the connector off the headphone, leaving 3 inches of the cable.
  2. Cut all of the wires except for one Copper and the White wire.
  3. Strip and tin the Copper and White wires.
  4. Solder the copper wire to one side of the 1/4" Mono In-Line Audio Jack
  5. *Optionally* If required to exceed 1100ohms solder the resistor to the white wire
  6. Attatch the white wire (with resistor if used) to the center post of the 1/4" Mono In-Line Audio Jack.
    At this point you can verify your setup works.

  7. superglue the wire to hold it in place for the next step
  8. Mix up your epoxy and apply to the resistor, wire and jack connections in a way to support the following:
    1. to keep the wires from touching anything
    2. to prevent physical strain on the electrical connections
    You'll want to ensure that the epoxy is a light coat which totally surrounds the wire, resistor and large metal pads on the 1/4" audio jack. But don't let it go down inside the jack because it can prevent the microphone from connecting properly.
  9. slide the 1/4" jack cover down over the epoxy after it's done drying.

It should look something like this:



Here's a video showing how it works with my cheap microphone. It works super well to remove almost all noise from my recordings and just needs about a 6db gain and bass-boost adjustment in post-processing for accurate sound reproduction. This could be and will be corrected with a better mic in the future.

Attached Thumbnails
Click image for larger version

Name:	SamsunAVPinout.jpg
Views:	19285
Size:	31.9 KB
ID:	1601349  
Flash with Odin on Windows, Linux and Mac. Use JOdin3, Available in a web browser or offline
Check out my developer pages. Add me to your circles on Google Plus.
Wanna see the longest Linux BASH script ever made? click here.
The Following 31 Users Say Thank You to AdamOutler For This Useful Post: [ Click to Expand ]
 
Entropy512
Old
#2  
Senior Recognized Developer
Thanks Meter 24,356
Posts: 13,264
Join Date: Aug 2007
Location: Owego, NY

 
DONATE TO ME
Probably could build a preamp circuit using an op-amp to handle the impedance shift without losing volume.
*so much sig updating needed*

My Github profile - Some Android stuff, some AVR stuff

An excellent post on "noobs vs. developers"

A few opinions on kernel development "good practices"

Note: I have chosen not to use XDA's "friends" feature - I will reject all incoming "friend" requests.

Code:
<MikeyMike01> Smali is a spawn of hell
<shoman94> ^^^ +!
Code:
<Entropy512> gotta be careful not to step on each other's work.  :)
<Bumble-Bee> thats true
<jerdog> compeete for donations
The Following User Says Thank You to Entropy512 For This Useful Post: [ Click to Expand ]
 
lordxentris
Old
#3  
lordxentris's Avatar
Senior Member
Thanks Meter 36
Posts: 226
Join Date: Dec 2010
Location: Colombo

 
DONATE TO ME
FYI - Speech Filter
These are not the droids you are looking for...
~ PC Help ~

Click "Thanks" to those who deserve it.
 
QNBT
Old
#4  
QNBT's Avatar
Recognized Themer
Thanks Meter 648
Posts: 1,405
Join Date: Oct 2010

 
DONATE TO ME
Does 1000 ohms apply to USB driven mics (somehow)? Or is it only a matter of drivers? To be specific I'm referring to the Snowball from Blue.
 
Adreaver
Old
#5  
Adreaver's Avatar
Senior Member
Thanks Meter 773
Posts: 1,361
Join Date: Jun 2012
Location: New London
I'm considering adapting this mod to my specific needs. I'm looking to hardwire my lady's car for handsfree using google now. I have headphone audio in via a tape deck adapter. This mod would allow me to add an external mic mounted to the steering wheel or dashboard.

Is the mic functionality of this mod exclusive with audio output? Or could I keep the Red, Blue, and remaining copper wires and attach them to a separate 1/4" jack for audio out?

This would then give me a Y-Adapter, with one side for Mic In, and the other for Line Out.
Phone: T-Mobile Samsung Galaxy SIII LTE SGH-T999L (White)
Android Version: 4.3 Jellybean
Rom: PAC-manNightlies (9/5)
Kernel: DKP 3.4 (9/2)
Modem: T999LUVAMB7
Tweaks: ComaDose v2.1
Apps: Slim Gapps
 
AdamOutler
Old
#6  
AdamOutler's Avatar
Recognized Developer - OP
Thanks Meter 9,623
Posts: 5,196
Join Date: Feb 2011
Location: Louisiana

 
DONATE TO ME
Quote:
Originally Posted by QNBT View Post
Does 1000 ohms apply to USB driven mics (somehow)? Or is it only a matter of drivers? To be specific I'm referring to the Snowball from Blue.
If there is a way to configure that chip, its locked away in proprietary drivers. The ohms only affects the pins 1 and 2 in the OP. To my knowledge all samsung camera apps (GCam and Note2 tested) do not have the ability to record bluetooth or USB.
Flash with Odin on Windows, Linux and Mac. Use JOdin3, Available in a web browser or offline
Check out my developer pages. Add me to your circles on Google Plus.
Wanna see the longest Linux BASH script ever made? click here.
The Following User Says Thank You to AdamOutler For This Useful Post: [ Click to Expand ]
 
AdamOutler
Old
(Last edited by AdamOutler; 31st December 2012 at 03:16 PM.)
#7  
AdamOutler's Avatar
Recognized Developer - OP
Thanks Meter 9,623
Posts: 5,196
Join Date: Feb 2011
Location: Louisiana

 
DONATE TO ME
Quote:
Originally Posted by Adreaver View Post
I'm considering adapting this mod to my specific needs. I'm looking to hardwire my lady's car for handsfree using google now. I have headphone audio in via a tape deck adapter. This mod would allow me to add an external mic mounted to the steering wheel or dashboard.

Is the mic functionality of this mod exclusive with audio output? Or could I keep the Red, Blue, and remaining copper wires and attach them to a separate 1/4" jack for audio out?

This would then give me a Y-Adapter, with one side for Mic In, and the other for Line Out.
It would work well.. to activate Google Now you simply open the connection between pins 1 and 2 momentarily... however, i posted a schematic for the entire audio controls via USB last year. It uses the Built-in FSA chip present in all Samsung Galaxy devices. You bridge USB PINS 4-5 WITH A 410kohm resistor and then using a set of 10 switches and resistors you can seek, skip, pause, and several other actions. The schematic for a car-mode audio dock is located in the USB chip manual.
Flash with Odin on Windows, Linux and Mac. Use JOdin3, Available in a web browser or offline
Check out my developer pages. Add me to your circles on Google Plus.
Wanna see the longest Linux BASH script ever made? click here.
 
THC Butterz
Old
#8  
THC Butterz's Avatar
Senior Member
Thanks Meter 320
Posts: 397
Join Date: Oct 2011
Location: Virginia Beach, VA

 
DONATE TO ME
thats blody brilliant, from the looks of this, this mod would work for a wide spectrum of phones, I might atempt this with my evo 3d!


If you want to use my rom as a base for your rom ask please by sending a pm, ill let you but ask...

My op is updated all the time check with my op for fixes before posting issues with my rom please, if they are in the op im working on them
 
krayzielilsmoki
Old
#9  
Senior Member
Thanks Meter 15
Posts: 105
Join Date: Nov 2010
I cant help but think that this is one step closer to making the galaxy camera a full blown phone.
 
lutadore
Old
(Last edited by lutadore; 31st December 2012 at 12:22 PM.)
#10  
Junior Member
Thanks Meter 1
Posts: 3
Join Date: Feb 2011
Adam,

I've found this on the net and thought it may be of interest to you.
These guys have worked on a similar project, but for the iPhone. On the wiki they stated that they couldn't get the android microphone to work, but I think you solved the problem.

I am unable to post links but the project is called BootlegMic, and the wiki is:

wiki dot openmusiclabs dot com slash wiki slash BootlegMic


Regards
Lutadore

Sent from my GT-P3100 using xda app-developers app
Edit: typos fixed

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes