DEV Community

Salma Aga Shaik
Salma Aga Shaik

Posted on

I Thought Harmonics Were a Grid Problem, Then I Realized They Were Everywhere

Whenever I heard about harmonics, I thought they were only related to large substations, transmission systems, and industrial facilities. I assumed harmonics were something utility engineers dealt with and not something connected to everyday devices.

Phone chargers can create harmonics. Laptop chargers can create harmonics. LED lights can create harmonics. Even a UPS sitting under a desk can create harmonics.

Today, modern power systems use many power electronic devices such as EV chargers, solar inverters, battery energy storage systems (BESS), UPS systems, data centers, and Variable Frequency Drives (VFDs). While these technologies bring many benefits, they can also introduce harmonic distortion.

The more power electronic devices we connect to the grid, the more important harmonic analysis becomes.

In this article, I will explain what harmonics are, what causes them, how they affect power quality, how they can be analyzed using PSCAD, and why they are becoming more important in modern power systems.


Before we talk about harmonics, let's first understand electrical loads, because this is where harmonics usually begin.

What Is an Electrical Load?

An electrical load is any device that uses electrical energy to perform useful work.

For example, think about a typical evening at home. You turn on a ceiling fan, LED light, laptop, air conditioner, and phone charger. All of these devices use electricity, so they are called electrical loads. Examples of electrical loads include motors, heaters, fans, computers, air conditioners, lighting systems, and EV chargers.

However, not all electrical loads use electricity in the same way. Some draw current smoothly, while others draw current in short pulses.

This small difference is actually where the story of harmonics begins.


Linear vs Non-Linear Loads

To understand harmonics, we first need to understand the difference between linear and non-linear loads.

Although both types of loads consume electricity, they draw current from the power system in different ways. This difference has a direct impact on power quality and harmonic generation.

Linear Loads

Linear loads draw current smoothly from the power system. The current waveform follows the voltage waveform and remains close to a pure sine wave.

Examples: Electric heaters, toasters, electric stoves, and incandescent lamps.

These loads have a nearly constant impedance. As voltage increases, current increases proportionally according to Ohm's Law: V = I × R

Because the relationship between voltage and current remains proportional, the current waveform stays sinusoidal. As a result, linear loads generally do not create significant harmonics.

Non-Linear Loads

Non-linear loads draw current in short pulses instead of smoothly. Because of this, the current waveform becomes distorted and harmonics are generated.

Examples: Mobile chargers, laptop chargers, LED lights, UPS systems, solar inverters, EV chargers, and Variable Frequency Drives (VFDs).

These devices contain power electronic components such as rectifiers, diodes, transistors, and switching circuits. Instead of drawing current continuously, they draw current only during certain portions of the voltage waveform.

Because the current no longer follows the voltage proportionally, additional frequencies are introduced into the system. These frequencies are known as harmonics.


The difference between linear and non-linear loads may seem small, but it is actually the main reason harmonics exist in modern power systems.

What Are Harmonics?

Electricity is supplied at a fundamental frequency of 50 Hz in many countries and 60 Hz in the United States. Under normal operating conditions, voltage and current should appear as smooth sine waves.
However, when non-linear loads draw current in short pulses, they introduce additional frequencies into the system. These frequencies are known as harmonics.

Harmonics are unwanted frequencies that are integer multiples of the fundamental frequency.

Harmonic Frequency Formula

fn = n × f1

Where:

  • fn = Harmonic Frequency
  • n = Harmonic Order
  • f1 = Fundamental Frequency

Example for a 50 Hz System

Harmonic Order Frequency
1st 50 Hz
3rd 150 Hz
5th 250 Hz
7th 350 Hz
11th 550 Hz
13th 650 Hz

Think of harmonics like unwanted noise added to your favorite song. The song is still playing, but its quality is reduced. Similarly, harmonics distort the original electrical waveform.

Why Are Harmonics Important?

As more power electronic devices are connected to the grid, harmonic levels continue to increase. When harmonic levels become too high, they can create several problems in a power system. Transformers can overheat, cables can run hotter than normal, capacitor banks can fail, system losses can increase, and equipment life can be reduced. Harmonics can also affect power quality and may cause sensitive equipment to operate incorrectly or malfunction. This is why understanding and controlling harmonics is becoming increasingly important in modern power systems.


My Harmonic Analysis Study in PSCAD

To better understand harmonics, I created a simple harmonic analysis model in PSCAD. The model included a Harmonic Current Injection Source, Three-Phase Voltage Source, Point of Common Coupling (PCC), Multimeter, FFT Analysis Block, and THD Calculator. The objective was simple: inject harmonic currents into the system and observe how they affect the voltage and current waveforms. This helped me analyze harmonic frequencies, study waveform distortion, and understand their impact on power quality.

Using FFT to Identify Harmonics

After running the simulation, the next step was to identify which harmonic frequencies were present in the waveform. For this, I used FFT (Fast Fourier Transform). FFT converts a waveform from the time domain into the frequency domain and shows the frequency components present in the signal. Using FFT, engineers can identify the fundamental frequency along with the 3rd, 5th, 7th, and higher-order harmonics. This makes it easier to understand which frequencies are contributing to waveform distortion.

Measuring Distortion Using THD

Identifying harmonic frequencies is important, but it is also useful to know the overall level of distortion in the waveform. For this, engineers use THD (Total Harmonic Distortion). THD provides a single value that represents the amount of distortion caused by harmonics compared to the fundamental frequency. A lower THD value indicates better power quality, while a higher THD value indicates greater waveform distortion.

THD Formula

THD (%) = √(I₂² + I₃² + I₄² + ... + Iₙ²) / I₁ × 100

Where:

  • I₁ = Fundamental Current
  • I₂, I₃, I₄... = Harmonic Currents

Typical THD Levels

THD Condition
Less than 2% Excellent
Less than 5% Acceptable
Greater than 8% Investigation Required

According to IEEE 519, voltage THD should generally remain below 5%.


How Engineers Reduce Harmonics

Once harmonics are identified, the next step is reducing their impact on the power system. Engineers use different methods depending on the type of load and the level of harmonic distortion.

Method Purpose
Passive Harmonic Filters Remove specific harmonic frequencies
Active Harmonic Filters Cancel harmonic currents in real time
K-Rated Transformers Handle harmonic currents safely
Line Reactors Reduce harmonic distortion
12-Pulse / 18-Pulse Drives Reduce lower-order harmonics

There is no one solution that works for every system. The best method depends on the load, harmonic levels, and system requirements.

How AI Can Help Monitor Harmonics

Traditional harmonic studies help engineers understand how a power system behaves at a particular time. However, real power systems keep changing. Loads switch on and off, EV chargers connect to the grid, and solar power changes throughout the day. Because of this, harmonic levels can also change.

This is where AI and Machine Learning can help.

Modern substations collect large amounts of voltage, current, and THD data. AI can analyze this data in real time and identify unusual harmonic patterns. Some Machine Learning techniques include LSTM, Random Forest, SVM, and Anomaly Detection. These techniques can help with:

  • Real-time harmonic monitoring
  • Harmonic source identification
  • Predictive maintenance
  • THD trend prediction
  • Smart grid monitoring

As power systems become more digital and use more power electronic devices, AI and Machine Learning can help engineers monitor harmonics more effectively.

Key Takeaways

  • Non-linear loads are the primary source of harmonics.
  • Everyday devices such as phone chargers, laptop chargers, LED lights, UPS systems, and EV chargers can generate harmonics.
  • Harmonics are integer multiples of the fundamental frequency.
  • FFT helps identify harmonic frequencies.
  • THD measures waveform distortion.
  • IEEE 519 is the most widely used harmonic standard.
  • PSCAD is a powerful tool for harmonic analysis.
  • AI and Machine Learning may play an important role in future harmonic monitoring systems.

Final Thoughts

Harmonics are not just a utility or industrial problem. Many devices we use every day can generate harmonics, making power quality an increasingly important topic for modern power system engineers.

Have you worked on harmonic analysis using PSCAD, ETAP, PowerFactory, or MATLAB? I'd love to hear about your experience in the comments.

Top comments (0)