How to Measure AC Current Using CT Sensors: A Practical Guide

Current Transformer (CT) sensors are widely used for measuring AC current in industrial and embedded systems. They provide electrical isolation and allow high current measurement without direct electrical contact with the conductor.

This guide explains how to properly use CT sensors with microcontrollers for accurate current measurement.

How CT Sensors Work

A CT sensor operates based on electromagnetic induction. When AC current flows through the primary conductor, it induces a proportional current in the secondary coil.

Key points:

  • Output is current (not voltage)
  • Requires burden resistor to convert to voltage
  • Only works with AC signals

image.png

Basic Connection to Microcontroller

A CT sensor cannot be connected directly to an ADC input. The output must be conditioned.

Required components:

  • Burden resistor
  • RC low-pass filter (optional)
  • Voltage divider / biasing (for ADC protection)

Basic flow:

CT Sensor → Burden Resistor → Filter → ADC Input

image.png

Burden Resistor Selection

The burden resistor converts CT output current into measurable voltage.

Formula:

image.png

Where:

image.png

Selection considerations:

  • Output voltage must stay within ADC range (0–3.3V / 5V)
  • Too large → saturation
  • Too small → low resolution

Proper selection is critical for measurement accuracy.

Signal Conditioning and Offset

Because CT output is AC (positive & negative), ADC input must be adjusted.

Common approach:

  • Add DC offset (bias) to shift signal into positive range
  • Use capacitor filtering to stabilize waveform

This ensures safe and stable ADC readings.

image.png

RMS Calculation Implementation

After signal acquisition:

  1. Sample ADC values continuously
  2. Convert to voltage/current
  3. Apply RMS calculation
  4. Display or log results

To improve accuracy:

  • Use multiple sampling cycles
  • Apply filtering
  • Calibrate scaling factor

Common Mistakes

Avoid these common issues:

  • ❌ No burden resistor (dangerous for CT)
  • ❌ Direct connection to ADC
  • ❌ Incorrect resistor value
  • ❌ Ignoring signal offset
  • ❌ Low sampling rate

These mistakes can cause inaccurate readings or hardware damage.

Practical Applications

CT sensors are commonly used in:

  • Energy monitoring systems
  • Industrial load measurement
  • Smart meters
  • Motor current monitoring
  • Data logging systems

Conclusion

CT sensors provide a safe and effective method for measuring AC current in embedded systems. With proper signal conditioning, correct burden resistor selection, and accurate RMS calculation, reliable current measurement can be achieved for both industrial and IoT applications.

#Sensors#
#CTSensor#
#CurrentMeasurement#
#EmbeddedSystem#
#AnalogSignal#
#TestAndMeasurement#

Test & Measurement
CT Sensor vs Hall Effect Sensor for Current Measurement: Which One to Choose?

Current measurement is a fundamental requirement in many embedded and industrial systems. Two commonly used technologies are Current Transformer (CT) sensors and Hall Effect sensors. Each has distinct characteristics, advantages, and limitations depending on the application.

This article compares both sensor types to help engineers select the most suitable solution.

Working Principle

CT Sensor (Current Transformer)

CT sensors operate based on electromagnetic induction. When AC current flows through the primary conductor, it induces a proportional current in the secondary winding.

Key characteristics:

  • Only works with AC signals
  • Provides isolated measurement
  • Requires burden resistor for voltage conversion

Hall Effect Sensor

Hall Effect sensors measure magnetic fields generated by current flow. The sensor outputs a voltage proportional to the magnetic field strength.

Key characteristics:

  • Works with both AC and DC
  • Provides direct voltage output
  • Typically integrated with signal conditioning

image.png

Measurement Capability

Feature CT Sensor Hall Effect Sensor
AC Measurement ✅Yes ✅Yes
DC Measurement ❌No ✅Yes
Isolation ✅High ✅Moderate
Accuracy High (AC) Moderate–High
Cost Low Medium

Signal Conditioning

CT sensors require additional circuitry:

  • Burden resistor
  • Filtering (RC)
  • Voltage scaling

Hall sensors typically provide:

  • Analog voltage output
  • Built-in amplification
  • Minimal external components

image.png

Application Comparison

CT Sensor is suitable for:

  • Industrial AC monitoring
  • Energy metering systems
  • High-current applications
  • Electrical panel measurement

Hall Effect Sensor is suitable for:

  • Battery monitoring systems
  • DC motor control
  • Automotive applications
  • Bidirectional current sensing

image.png

Accuracy and Noise Consideration

  • CT sensors provide stable readings for sinusoidal AC signals
  • Hall sensors may introduce offset drift and noise
  • CT sensors require calibration for burden resistor scaling
  • Hall sensors require offset compensation for zero-current detection

Engineering Insight

Choosing the right sensor depends on system requirements:

  • Use CT sensor for high-current AC measurement with isolation
  • Use Hall Effect sensor for DC or bidirectional current measurement

For mixed systems (AC + DC), Hall Effect sensors are more flexible but come with higher cost and complexity.

Conclusion

Both CT and Hall Effect sensors are effective current measurement solutions, but their selection depends on the application. CT sensors are ideal for AC industrial monitoring, while Hall Effect sensors provide flexibility for both AC and DC systems.

Understanding these differences helps engineers design more accurate and efficient measurement systems.

#Sensors#
#CurrentMeasurement#
#CTSensor#
#HallEffect#
#EmbeddedSystem#
#AnalogSignal#

Test & Measurement
Understanding RMS Calculation in Microcontroller-Based Systems

Accurate measurement of AC signals is essential in many embedded systems, especially in power monitoring and industrial applications. Unlike DC signals, AC current and voltage vary continuously over time, making simple averaging ineffective. To represent the effective value of an AC signal, Root Mean Square (RMS) calculation is used.

This article explains how RMS is implemented in microcontroller-based systems and why it is critical for reliable measurement.

What is RMS?

RMS (Root Mean Square) represents the equivalent DC value of an AC signal that produces the same power.

Mathematically:

image.png

Where:

image.png

This calculation ensures that both positive and negative portions of the waveform contribute correctly to the final value.

image.png

Sampling Strategy in Microcontrollers

To compute RMS, the microcontroller must sample the signal at a sufficient rate.

Key considerations:

  • Sampling frequency should be at least 10× signal frequency
  • Use ADC with stable reference voltage
  • Ensure full waveform capture (multiple cycles preferred)

Typical steps:

  1. Read ADC value
  2. Convert to voltage/current
  3. Square the value
  4. Accumulate samples
  5. Compute mean
  6. Apply square root

image.png

Signal Conditioning Requirement

Raw AC signals cannot be directly connected to microcontroller ADC pins. Signal conditioning is required to:

  • Scale voltage within ADC range (0–3.3V / 5V)
  • Shift signal offset (if needed)
  • Filter noise using RC low-pass filter

For current measurement using CT sensors:

  • Burden resistor converts current to voltage
  • Filtering stabilizes waveform
  • Optional biasing shifts AC waveform into positive range

image.png

Improving Measurement Accuracy

Several techniques can improve RMS accuracy:

  • Use moving average filtering
  • Capture multiple waveform cycles
  • Implement zero-cross detection
  • Calibrate sensor scaling factors

Noise and insufficient sampling can significantly affect RMS results, especially in low-current measurements.

Practical Applications

RMS calculation is widely used in:

  • Energy monitoring systems
  • Industrial current data loggers
  • Smart meters
  • Motor load analysis
  • Power quality monitoring

Accurate RMS measurement enables better decision-making in both control and monitoring systems

RMS calculation is a fundamental technique for measuring AC signals in embedded systems. By combining proper sampling, signal conditioning, and efficient computation, microcontrollers can accurately represent real-world electrical parameters for industrial and IoT applications.

#TestAndMeasurement#
#RMSCalculation#
#EmbeddedSystem#
#SignalProcessing#
#Microcontroller#
#AnalogSignal#

Test & Measurement
Designing a 3-Phase AC Current Data Logger for Industrial Load Monitoring

Three-phase electrical systems are widely used in industrial environments to power heavy loads such as motors, compressors, and production machinery. Monitoring current in each phase is essential to detect imbalance, overload conditions, and potential equipment failure.

In this project, a 3-phase AC current data logger was developed to measure, record, and analyze current consumption in real time using current transformers (CT sensors) and a microcontroller-based data acquisition system.

image.png

System Objective

The primary goals of the system are:

  • Measure RMS current for Phase R, S, and T
  • Detect phase imbalance
  • Log current data for analysis
  • Provide serial or IoT-based monitoring
  • Improve preventive maintenance capability

Hardware Architecture

Main components:

  • 3× Current Transformer (CT) sensors
  • Signal conditioning circuit (burden resistor + filter)
  • Microcontroller (ESP32 / Arduino)
  • LCD / OLED display (optional)
  • Data logging interface (SD card / Serial / IoT)
  • Isolated power supply

Each CT sensor converts AC current into proportional low-voltage AC signal. The signal is then conditioned and read by the microcontroller ADC.

image.png

CT Sensor (R,S,T) → Signal Conditioning → Microcontroller → Display / Logger

RMS Current Calculation

Because AC current is sinusoidal, RMS calculation is required.

Steps:

  1. Sample waveform at high frequency
  2. Square each sample
  3. Compute mean value
  4. Apply square root

Formula:

I_rms = √( (1/N) Σ i² )

image.png

This ensures accurate representation of effective current.

To improve stability:

  • Moving average filter applied
  • Zero-cross detection used (optional)
  • Noise reduction capacitor implemented

Phase Imbalance Detection

Phase imbalance occurs when one phase carries significantly different current from the others.

Imbalance percentage is calculated as:

Imbalance % = (Max Deviation / Average Current) × 100%

If imbalance exceeds threshold (e.g., 10%), warning flag is triggered.

This prevents:

  • Motor overheating
  • Reduced efficiency
  • Premature equipment failure

Data Logging Strategy

Several logging options can be implemented:

  • SD Card data storage
  • Serial monitoring via USB
  • CSV export for Excel analysis

image.png

Sampling interval is configurable (1–10 seconds depending on application).

Industrial Engineering Insight

Unlike simple ammeters, this system provides:

  • Continuous logging
  • Imbalance detection
  • Expandability to power calculation
  • Remote monitoring capability

It can be upgraded to:

  • Power factor monitoring
  • kWh energy calculation
  • Web-based dashboard
  • Alarm system

Conclusion

The 3-Phase AC Current Data Logger demonstrates a practical solution for industrial electrical monitoring. By combining accurate RMS computation, phase imbalance detection, and structured data logging, the system improves reliability and predictive maintenance capability.

Test & Measurement
Avoid PCB Layout Bottlenecks During Peak Projects

8737662723925065728

Project peak season hits, PCB layout suddenly becomes the biggest bottleneck?

❌PCB layout is usually the first thing to slow everything down—tight routing, hidden errors, and endless rework.

✅That’s where JLCPCB PCB Layout Services helps you get back on track.

#pcblayout# #pcbdesign# #hardwaredesign# #signalintegrity# #dfm#

Layout
Stuck on PCB Layout? Let JLCPCB Handle the Time-Consuming Step

8737654968971812864

Already have your schematic, but stuck on PCB layout—the step that looks simple but is actually the most time-consuming?

JLCPCB’s PCB layout service is here to solve that problem for you!

#JLCPCB# #PCB# #pcb layout# #pcb design#

Layout
Voltage converter 12V Into Dual-Rail 24V

I do love making circuits that can power my car amplifier from my car battery. Not just because it is 12V but my amplifier system needs a dual rail power. This is the major problem in transistor based amplifiers because they need a higher voltage with a stable ground reference thus a dual rail power supply concept comes and it hurts me more when I just have a simple 12V battery. Something like +24V and -24V. You need a way to step that up and split it into two symmetric rails. The obvious thing that came to mind is using a transformer that can do it.

8736836901635219456

That's exactly what this module does. It's a pre-built push-pull DC-DC converter board that takes 12V DC in and outputs 24-0-24V (that's +24V and -24V with a centre-tap ground) at over 5A. I picked one up for an amplifier project, and I thought it was worth breaking down how it actually works. The controller IC running the show is the KA3525A, a classic SMPS controller that has been around for decades. I will show here how the push-pull topology works, and how to wire it up safely. For real-world power-on and load testing.

How to Use It:

Connect your 12V DC source to the input terminals. This module does not have a reverse voltage protection feature. Use a source capable of supplying enough current. At 5A output on the 24V rails, the input side draws significantly more 10-12A from the 12V supply due to the step-up ratio plus conversion losses. Use thick wires (at least 14-16 AWG) and a source rated accordingly. A 12V lead battery or a beefy 12V switching adapter works well. Avoid unregulated wall warts.

8736836852062605312

Connect +24V and -24V to your amplifier's V+ and V- supply pins. The 0V centre-tap connects to your amplifier's ground. Some push-pull converters can develop voltage at no-load because the feedback loop. Start with a light load and verify the output voltages with a multimeter before connecting your amplifier.

My Experience:

I got this module to pair with an audio amplifier that needed dual +/-24V rails but I only had a 12V bench supply handy. It delivered on its core promise stable +/-24V rails from 12V input, powering the amplifier, I have checked it using a multimeter. As the output capacitor charges it shows a significantly higher around 25V. But I have also tested it under some load for which the results are given here.

8736836746655686656

Build quality is what you'd expect from a generic module. The PCB is decent, solder joints are acceptable, and the IRFZ44N MOSFETs are genuine. The transformer is the biggest component on the board and it's wired reasonably well. What you need to find is just a good component vendor in case you are building something like this on your own.

8736836804772102144

#power convertor# #voltageConvertor# #PCB#

Power & Engery