Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Design Mic pre-amp #3

Closed
SmittyHalibut opened this issue Jul 11, 2022 · 11 comments
Closed

Design Mic pre-amp #3

SmittyHalibut opened this issue Jul 11, 2022 · 11 comments

Comments

@SmittyHalibut
Copy link
Contributor

Design a mic pre-amp to connect a dynamic mic to device expecting an electret.

I think this can be done using the bias power on the electret mic feed:

image

R2 and C2 are part of the device consuming the Electret mic. The node between R2, C2, R1, and T1 is the "mic" pin on HIS, and ground is "mic return". This only requires C1, R1, and T1 to turn a dynamic mic into an electret level signal.

...we just need to, ya know, pick R1 and T1. (C1 is likely to be a 1uF ceramic.)

HIS will specify standards, but will also allow direct connection to a radio that's already expecting an elecret element. So R2 and the voltage are likely to be all over the place.

@SmittyHalibut SmittyHalibut transferred this issue from open-headset-interconnect-standard/ohis Jul 11, 2022
@SmittyHalibut SmittyHalibut transferred this issue from another repository Jul 11, 2022
@SmittyHalibut
Copy link
Contributor Author

Once this design is finalized, add it as an optional part of the HIS, so it becomes part of the CC-BY-NC license. Specifically, I want everyone to be explicitly able to use it for free. But it is not a REQUIRED part of the spec. Implementers are allowed to design their own amplifiers, so long as the inputs and outputs meet the HIS Specification.

@SmittyHalibut
Copy link
Contributor Author

Single Transistor Amp

Used http://www.guitarscience.net/calcs/ce.htm to design the amp. Ended up with:

  • CB = 1uF
  • RB1 = 75k
  • RB2 = 27k
  • RE = 470R
  • CE is not used (provides too much gain)
  • RC and CC (not shown) are part of the electret driving circuit, 2.2k and 1uF in SOAR's case.

Resulted in about 12.72dB of gain, which is pretty good. Boards are on order from JLCPCB.

Alternate: Dual Transistor Amp

Another option to consider if the above doesn't work is: https://www.electroschematics.com/dynamic-microphone-amplifier-low-noise/ I needed to get the board order submitted for other things, so I didn't lay this one out yet. I'm hoping the simpler amp above will work.

@SmittyHalibut
Copy link
Contributor Author

http://halibut.com/~mark/2022-08-18%20First%20Test%20Of%205%20Component%20Preamp.mp3

The pre-amp design works really well! I've got several test boards on their way to me, and will be sending them off to users to test on their setups. But this sounds remarkably good.

SmittyHalibut added a commit that referenced this issue Aug 26, 2022
…dard/issues/3

Adding Dynamic Mic Preamp circuit.
@SmittyHalibut
Copy link
Contributor Author

Mic Preamp boards sent to users (identities not posted here, so I don't DOX them if this repo ever becomes public.) Waiting on responses.

@SmittyHalibut
Copy link
Contributor Author

Responses from Mic preamps have been good, with one case of noise that is likely caused by unshielded cables.

@SmittyHalibut
Copy link
Contributor Author

image

That's from https://www.epanorama.net/circuits/dynamic_to_electretinput.html

image

And that's from https://hf5l.pl/en/electret-microphone-instead-of-dynamic-and-vice-versa/

Both are showing similar circuits, and similar to what I've already designed above. I need to compare component values and see how close they really are.

@SmittyHalibut
Copy link
Contributor Author

Also note #6 talks about varying voltages and series resistances when driving an electret. My original assumption about 5v and 2.2k ohms was incorrect. So make sure the amp I designed works with varying source voltages and series resistances.

The goal of the relationship between source voltage and series resistance is to drive a given bias current (0.5mA) through the electret element, and therefore through our amp circuit. So I THINK it'll work out ok. But I need to do the math to verify.

@SmittyHalibut
Copy link
Contributor Author

When testing Radio Pro v1.1b in https://github.com/Halibut-Electronics/HHI-Radio-Pro/issues/19 I have been using as many mics and headsets as I can, and my Heil dynamic mic is NOT working with the mic pre-amp design I have. No audio.

I reconfigured one pre-amp as the second design in #3 (comment) (470k R_cb, and 100R R_e, using the 6.2k current limiting resistor in the DC bias circuit as the 5.1k R_c). If I yell, I get a bit of heavily distorted audio. Something isn't right there.

I think I need to simulate this circuit. sigh One of these days, I'll figure out Qucs. Maybe this is that day?

@SmittyHalibut
Copy link
Contributor Author

I simulated the Guitar Circuits amp, and the hf5l.pl amp. Guitar Circuits got us about 15dB gain, and the hf5l got about 27dB. With a 5v/6.2k power source, neither was heavily distorting, though I haven't figured out how to measure THD with Qucs yet.

@SmittyHalibut
Copy link
Contributor Author

I'm not sure why the mic amps aren't working as expected. I've started experimenting with OpAmp based mic amps: https://github.com/Halibut-Electronics/HHI-User-Pro/issues/10

But, this passive component amp really should work, and it did work with test boards. But it doesn't seem to be working with the Heil headset.

@SmittyHalibut
Copy link
Contributor Author

'CUZ I'M A DUMBASS. When using your Heil to test Dynamic mics, make sure you have a Dynamic mic element loaded into the headset, not the iC element, meant for Icoms, which is an Electret.

Swapped the mic element, works a champ. sigh At least I learned a fair bit about circuit modeling, which is a skill I'll definitely be able to use going forward.

Also tested my PR-781 using an XLR to 3.5mm cable. Also works great.

While working on #6 I also designed an attenuator that works across both an Electret element, and the output of this dynamic mic amp.

I've moved the "Update the mic preamp design in the standards document" to #10

Resolving.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant