CC Blog • Design Solutions • Research & Design Hub

Combating Electrical Noise

Written by Stuart Ball

Keeping Your Circuits Quiet

Electromagnetic interference—EMI or simply “electrical noise”—is common in electrical circuits. In this article, Stuart looks at electrical noise—where it comes from, how it can affect your circuits, and ways to mitigate it, using some interesting real-life situations that he encountered.


  • What causes electrical noise in circuits?
  • How can I mitigate electrical noise in my circuits?
  • How does electrical noise affect circuits?
  • Oscillators
  • ICs

Alot of projects and products we design are all-digital, or if there is any analog signal processing, the signals are of sufficient amplitude that noise isn’t an issue. But when we mix digital signals with small-amplitude analog signals, we can run into problems. I’ll start with a description of how I diagnosed and fixed a noise problem in a simple circuit that I built, and explain how the principles apply to circuit design in general.

WHAT IS ELECTRICAL NOISE?

For the purposes of this article, I’ll define electrical noise as “unwanted electrical interference in some part of a circuit that affects operation of that circuit.” Noise may exist in a circuit, but if it doesn’t interfere with the operation of the circuit, it’s not a problem. If you have 50mV of noise on a 5V digital signal, it’s not likely to be an issue. But 50mV of noise on the input of an ADC (analog-to-digital converter) that is sensing a signal that ranges from 0V to 0.5V may be a real problem, since it’s 10% of the signal amplitude. Noise can come from external sources, such as a cable that picks up the 60Hz power line frequency, or it can be generated in the circuit or system, itself.

Electrical noise can be “radiated” or “conducted.” Radiated noise is noise that is coupled into the circuit by capacitive coupling or inductive coupling. If you have a microphone cord wound up with an extension cord, and you have AC hum in the speakers, that’s radiated noise from inductive coupling. If you have a circuit that uses an unregulated transformer-diode-capacitor power supply, and the circuit is amplifying the AC ripple on the DC line, that’s conducted noise.

In the “old” days, it wasn’t uncommon for the spark plugs in a car to produce interference with the radio, due to the high voltage arc at the spark plug tip. Resistor spark plugs and spark plug wires were used to reduce the interference.

EXAMPLE CIRCUIT

Figure 1 and Figure 2 show a partial schematic of a circuit that I built. Figure 1 is a direct-conversion mixer/oscillator and audio preamp. U2 is a mixer-oscillator. Q1 and Q2 are preamplifiers that filter RF from the mixer output and amplify the audio signal for an external amplifier that can connect to headphones or some other circuit. Q3 buffers the local oscillator (LO) signal for a frequency counter/display board. J1 is used to cable the LO signal to the separate frequency counter board, and also supplies power to the frequency counter board. A 7805 regulator (not shown) provides 5V power from a 9VDC input.

FIGURE 1
Noisy circuit schematic, page 1.
FIGURE 1
Noisy circuit schematic, page 1.
FIGURE 2
Noisy circuit schematic, page 2.
FIGURE 2
Noisy circuit schematic, page 2.

Figure 2 is a frequency counter board that displays the frequency of the LO signal. The frequency counter uses a five-digit LED display, which is multiplexed by MCU U1. The incoming LO signal is amplified by Q1 and Q2, and U2 divides the signal by 16, driving U1 with the divided signal. The MCU uses a 900Hz timer tick, and updates one LED digit on each tick, so it takes 5.5ms for each full sweep of the five LED digits.

Figure 3 shows a block diagram of the entire system, including the sections not shown in schematic form.

FIGURE 3
Noisy circuit block diagram.
FIGURE 3
Noisy circuit block diagram.

Noise Problem: The circuit produced quite a bit of audible noise in the headphones. Figure 4 shows the noise measured with an oscilloscope. You can see that there is about 600mV of peak-to-peak noise. The noise changed as the frequency counter display changed, so I surmised that it was likely caused by the MCU multiplexing the LED display. When the LEDs turn on, there is a current that varies from zero to about 32mA, depending on how many segments are activated. I connected the other channel of the oscilloscope to the display, and the result is shown in Figure 5. The noise clearly corresponds to the LED switching. This is not uncommon with mixed analog and digital circuits; the fast edge times of the digital circuits couple easily into everything – wires, ground traces, and power supplies.

FIGURE 4
Audio noise waveform.
FIGURE 4
Audio noise waveform.
FIGURE 5
Audio noise with LED switching for reference.
FIGURE 5
Audio noise with LED switching for reference.

Tracking It Down: I didn’t know whether the noise was radiated or conducted. Since the mixer and audio preamplifiers are amplifying low-level signals, it could have been either. I had to determine the path the noise was taking to the audio stage. I used the diagnostic steps discussed below.

Transistors Q1 and Q2 (the audio preamplifiers) are powered from the same 5V supply as the mixer and the frequency display board. One quirk of class A transistor amplifiers is that they can amplify noise on the supply line. If there is a noisy signal at the collector of Q1, maybe because the 5V line is noisy, that noise will be amplified by Q2. So, the first thing I did was bridge a 200µF capacitor from 5V to ground. It had no effect, which wasn’t surprising since the 7805 regulator is pretty good at regulating its output voltage.

The next thing I tried was a 10µF capacitor to ground on the base of Q2, shunting all the audio to ground. This killed the noise, which meant that the noise was being injected prior to the preamplifier, and not being picked up in the external amplifier or in the connecting cable.

I used the same 10µF capacitor to shunt the base of Q1 to ground; that also killed the noise. So I knew that the second preamp stage wasn’t picking up radiated noise through its base circuit.

L1 is a shielded inductor, so it wasn’t likely to be picking up the noise. But just to be sure, I grounded U2-5 through a 10µF capacitor, and that also eliminated the noise. Thus, L1 wasn’t functioning as a pickup coil. That meant the noise was coming from the mixer/oscillator circuit.

I grounded the mixer input (U2-1) through a capacitor. This killed the noise if I grounded the input with a clip lead to a ground test point, but not if I grounded it to the foil strip under U2. This told me that the problem was most likely in the ground path. I didn’t use a PCBA for this circuit, because it’s a one-off prototype. I used copper foil strips to connect the grounds. Connector J1 is grounded to the copper foil, but the foil section grounding U2 is between the power supply and J1. I disconnected the ground to J1 and rewired it with a separate wire to the power input point. This solved the problem. Figure 6 shows an oscilloscope trace of the headphone amplifier output after the circuit was modified.

FIGURE 6
Audio noise, fixed with altered grounding.
FIGURE 6
Audio noise, fixed with altered grounding.

Grounding: I wasn’t surprised to find that the noise was introduced through the ground, though I expected it to be in the audio preamp. Ground noise is a fairly common problem in my experience. The mixer has quite a bit of RF conversion gain, so the relatively large currents drawn by the LED displays were shifting the ground of the mixer ever so slightly, enough to induce a signal in the mixer output. Moving the ground on the frequency counter board to the input, so the ground currents weren’t passing through the mixer ground path, kept the mixer output quiet.

When working with low-level analog circuits, keeping digital noise of the grounds can be a challenge. A lot of parts have specific ground pins to make this easier. The TM4C1233H6 MCU, which I’ve used in several articles in Circuit Cellar, has separate ground pins for the analog circuitry. Normally, the grounds are connected to the digital ground, but may use a separate ground plane with a connection at a single point, such as the power input. It is very common for ADCs to have separate ground pins with specific guidelines in the datasheet describing how to connect them – usually with a dedicated ground connection to the power entry point. The Analog Devices ADADC80 is one example.

The analog ground in both of these examples has to be connected to digital ground. The important thing is to connect them so as to keep digital switching noise from flowing through the ground path of the analog part of the device. Sometimes a single ground plane is adequate. Other times, you want to use a separate ground trace or plane for the analog part.

OTHER SELF-INFLICTED NOISE SOURCES

Anything that has a fast switching characteristic, especially if driving an inductor, can be a source of noise. In addition, anything that produces an electrical arc can cause noise. Examples include:

  1. Switching power supplies
  2. Voltage boosters/converters
  3. Relays (when opening/closing)
  4. Brushed DC motors
  5. Fluorescent light drivers
EXTERNAL NOISE SOURCES

Static Discharge: The grounding issue on that receiver circuit was self-inflicted, because I grounded it poorly. But electrical noise also can come from external sources, such as static discharge. Static discharge occurs when an electrical charge builds up on an object (for example, your body, when walking across a carpet in a low-humidity environment) and rapidly discharges to some other object (such as a doorknob). Static discharge is characterized by very fast rise time, resulting in a very high frequency component. We all know that static discharge into a circuit can damage parts. But static discharge outside a circuit can interfere with how it works.

Many years ago I worked for a company that built high-speed, document-processing equipment. We had a problem where a machine would do weird things, that we couldn’t reproduce. So I hopped on a plane and went to the site. The problem turned out to be that some conductive plastic parts had been made wrong, and the paper moving over the parts created a static charge that eventually arced and upset the electronics. We couldn’t reproduce it, because it only occurred in winter in a very cold, dry state (North Dakota in February, if I remember correctly).

To demonstrate this principle, I used an inexpensive negative ion generator to create an electrostatic discharge (ESD). You can get ESD guns that are calibrated for this kind of testing, but I didn’t need that level of precision. Figure 7 shows a schematic of the circuit, which uses an ATMega8515 MCU.

FIGURE 7
Schematic of interference circuit.
FIGURE 7
Schematic of interference circuit.

The MCU INT0 pin is pulled to +5V through resistor R4. There are no other connections to that pin. The pin is configured to generate an interrupt when either a rising or falling edge occurs at the input. The ATMega8515 flashes the yellow LED when an INT0 interrupt occurs. The 12V supply to the ion generator is isolated from the test circuit; the two are not connected in any way, except through the 120V AC wiring. I simulated a static discharge by touching the output of the ion generator to accumulate a charge, and then touching the ground of the 12V supply. If the yellow LED flashed, then the EMI (electromagnetic interference) created by the spark had caused a spurious interrupt. The circuit was about 8” from where I was touching ground to generate the spark.

I started with R4 at 68kΩ to simulate the internal pull-up available on many MCU pins. At 68kΩ, the yellow LED flashed every time I created a spark. At 33kΩ, it was about 5% of the time. At values of 10kΩ and below, the yellow LED didn’t light at all, at least in the number of times I willing to zap myself to test it. I didn’t try to measure the spark voltage, but it felt like what you would generate walking across the carpet on a dry winter day and touching a doorknob. In other words, it wasn’t out of the range of what an electronic device might encounter in someone’s home.

When I moved the circuit 12” away from the discharge point, the LED never flashed, even with a 68kΩK pull-up. So the problem was definitely radiated from the static discharge. If it had been conducted through the power supplies, distance from the spark wouldn’t have mattered.

The point is not that you should always use pull up resistors of 10kΩ or less on MCU inputs; that value is specific to this experiment. The point is that the radiated or conducted energy from a static discharge can be picked up by the MCU without having a direct path into the MCU circuit, itself. Also, the input impedance of a signal going into the MCU can influence how susceptible it is to the radiated EMI from the static discharge. A high-value pull-up resistor on the reset input can result in spurious resets from a nearby static discharge. The discharge doesn’t have to be all that close to create spurious results. How this affects your design would depend on the enclosure, grounding, filtering, and other design characteristics.

In the test circuit, with R4 at 68kΩ, I was able to eliminate the problem with a 1,000pF capacitor from U1-14 to ground. That’s obviously not a solution to every situation, and my goal with this experiment was just to demonstrate the effects of ESD EMI. Something as simple as a capacitor might mitigate susceptibility to static discharge in your design. But just as important, it may be something you want to test, especially if you have any high impedance inputs or need to amplify low-level signals.

Arc Welders: An arc welder can produce an effect similar to static discharge. Some years ago, I had to go to London to look at a problem where some equipment was failing. Op amps in a delicate circuit were being destroyed, requiring frequent replacement of a PCBA.

The problem turned out to be construction of a new building across the street; the arc welder currents were getting into the equipment grounds. The problem would start appearing when the welders started working in the morning, and disappeared when they quit for the day and when they stopped for lunch. I spent a day looking for high current equipment that might explain the symptoms. I found the problem almost by accident, when I and a colleague were eating breakfast and I saw an arc welder flash outside the window. I stopped with the fork halfway to my mouth and said, “I just found the problem.” That was a unique situation, but if chasing an unusual EMI problem, see if the problem correlates to time of day or activation of other equipment in the vicinity.

Audio Rectification: Audio rectification (more generally, RF rectification) is when some component in an amplifier chain rectifies the RF signal from some nearby transmitter, and the rectified signal is heard as audio in the speakers or headphones. Something in the circuit acts as an antenna to pick up the signal, and the device rectifying the signal is acting like the detector in a crystal radio. The demodulated signal is then amplified by the rest of the audio chain. AM stations use a lot of power, so a nearby station is easy to pick up.

Guitar amplifiers sometimes have this problem. Back when CB radio was popular, this problem frequently occurred when someone was using an illegal linear amplifier with a CB radio. I remember hearing about a local church where the PA system would pick up the signal from a nearby CB operator. Although CB radios are less common today, there are a lot more sources of RF interference now, such as cell phones and Wi-Fi transmitters. Modern audio amplifiers are typically IC based, so there are fewer discrete transistors to rectify the RF. But op amps can also rectify RF.

Susceptibility of a circuit to audio rectification depends a lot on the power of the transmitter and the distance from it. One cure is similar to the cure for the static discharge issue—a resistor/capacitor or inductor/capacitor low-pass filter at the audio input.

If your design isn’t driving a speaker, no problem, right? But what if you’re capturing a low-level analog signal, amplifying it, and passing it to an ADC? The same problem can occur, but it will show up as noise (or sometimes a DC offset) in the ADC values. You may be able to filter the signal in the amplification stage.

It’s more of a problem, however, if the desired signal is in the RF range, such as an ADC that is sampling at 100kHz or so. It’s harder to filter out the RF without also filtering the desired signal. In that case, a multistage inductor/capacitor filter with a sharp roll-off may be needed. In general, if your design may be used where RF rectification is a potential issue, you want to filter signals to the minimum frequency needed. If your circuit is amplifying and sampling a small signal at 100Hz, add a filter to keep out anything above, say, 10kHz.

I know of a neighborhood that was built near a powerful AM transmitting tower. Garage door openers don’t work right, smartphones don’t work while charging—just weird stuff. The point is that, though few neighborhoods have an AM transmitter next door, the problem isn’t limited to circuits that amplify audio.

Analog Devices has an application note, AN-671, about reducing RF rectification in op amps. I’ve included a link to it in the references [1].

FILTERING

In many cases in which a signal is being sampled by an ADC, you can filter out noise by averaging a lot of samples. The rate over which signals are averaged has to be no higher than the interfering frequency. So if the circuit has a problem with 60Hz power line noise, you would average a lot of samples over at least 16.6ms (1/60Hz) for one (filtered) ADC sample. It will really limit the sample rate of the system. Averaging a lot of samples essentially creates a low-pass filter in software, and the filter has to filter out the lowest frequency you are trying to reject. However, if you are trying to capture a frequency higher than 60Hz (or whatever you are trying to filter out), then averaging won’t work. It will filter out the frequencies you want.

Figure 8 shows a simple flowchart for software filtering an ADC that is sampled at 1000Hz. A 1000Hz interrupt triggers the ADC read, where the sample is added to a sum of readings and and a count of readings is incremented. When the count reaches 17 (about 60Hz), the sum is divided by the number of samples and the software then processes the averaged sample. The ADC sum and ADC reading count are zeroed in preparation for the next batch of 17 samples. More sophisticated averaging methods can be used, of course.

FIGURE 8
A flowchart for software filtering an ADC that is sampled at 1000Hz.
FIGURE 8
A flowchart for software filtering an ADC that is sampled at 1000Hz.
DESIGN TIPS FOR REDUCING EMI

Here are some design tips to help reduce electromagnetic interference in your designs:

  1. It’s a lot easier to test and prevent EMI issues when the circuit is being developed, than it is to fix it after production starts.
  2. Put a circuit inside a metal enclosure, which is ideally connected to earth ground. If your circuit is powered by a wall-wart power supply, grounding the chassis may be impractical. If a metal chassis can’t be used, perhaps for cost reasons, you can have the case made with a conductive inner plating. To prevent excessive charge buildup between the circuit board and the case, connect the circuit ground to the conductive portion of the case with a 10MΩ resistor. This will bleed off any charge before it arcs.
  3. Use multilayer PCBs with a ground plane. The lower the impedance of the ground plane, the less voltage differential will appear across it. Ground and power planes also provide a measure of shielding for signals run on adjacent layers.
  4. If feasible, use low-pass filters on high-impedance signals.
  5. Use shielded cables with the shields grounded.
  6. Filter signals in software, if possible. Design the software to recover from ESD-generated reset or spurious signals.
  7. Use a separate ground plane or PCB trace for low-voltage analog signals, and connect it to the digital ground plane at a single point – where power enters the board. Avoid having digital signals passing through the analog ground plane.
  8. Decouple power to ground planes with capacitors, including an electrolytic or high-value ceramic. A lot of MCU circuits do not need much capacitance between power and ground to operate properly – but they often do need it to prevent EMI issues.
CONCLUSION

There are far too many ways that a circuit can become noisy to cover in this article. In fact, dozens of books have been devoted to the subject! I’ve tried to capture enough here, however, at least to point you in the right direction for avoiding or fixing some common noise problems. 

REFERENCES
[1] Analog Devices AN-671:
https://www.analog.com/media/en/technical-documentation/application-notes/AN-671.pdf

Code and Supporting Files

PUBLISHED IN CIRCUIT CELLAR MAGAZINE • FEBRUARY 2024 #403 – Get a PDF of the issue

Keep up-to-date with our FREE Weekly Newsletter!

Don't miss out on upcoming issues of Circuit Cellar.


Note: We’ve made the Dec 2022 issue of Circuit Cellar available as a free sample issue. In it, you’ll find a rich variety of the kinds of articles and information that exemplify a typical issue of the current magazine.

— ADVERTISMENT—

—Advertise Here—

Would you like to write for Circuit Cellar? We are always accepting articles/posts from the technical community. Get in touch with us and let's discuss your ideas.

Sponsor this Article
+ posts

Stuart Ball recently retired from a 40+ year career as an electrical engineer and engineering manager.  His most recent position was as a Principal Engineer at Seagate Technologies.

Supporting Companies

Upcoming Events


Copyright © KCK Media Corp.
All Rights Reserved

Copyright © 2026 KCK Media Corp.

Combating Electrical Noise

by Stuart Ball time to read: 14 min