Hello! Welcome to the next lesson in our module on Designing for Industrial Reliability.
In the last lesson, we tackled internal software failures by implementing a Watchdog Timer. This ensures that if your Arduino's code ever freezes, the system can automatically recover. Now, we'll turn our attention to external threats. Industrial environments are full of electrical "noise" from motors, variable frequency drives (VFDs), relays, and switch-mode power supplies. This noise can travel along power lines and cause your microcontroller to glitch, reset, or even suffer permanent damage.
This lesson will address the learning outcome: Select and implement input power filtering to protect against electrical noise. We will explore the types of electrical noise you'll encounter, the components used to filter it, and how to combine them into an effective filter circuit to create a clean, stable power source for your Arduino.
1. Understanding Electrical Noise in an Industrial Context
Electrical noise is any unwanted voltage or current superimposed on your main power or signal lines. In a factory setting, starting a large motor or switching a high-power relay can induce significant voltage fluctuations and high-frequency interference on the power grid.
Your Arduino, running on a clean 5V, is highly susceptible to these disturbances. If this noise reaches the microcontroller's power pin, it can corrupt data, disrupt program execution, or cause random resets—bypassing even the most robust code with a Watchdog Timer.
{
"type": "reading",
"title": "Reducing Noise in Sensitive Electronic Circuits",
"id": "[LINK](https://uk.rs-online.com/web/content/discovery/ideas-and-advice/reducing-noise-in-sensitive-electronic-circuits)",
"url": "https://uk.rs-online.com/web/content/discovery/ideas-and-advice/reducing-noise-in-sensitive-electronic-circuits",
"relevant_section_indices": [
0
],
"par_intro": "To start, let's get a clear definition of the common sources of electrical noise. The article 'Reducing Noise in Sensitive Electronic Circuits' from RS provides a concise overview.",
"par_directions": "Please read the first section, 'The Problem: Identifying and Understanding Electronic Noise'. Focus on the descriptions of capacitive coupling, inductive coupling, and conduction, as these are the primary ways noise enters your power lines in an industrial setting.",
"estimated_time": "5 minutes"
}
The power supply in an industrial plant can be as "messy" as the power system in a vehicle. The following video uses an automotive example, but the principles of dealing with a fluctuating and noisy power source are identical.
{
"type": "video",
"title": "A Cheap, Easy 5V Automotive Power Supply for an Arduino, Raspberry Pi, STM32, Meadow, etc.",
"id": "[LINK](https://www.youtube.com/watch?v=LHVjeJPCCAk)",
"video_id": "LHVjeJPCCAk",
"relevant_section_indices": [
0
],
"par_intro": "This video, 'A Cheap, Easy 5V Automotive Power Supply', perfectly illustrates why you can't just connect a microcontroller directly to a raw power source.",
"par_directions": "Watch from 00:45 to 01:37. The speaker explains the voltage fluctuations and noise present in a standard 12V system, setting the stage for why filtering and regulation are essential."
}
2. The Two Types of Conducted Noise: Differential vs. Common-Mode
To select the right filter, you first need to understand that conducted noise travels in two distinct ways. Your background in electrical engineering will be helpful here.
- Differential-Mode (DM) Noise: This is noise current that flows in opposite directions on the power and return lines. It's a current loop between the two supply wires.
- Common-Mode (CM) Noise: This is noise current that flows in the same direction on both the power and return lines. The return path is typically through a ground connection (like the metal chassis of a machine), which acts as an antenna.
{
"type": "image",
"title": "Switch-Mode Power Supply with Noise Current Filtering",
"id": "[LINK](https://www.testandmeasurementtips.com/wp-content/uploads/2024/02/Wyatt_DM-CM_Fig01_cap-filter.png)",
"url": "https://www.testandmeasurementtips.com/wp-content/uploads/2024/02/Wyatt_DM-CM_Fig01_cap-filter.png",
"caption": "This schematic clearly illustrates the paths of Differential-Mode (IDM, blue) and Common-Mode (ICM, red) currents. Notice the different components used to target each type of noise: 'X' capacitors for DM and 'Y' capacitors with a common-mode choke for CM."
}
Because these noise types have different paths, they require different filtering strategies. Most commercial EMI filters are designed to tackle both.
3. The Filter Toolkit: Inductors and Capacitors
At its core, a power filter is a frequency-selective circuit. Its goal is to allow the DC power to pass through while blocking or shunting away the high-frequency AC noise. The two primary components for this are inductors and capacitors.
Inductors (Ferrite Beads)
An inductor's impedance increases with frequency (). This makes it act like an open circuit to high-frequency noise while offering very little resistance to DC. In power filtering, a special type of inductor called a ferrite bead is often used.
{
"type": "video",
"title": "Shall We Use a Ferrite Bead in Power Rail or Not? | Explained by Eric Bogatin",
"id": "[LINK](https://www.youtube.com/watch?v=HaLMjVkKYMw)",
"video_id": "HaLMjVkKYMw",
"relevant_section_indices": [
3
],
"par_intro": "The video 'Shall We Use a Ferrite Bead in Power Rail or Not?' features signal integrity expert Eric Bogatin giving an excellent technical explanation of what a ferrite bead is and where it's best used.",
"par_directions": "Watch the segment from 09:14 to 12:33. Pay close attention to the distinction he makes between a 'power inductor' (low resistance, for high current) and a 'ferrite' (high resistance, for low-current filtering). This explains why ferrites are perfect for protecting a microcontroller's power input."
}
Capacitors
A capacitor's impedance decreases with frequency (). This makes it act like a short circuit to high-frequency noise, shunting it to ground, while blocking DC.
- X-Capacitors: Placed between the power and return lines to filter differential-mode noise.
- Y-Capacitors: Placed between each line and chassis/earth ground to filter common-mode noise.
4. Designing the Filter: The LC Low-Pass Topology
Simply placing an inductor or a capacitor alone can sometimes cause problems like resonance (ringing). The most effective and common approach for power input filtering is to combine them into an LC low-pass filter.
The inductor (L) is placed in series with the power line to block noise, and the capacitor (C) is placed in parallel (from the power line to ground) to shunt away any noise that gets through.
The following video segments explain this concept perfectly. First, the problem of "pollution noise" from other devices on the power rail is introduced, and then the LC filter is presented as the solution.
{
"type": "video",
"title": "Shall We Use a Ferrite Bead in Power Rail or Not? | Explained by Eric Bogatin",
"id": "[LINK](https://www.youtube.com/watch?v=HaLMjVkKYMw)",
"video_id": "HaLMjVkKYMw",
"relevant_section_indices": [
4,
5,
7
],
"par_intro": "Let's return to Eric Bogatin's video. He will now frame the problem that an LC filter solves and show its dramatic effectiveness.",
"par_directions": "Please watch these three segments in order:\n1. **The Problem (12:33 - 17:04):** Understand the concept of 'pollution noise' on a power rail and why sensitive analog or mixed-signal devices (like a microcontroller with an ADC) are vulnerable.\n2. **The Solution (17:04 - 24:25):** This is the core of the lesson. Absorb the explanation of how an LC filter is designed to create a clean power island for a sensitive device. He specifically addresses why adding an inductor is appropriate in this low-current context.\n3. **The Proof (36:06 - 39:31):** Watch the oscilloscope demo. He shows three scenarios: a direct connection (huge noise), an inductor-only filter (bad ringing), and a proper LC filter (clean signal). This visual evidence is undeniable."
}
Test your understanding!
In the video, what was the negative consequence of using only an inductor (ferrite) without a capacitor to form a proper LC filter? Why did this happen?
Show answer
Using only an inductor resulted in significant high-frequency ringing on the power rail. This happened because the inductor formed a resonant LC tank circuit with the small, unavoidable parasitic capacitance of the IC and the board traces. Without a dedicated, larger capacitor with some series resistance (ESR) to "damp" the circuit, any sharp voltage change (like the noise spike) would cause the circuit to oscillate or "ring" at its resonant frequency, potentially making the noise problem worse.
5. Practical Implementation for an Arduino
Now, let's bring this to a practical level for your Arduino projects. A common and robust filter topology is the Pi (π) filter, which is a C-L-C configuration. It provides two stages of filtering.
Here is a basic schematic for adding a Pi filter to the Vin pin of an Arduino when powering it from an external noisy DC source (e.g., a 12V or 24V supply from a factory).
- Input Capacitor (C1): An electrolytic capacitor (e.g., 10-100 µF) placed right at the input. It acts as a bulk reservoir and helps damp low-frequency ripple.
- Inductor (L1): A ferrite bead placed in series. Choose one rated for the current your Arduino and its peripherals will draw (usually under 1A is fine) and that is effective in the MHz range.
- Output Capacitor (C2): A ceramic capacitor (e.g., 0.1-1 µF) placed as close as possible to the Arduino's
Vinpin. This shunts away high-frequency noise right before it enters the Arduino's onboard voltage regulator.
The video on modifying a power supply module shows the physical placement of these components.
{
"type": "video",
"title": "A Cheap, Easy 5V Automotive Power Supply for an Arduino, Raspberry Pi, STM32, Meadow, etc.",
"id": "[LINK](https://www.youtube.com/watch?v=LHVjeJPCCAk)",
"video_id": "LHVjeJPCCAk",
"relevant_section_indices": [
4,
5
],
"par_intro": "Let's see these components being added in a practical context. This video demonstrates adding ferrite beads to an input power line.",
"par_directions": "Watch the segment on adding ferrite beads from 08:10 to 08:58. Then, watch the physical assembly from 10:56 to 12:40 to see how the components are soldered onto the board. This gives you a tangible sense of how a filter is constructed."
}
While building your own filter is excellent for learning, many industrial applications use pre-certified, encapsulated power supply modules that have all of this filtering and protection built-in.
{
"type": "image",
"title": "Industrial Power Supply and Protection Board",
"id": "[LINK](https://europe1.discourse-cdn.com/arduino/optimized/4X/f/b/3/fb3848620254697090373f6f9996cccb1175f7b9_2_768x1024.jpeg)",
"url": "https://europe1.discourse-cdn.com/arduino/optimized/4X/f/b/3/fb3848620254697090373f6f9996cccb1175f7b9_2_768x1024.jpeg",
"caption": "This custom PCB for an industrial project uses two Mean Well IRM series power modules. These are industrial-grade, board-mount AC-DC converters that have built-in EMI filtering and protection. The yellow disc component is likely a varistor for surge protection, a topic for our next lesson."
}
Conclusion
You have now learned how to shield your Arduino from one of the most common threats in an industrial environment: electrical noise on the power supply. By understanding the nature of noise and applying the principles of LC filtering, you can ensure your microcontroller has the clean, stable power it needs to operate reliably.
Key Takeaways:
- Industrial environments are electrically noisy, and this noise can disrupt microcontroller operation.
- Conducted noise comes in two forms: Differential-Mode (between power lines) and Common-Mode (along power lines, returning through ground).
- LC low-pass filters are the primary tool for cleaning power inputs.
- Ferrite beads (Inductors) are placed in series to block high-frequency noise.
- Capacitors are placed in parallel to shunt high-frequency noise to ground.
- A Pi (C-L-C) filter is a robust and common topology for power inputs.
Preview of the Next Lesson:
We've filtered out high-frequency noise. But what about large, destructive voltage spikes from lightning or inductive kicks? Or what if someone accidentally connects the power wires backward? In our next lesson, we will complete our robust power input design by learning how to select and implement circuit protection (e.g., TVS diodes, fuses) for overvoltage and overcurrent events.
Can't find a good explanation? Sign up and we'll make it for you