Understanding Active Noise Cancellation

Active noise cancellation (ANC) leverages the physical principle of destructive interference: when two sound waves of equal amplitude but opposite phase meet, they cancel each other. In a typical ANC headphone, a microphone captures ambient noise, an electronic circuit inverts the signal to produce anti-noise, and a miniature speaker delivers that inverted waveform into the ear canal. The anti-noise and original noise combine to produce near-zero pressure variation at the eardrum, provided the amplitude and phase alignment are precise. This process must operate in real time with minimal latency—delays exceeding a few hundred microseconds shift the anti-noise out of alignment, especially at higher frequencies where wavelengths are shorter.

The practical frequency range where analog ANC excels is below approximately 1 kHz. Above that, passive isolation from ear cushions and cup design takes over because active cancellation demands tight phase accuracy that becomes increasingly difficult to maintain at shorter wavelengths. This article describes a feedforward topology: the microphone is placed outside the ear cup to capture noise before it reaches the ear. Feedforward systems are open-loop and simpler to implement with basic op-amp circuits, making them ideal for learning. In contrast, feedback ANC places the microphone inside the cup to monitor residual noise, but it requires careful stability analysis and is more challenging with discrete components. The feedforward design here demonstrates the essential concepts while providing a practical foundation.

Understanding the acoustic path is critical. Noise travels from the source to the external microphone, through the electronics (with propagation delay), and then from the speaker to the eardrum. The anti-noise must arrive at exactly the same time as the noise that leaks through the headphone’s physical barrier. Any mismatch reduces cancellation depth. This time-of-flight constraint is why feedforward ANC works best for low-frequency noise (e.g., engine rumble, HVAC hum) where wavelengths are long enough that small phase errors matter less. Higher frequencies require tighter alignment and often exceed what analog circuits can deliver without adaptive digital processing.

Fundamental Building Blocks of an ANC Circuit

Every analog ANC system includes three core stages: a microphone preamplifier, a phase inverter, and a power amplifier that drives the headphone speaker. A fourth stage—a summing amplifier—is often added to combine the anti-noise with a desired audio signal such as music or voice. The microphone picks up ambient noise and converts it into a tiny electrical voltage. The preamplifier boosts this signal to a usable level while filtering unwanted frequency components. The inverter flips the signal’s polarity, ideally with unity gain, to generate the anti-noise. A final driver stage feeds the inverted signal to a small speaker. Because the same speaker also delivers music, a summing circuit mixes both signals, keeping the anti-noise independent so it does not distort the audio. This article details each block and shows how to interconnect them with inexpensive, readily available components.

Selecting the Right Operational Amplifier

Op-amp choice directly influences noise floor, bandwidth, and power consumption. For a battery-powered ANC headphone, a low-voltage, single-supply op-amp is essential. The LM358 is a popular dual op-amp that operates from a single rail as low as 3 V, making it suitable for portable designs. It offers adequate gain-bandwidth product (1 MHz) and a typical slew rate of 0.5 V/µs, sufficient for audio frequencies up to a few kilohertz. However, the LM358’s output stage exhibits crossover distortion in class-AB operation; for cleaner audio, many designers prefer the TL072 (JFET-input, low noise) or the NE5532 (bipolar, ultra-low noise), though these usually require a split supply or a higher single supply. For a beginner-friendly breadboard project, the LM358’s simplicity and availability make it the ideal starting point. You can study the full specifications in the LM358 datasheet to understand its biasing and output swing limitations.

Regardless of the chosen op-amp, ensure it can drive the impedance of your headphones. Typical earbud drivers have impedances from 16 Ω to 64 Ω. Most op-amps can deliver only a few milliamps, so if you need higher output current, add a simple push-pull transistor buffer or a dedicated headphone amplifier IC after the inverter stage. We will assume a high-impedance (>100 Ω) headphone driver that can be driven directly from the op-amp output through a coupling capacitor. For designs requiring lower impedance, consider rail-to-rail output op-amps such as the MCP602 or OPA2333, which can swing closer to the supply rails and deliver more current.

Component List and Specifications

Gather the following items before you start. Using standard through-hole parts for easy breadboarding is recommended.

  • Electret microphone – a small omnidirectional capsule with built-in FET; typical sensitivity around –44 dBV/Pa. It requires a DC bias through a resistor (typically 2.2 kΩ to 10 kΩ).
  • Operational amplifier – LM358 (DIP-8 package) or equivalent dual op-amp. A second dual op-amp may be needed for the summing stage if you include music playback.
  • Resistors – values: 2.2 kΩ, 10 kΩ, 22 kΩ, 47 kΩ, 100 kΩ, and a 1 MΩ for microphone bias. 1/4 W carbon film resistors are fine. A 10 kΩ trimmer potentiometer for gain adjustment.
  • Capacitors – ceramic capacitors (0.1 µF, 10 pF, 33 pF) for decoupling and phase compensation; electrolytic capacitors (10 µF, 22 µF, 100 µF) for signal coupling and power filtering. Voltage rating at least 16 V.
  • Potentiometer – 10 kΩ trimmer for gain adjustment.
  • Headphone driver – a small dynamic speaker or salvaged headphone element (32 Ω or higher if driven directly by op-amp; otherwise add a buffer).
  • Power supply – a 9 V battery with snap connector or a regulated DC bench supply. A virtual ground network is needed for single-supply operation.
  • Breadboard and jumper wires – a 830-point breadboard eases prototyping.
  • Optional – audio source (e.g., smartphone) for summing tests, shielded microphone cable, oscilloscope for debugging, a small measurement microphone for cancellation verification.

For breadboarding, consider using an electret microphone module with a built-in bias circuit (e.g., MAX9814) if you want to simplify the front end, but a discrete design gives more control over gain and bandwidth. A shielded cable for the microphone is highly recommended to reduce hum pickup.

Detailed Circuit Design

Creating a Virtual Ground for Single-Supply Operation

Because audio signals swing above and below a reference level, a single-supply amplifier must be biased at a mid-rail voltage, often called a virtual ground. Use a simple resistive divider of two equal resistors (e.g., 10 kΩ each) between Vcc and ground, bypassed with a 10 µF capacitor to ground. The junction point provides a stable reference of Vcc/2. Connect this to the non-inverting inputs of the op-amps where needed. All signal coupling capacitors will then AC-couple audio around this DC bias. Ensure the capacitor is large enough (at least 10 µF) to keep the virtual ground impedance low at audio frequencies. A 100 µF electrolytic in parallel with the 10 µF can further reduce noise at very low frequencies. The virtual ground must sink and source small currents without significant voltage variation; the resistor divider values should be low enough to provide a stiff reference while not drawing excessive power. For more details on virtual ground design, see this tutorial on op-amp biasing.

Microphone Preamplifier Stage

The electret microphone’s tiny output must be amplified from a few millivolts to around 100 mV or more before inversion. A non-inverting amplifier configuration is ideal because of its high input impedance. Connect the microphone through a 1 µF coupling capacitor to the non-inverting input of the first op-amp. Bias that input to virtual ground with a 100 kΩ resistor. The gain is set by the formula Gain = 1 + (R2/R1). Choose R1 = 2.2 kΩ and R2 = 22 kΩ for a gain of 11, which can be adjusted later. Place a 10 pF capacitor in parallel with R2 to roll off high-frequency noise above 15 kHz, preventing oscillation. The output is taken from the op-amp’s pin 1 and fed to the next stage via a 10 µF coupling capacitor that blocks the DC virtual ground offset.

This preamplifier also provides a natural bass cut if the coupling capacitor values are chosen modestly; the high-pass filter corner frequency should be below 100 Hz to preserve the ANC effective range. For deeper cancellation at low frequencies (down to 50 Hz), increase the coupling capacitor to 22 µF. Detailed op-amp configuration principles can be studied in this op-amp tutorial.

Inverting Amplifier and Anti-Noise Generation

The second op-amp in the LM358 package is configured as an inverting amplifier with a gain of –1, flipping the preamplified signal. Connect the preamp output through a 10 kΩ resistor to the inverting input. A 10 kΩ feedback resistor from output to the same input sets the gain magnitude to 1. The non-inverting input is tied to virtual ground. The output now carries the anti-noise signal. Insert a variable resistor (10 kΩ trimmer) in series with the preamp output to allow fine control over the cancellation level. A 0.1 µF capacitor across the feedback resistor can limit bandwidth to about 1.5 kHz, matching the feedforward cancellation range.

Phase accuracy is critical. The inverting amplifier introduces a 180° shift at low frequencies, but additional phase lag occurs due to the op-amp’s own frequency response and the coupling capacitors. For frequencies up to about 500 Hz, the phase error remains minimal. You may observe cancellation depth improve by slightly adjusting the preamp gain or adding a small capacitor (10–33 pF) between the inverting input and ground to tweak phase margin. The objective is to align the anti-noise as closely as possible to the original noise waveform at the ear. Use an oscilloscope in dual-trace mode to compare the preamp output and the inverter output; they should be 180° out of phase for a sine wave input.

Optional: Summing Anti-Noise with Audio Playback

Real ANC headphones allow you to listen to music while cancelling noise. To do this, the anti-noise must be mixed with the audio signal without interfering. A simple summing amplifier using a third op-amp (or a passive resistor mixer) accomplishes this. Use a 10 kΩ resistor from the anti-noise output and another 10 kΩ resistor from the audio input (e.g., headphone jack signal, also biased to virtual ground). Both resistors connect to the inverting input of an op-amp with a 10 kΩ feedback resistor. The output becomes the sum of the two signals, inverted. A final inversion restores the original audio polarity: you can either ignore it (the ear is insensitive to absolute phase for music) or insert an inverting buffer. Drive the headphone through a 100 µF electrolytic capacitor to remove DC. If the headphone impedance is low (<64 Ω), you’ll need a buffer stage; a simple emitter follower with a complementary pair (BD139/BD140) can drive 32-ohm headphones efficiently. Alternatively, use a dedicated headphone driver IC like the TPA6111A2.

When summing, caution is needed to prevent the anti-noise from affecting the music signal. The summing amplifier should have unity gain for both paths to avoid changing the music level. Also ensure that the music source is AC-coupled and biased to virtual ground to avoid DC offset mixing.

Power Supply Design and Considerations

A 9 V battery provides a clean, floating DC source that works well with the virtual ground scheme. Add a 100 µF electrolytic capacitor and a 0.1 µF ceramic capacitor across the power rails to suppress noise and oscillation. Keep in mind that the LM358 can swing its output only to within about 1.5 V of the supply rails, so with a 9 V supply, the maximum peak-to-peak output is roughly 6 V (2.1 V RMS). That is sufficient for typical headphone listening. If you need louder anti-noise, increase the supply to 12 V or use a rail-to-rail op-amp like the MCP602. Always decouple each op-amp’s power pins with a 0.1 µF capacitor placed as close as possible to the IC. For extended battery life, consider low-power op-amps such as the TLV272 or OPA2333.

For bench testing, a regulated DC power supply set to 9 V is convenient. However, line-powered supplies can introduce ground loops; a battery is preferred for final testing. If you must use a wall adapter, include a bridge rectifier and a 470 µF filter capacitor to create a floating DC supply, then add the virtual ground.

Breadboard Assembly and Initial Testing

Start by assembling the virtual ground divider and verifying that the midpoint voltage is approximately half the supply. Then build the microphone preamplifier, connecting the mic with a shielded cable to reduce hum. Power the circuit and check the preamplifier output with an oscilloscope or a multimeter set to AC; tapping the microphone should produce a visible waveform. Next, add the inverting stage. Temporarily connect a small speaker (through a 100 µF capacitor) to the inverter output. You should hear the inverted noise—sounding hollow or phasey compared to the original. If not, trace the signal stage by stage using a probe.

For a quick cancellation test, place the microphone close to a noise source (a fan or a tone generator playing through a separate speaker) and hold the headphone driver near your ear. You may hear a reduction in the low-frequency hum. Fine-tuning will be necessary.

A more quantitative approach involves using an oscilloscope in X-Y mode. Feed the microphone signal to channel 1 and the acoustic output (captured by a second microphone placed at the ear position) to channel 2. Adjust the trimmer until the Lissajous figure becomes a straight diagonal line, indicating perfect phase and amplitude cancellation. This method works well for sine wave test tones.

Fine-Tuning the Circuit for Optimal Performance

Optimizing analog ANC is largely about adjusting gain, bandwidth, and phase. Use the trimmer in the feedback path of the inverter to set the exact gain for deepest cancellation at a target low-frequency tone (e.g., 200 Hz). An oscilloscope in X-Y mode can help: feed the microphone signal to channel 1 and the headphone driver acoustic output (picked up by a small measurement microphone inside an artificial ear) to channel 2; adjust for a straight line. In practice, you can use your ears: play a constant tone from a loudspeaker, listen through the headphones, and turn the trimmer until the perceived volume is minimum.

Beware of acoustic feedback: if the microphone is too close to the headphone driver, the anti-noise can couple back into the microphone, creating howling or oscillation. Physical separation or acoustic damping material inside the ear cup helps. Using a feedforward topology with the microphone outside the cup naturally reduces feedback. Shielding the microphone cable and keeping the op-amp input leads short also prevents unwanted electrical noise pickup. If oscillation persists, increase the value of the capacitor across the feedback resistor (e.g., 0.22 µF) to reduce bandwidth, or add a small series resistor (10–47 Ω) at the op-amp output to isolate capacitive loads from the cable.

Real-World Applications and Limitations

This op-amp ANC circuit demonstrates the basic principle, but commercial ANC headphones use more advanced techniques. Feedforward ANC as described here is open-loop; it does not adapt to changes in the acoustic path. Feedback ANC places the microphone inside the ear cup, directly monitoring the residual noise and continuously minimizing it, which can cancel a wider bandwidth and handle variations in headphone fit. However, feedback systems require careful loop stabilization to avoid oscillation. Digital ANC solutions, employing digital signal processors (DSPs) and adaptive algorithms such as the Filtered-X Least Mean Squares (FxLMS) algorithm, can achieve superior performance and even cancel tonal noise. Nevertheless, the analog approach remains valuable for educational purposes, DIY projects, and low-latency implementations.

One of the primary limitations of our simple feedforward design is that cancellation is effective only for sounds that reach the external microphone identically to how they would reach the eardrum. Different noise arrival directions, head-related transfer functions, and the ear cup’s acoustic transmission alter the noise waveform, preventing perfect inversion. Additionally, the circuit introduces a fixed delay; if that delay exceeds a quarter wavelength of the noise frequency, cancellation changes to constructive interference at that frequency. Therefore, the effective range is generally below 1 kHz, and performance drops sharply above that. For a deeper look at stability and phase margin in feedback systems, see this Analog Devices article.

Troubleshooting Common Issues

When building this circuit, you may encounter several common problems. No output from the preamplifier often results from a missing DC bias for the electret microphone. Ensure the microphone’s drain pin is connected to Vcc through a resistor (typically 2.2 kΩ) and the source pin to ground. Hum and noise can enter through long unshielded wires; use a shielded cable for the microphone and keep power supply leads short. Oscillation is usually caused by parasitic capacitance on the op-amp input or insufficient decoupling. Add a 100 Ω resistor in series with the output to isolate capacitive loads, and place a 10 pF capacitor between the inverting input and ground if needed. Poor low-frequency cancellation indicates either insufficient gain or phase shift. Increase the preamp gain by making R2 larger (e.g., 100 kΩ) and ensure the coupling capacitors are large enough (at least 10 µF). For more systematic troubleshooting, refer to a practical guide like this EEWeb ANC circuit article.

Distorted anti-noise at high levels may result from op-amp output swing limitations. Reduce the preamp gain or increase the supply voltage. If the microphone picks up the anti-noise from the speaker (howling), increase physical separation or use a directional microphone with a pickup pattern aimed away from the speaker.

Moving Beyond Op-Amps: Digital ANC Solutions

If you want to explore high-performance ANC, digital signal processing opens new possibilities. Low-cost ARM Cortex-M4 or dedicated ANC chips like the Analog Devices ADAU1772 can execute adaptive filtering algorithms such as the filtered-X least mean squares (FxLMS) algorithm. These systems continuously adjust the anti-noise filter coefficients to maximize rejection. Many DIY enthusiasts have successfully built digital ANC headphones using a tiny microphone, a Teensy or STM32 board, and a DAC/amplifier. While more complex, digital ANC can achieve cancellation up to 2 kHz and adapt to changing noise environments. A good starting point for understanding the FxLMS algorithm and its implementation is the Instructables active noise cancelling headphones guide, which covers both analog and digital paths. Additionally, Texas Instruments provides a detailed application note on digital ANC using the TLV320AIC3204 codec.

For those who wish to stay in the analog domain but improve performance, consider adding a second-order filter stage to shape the microphone frequency response. Sometimes the ear cup’s acoustic response peaks at certain frequencies; a notch filter can compensate, improving flatness of cancellation. This requires careful measurement but can yield results comparable to entry-level commercial ANC headphones.

Enclosure and Acoustic Design Considerations

The physical enclosure of the headphone dramatically affects ANC performance. The feedforward microphone should be mounted on the outside of the ear cup, positioned to capture ambient noise with minimal obstruction. A small foam windscreen reduces wind noise artifacts. The microphone’s proximity to the ear cup’s acoustic port can create resonances; experiment with placement to find a position that gives the flattest frequency response from noise to ear.

Inside the ear cup, the driver should be sealed against the ear cushion to prevent acoustic leaks that compromise both passive isolation and active cancellation. The cushion material and fit against the head determine the low-frequency cutoff for passive isolation; a good seal extends the effective range of ANC. For DIY builds, consider using over-ear cups with circumaural padding, which provide better passive isolation than on-ear styles. Acoustic damping material (e.g., foam or felt) inside the cup behind the driver can absorb reflections and reduce resonances.

Wiring must be strain-relieved and shielded. Use twisted pairs for signal and ground to the microphone, and keep power supply wires away from audio signal paths. A small PCB or stripboard version of the circuit can be mounted inside the ear cup or in a small enclosure worn on the headband. For a wearable prototype, two LM358 ICs (one per channel) and a battery can fit in a small box attached to the headband.

Conclusion

Building an active noise cancelling headphone circuit with operational amplifiers is a hands-on way to grasp wave interference, analog signal conditioning, and audio electronics. The project takes you from a simple microphone preamplifier to a fully functional feedforward ANC system that can reduce low-frequency hum and rumble. While it cannot rival the performance of commercial adaptive ANC headsets, the experience teaches invaluable lessons about phase alignment, gain staging, and the constraints of real-time analog processing. Armed with this knowledge, you can experiment further—optimizing the circuit, adding music summing, or transitioning into the digital domain with a microcontroller. Whether for a university laboratory exercise or a weekend hobby project, the op-amp ANC headphone remains a classic gateway to deeper audio engineering.