Designing audio circuits remains a challenge and aspects of it are still often considered a bit of a black art.  Even the best designers often have to build more than 1 PCB to produce a high quality noise free design.  Below are some tips from our experiences…

Power Supplies & Grounds

Transformers are great for powering audio circuits, especially because you can use separate windings to power different parts of your overall circuit with each winding being completely isolated from each other.  Its not that you should never use switch mode power supplies, but if you are designing a product that could use a transformer don’t just blindly use a switch mode PSU because that’s what you always use.  Also remember that its often not expensive to have transformers wound to your own specifications for a particular product.

Use a separate ground connection for audio and run important ground connections back to a single ground point.  Ground planes for audio circuitry sometimes work but can often cause more problems than they solve.

In these notes by GND we mean 0V, not literally mains GND.  However if you can, include a connection from Audio GND to mains earth from the audio GND star point as this can often help for mains powered devices.

Keep power supplies, transformers and noisy digital devices away from analog circuitry. Its easy to ignore this obvious point but try and do it – its really important when you suddenly find you have a noise problem!

The GND connection of audio amplifiers is very important compared with GND of other IC’s etc – if there is GND noise between the two then the amp is going to output it.

Consider powering important IC’s and anything sensitive using a 100R resistor between them and +V.  Include a decent sized (e.g. 220uF) elect capacitor on the IC side of the resistor. If IC will pull a lot of power then ensure resistor can handle it (select a high enough wattage and provide PCB copper heat sinking if necessary) and bear in mind there will be voltage drop across the resistor.

For transformer based designs you want the rectifier capacitors to be as near to the rectifier pins as possible, and connected via their own thick tracks due to the large charging currents at the very peek of the rectified sin wave.  As the output voltage of the rectifier exceeds the decaying voltage of the capacitor, impulse noise is produced in the charging circuit which can get transferred into the audio circuit if they share the same piece of copper in either of the power lines. You can’t get rid of the pulse charging current so its much better to keep the capacitor local to the bridge rectifier to minimise these high current pulses of energy. If a audio amplifier is near the rectifier then don’t locate a large capacitor next to the amp to avoid this capacitor causing this problem, but if there is a bit of distance then its fine to give the amplifier is own capacitor as it gets float charged from the power supply and ends up having a relatively high impedance due to the length of the copper.

Connect the amplifier 0V and +V via their own connections directly to the rectifier output / power supply input.  If you are using a large capacitor local to the amplifier then run the power tracks via it to the amplifier, not to the amplifier and them back out to it (this can avoid issues where the capacitor tracks become aerials for RF interference).  View the current flow as a route, via PSU capacitors to the amplifier and then out to the other audio circuits with the amplifier typically as the ideal GND star point.

Locate and voltage regulators which are used by the audio circuitry near to rectifiers / PSU input and connect with their own connections also.

Signals

Where possible avoid in and out audio signals to and from IC’s running in parallel on the PCB as this can cause oscillations which feed from output back to input. Remember just 5mV can cause plenty of hum!

Keep digital ground planes away from audio GND and audio circuitry generally. Hum can be introduced into audio simply from tracks being too near digital planes.

Vmid

Traditional audio design has audio signals centered around 0V, with +V and -V rails to your IC’s, op amps, etc. But you don’t need to do that at all. You can set Vmid to whatever you want. So, for example, on a +3.3V based design you might decide to set Vmid at, say, 1.5V and create it using a potential divider. If you need a hard Vmid rail (that can’t be pulled either way by other resistances), then run the potential divider-created voltage through an op amp configured as a follower.

When you need to interface an audio signal from the outside or from one bit of your circuitry to another, you can simply place a series capacitor to AC isolate it. The audio signal will pass through fine, but the Vmid / floating no noise level of each side becomes isolated from each other. The idle Vmid of each can be completely different.

Just always make sure your Vmid has enough working voltage range above and below it to accept your largest AC audio signal.

Gotchas?

Remember that you do need a Vmid, your signal rail is going to get pulled somewhere by whatever components are connected to it. It needs to settle idle somewhere. If you forget this you may find your Vmid becomes 0V, because resistances somewhere in the circuit pull it towards 0V. OK, but make sure everything you have connected is happy with the AC signal dropping below 0V if 0V is your Vmid! If they aren’t, say because all your OpAmps etc are 0V and +3.3V powered, then 0V being your Vmid is going to be a problem! You’re probably going to exceed the absolute min voltage level on your IC’s, quite apart from the audio signal getting trashed as it tries to dip below 0V when audio is played and the AC signal appears!!

Interfacing

When interfacing to other equipment, if powering some other board that includes audio circuitry (going to give or receive an audio signal) ensure there is only 1 point at which GND connects between the 2 boards and this should ideally be at the audio analog signal connection point. Can you power the other board using a floating supply and just connect GND without supply power through it (for example by using separate output of a transformer)?

For signal IO connections to other devices / the outside world it’s a good ideal to use a 100R resistor between the circuits GND and the outside world GND for everything (including digital parts of the circuit) to stop ground loops being created.

Capacitors

Audio signal series capacitors:-

Use them wherever you want to isolate sections from each other.  Values to use:- 220nF is typical, 100nF is fine if you want to reduce size / cost, best not to go below 100nF. 10uF is also often used as are 10uF electrolytic.

Do not use ceramic capacitors. The reason is that ceramic capacitors will give a piezoelectric effect to an AC signal which causes noise. Use a Poly of some type – Polypropylene is best but any will do. A generally accepted substitute for polycarbonate is PPS (Polyphenylene Sulphide).

True audio heads also say don’t use electrolytics as in-line capacitors but many designers and circuits do without issue – this is likely for high-purity applications and not general standard audio design.

Do not use tantalum capacitors anywhere within audio signal paths (some designers may disagree but they can cause horrible problems)

OpAmp Circuits

When designing op amp circuitry you often find you need to invert an audio signal to achieve the simplest circuit.  This is fine and is only an issue where you have one signal inverted and another not as this would cause them to be out of phase when heard.

Fast OpAmps are not necessarily good for audio.  We’ve had issues in the past with devices like the LMV722 which is a 10MHz OpAmp oscillating wildly when used with digital pots that add a bit of propagation delay to the feedback resistor.  Changing to a LMV358 which is a 1MHz OpAmp solves the issue.

Balanced signals

Unbalanced into balanced

Where you have a balanced input, for instance to an amplifier IC, but an unbalanced audio signal (just one signal) you do still need to connect the – input. You can use 0V and you should use the same connection method as for the + terminal (so via a cap for instance if that is what you are doing for the + signal). Yes it is needed even though the cap is AC isolating (unless your AMP IC etc specifies it is happy with it left floating).

USEFUL?
We benefit hugely from resources on the web so we decided we should try and give back some of our knowledge and resources to the community by opening up many of our company’s internal notes and libraries through mini sites like this. We hope you find the site helpful.
Please feel free to comment if you can add help to this page or point out issues and solutions you have found, but please note that we do not provide support on this site. If you need help with a problem please use one of the many online forums.

Comments

Your email address will not be published. Required fields are marked *