Engineers Garage

  • Electronic Projects & Tutorials
    • Electronic Projects
      • Arduino Projects
      • AVR
      • Raspberry pi
      • ESP8266
      • BeagleBone
      • 8051 Microcontroller
      • ARM
      • PIC Microcontroller
      • STM32
    • Tutorials
      • Sensor Series
      • 3D Printing
      • AI
      • ARDUINO Compatible Coding
      • Audio Electronics
      • Battery Management
      • Beginners Electronics Series
      • Brainwave
      • Digital electronics (DE)
      • Electric Vehicles
      • EMI/EMC/RFI
      • EVs
      • Hardware Filters
      • IoT tutorials
      • LoRa/LoRaWAN
      • Power Tutorials
      • Protocol
      • Python
      • RPI Python Programming
      • Sensors
      • USB
      • Thermal management
      • Verilog
      • VHDL
    • Circuit Design
    • Project Videos
    • Components
  • Articles
    • Tech Articles
    • Insight
    • Invention Stories
    • How to
    • What Is
  • News
    • Electronic Product News
    • Business News
    • Company/Start-up News
    • DIY Reviews
    • Guest Post
  • Forums
    • EDABoard.com
    • Electro-Tech-Online
    • EG Forum Archive
  • DigiKey Store
    • Cables, Wires
    • Connectors, Interconnect
    • Discrete
    • Electromechanical
    • Embedded Computers
    • Enclosures, Hardware, Office
    • Integrated Circuits (ICs)
    • Isolators
    • LED/Optoelectronics
    • Passive
    • Power, Circuit Protection
    • Programmers
    • RF, Wireless
    • Semiconductors
    • Sensors, Transducers
    • Test Products
    • Tools
  • Learn
    • eBooks/Tech Tips
    • Design Guides
    • Learning Center
    • Tech Toolboxes
    • Webinars & Digital Events
  • Resources
    • Digital Issues
    • EE Training Days
    • LEAP Awards
    • Podcasts
    • Webinars / Digital Events
    • White Papers
    • Engineering Diversity & Inclusion
    • DesignFast
  • Guest Post Guidelines
  • Advertise
  • Subscribe

Non-invasive current sensor with Arduino

By Usman ali Butt December 10, 2024

The idea of noninvasive current measurement is not new. Commercial devices are available which can measure current without any physical contact. However, the topic was not popular among the DIY community because of the complexity and nonexistence of the compact non-invasive sensors, which could be studied at low power. Luckily, we have small and reliable current transformers that can be used to measure alternating current without physical contact.

Current transformers (CT) have the same physical parts as a regular transformer. They are split-core means primary and secondary coils can be separated. They differ from regular transformers on working principle. The primary coil induces a current in the secondary, proportional to current passing intensity through the primary (Electromagnetic induction).

A CT sensor is shown above. Split cores can be seen with a permanent magnet. We open the cores and place a live current-carrying wire in between and then close the cores. Note that we only place anode or cathode in between the cores. Inserting both the wires at once will yield no or misleading results. Why?

Current flows from anode to cathode. If we place both the wires simultaneously in the core, then the anode will cancel the cathode electrical field due to opposite polarity. Hence one wire is needed to measure the current. Recall when measuring current physically with a digital multimeter (DMM), we cut the wire and place the DMM probes in series. Same we did in the CT case, just the physical contact is not made.

Current transformers output current or voltage, which is directly proportional to the input current. Output current is an RMS (root mean square), and voltage is in AC form. We need to convert both the quantities in DC to measure them using Arduino or any other microcontroller.

Let’s begin

I decided to use Arduino and a predefined library named “Emon” energy monitor to measure the current flowing through a live wire. To make CT output compatible with Arduino, we must transform it into digital form. We have few options here.

  • Rectify the output signal using a diode bridge and then amplify it. Amplify? Because the output of CT is 0-1v or 0-50mA depending on the type.
  • Using an offset voltage to raise the CT output to a level acceptable by Arduino. Offset is raised using a voltage divider and a solo capacitor.

The “Emon” library implements the second method. So, we will use that. How to offset is raised, and the load resistance is explained in the picture below.

Source: https://learn.openenergymonitor.org/electricity-monitoring/ct-sensors/interface-with-arduino

Current transformer is rated at input 0-100A output 0-50mA. Focus on the midpoint. The sensor output is added to a midpoint.

At max VCT=IR where I=70mA & R=33ohm VCT= 2.31 volts. VMidPoint= 2.5 +2.31 = 4.81-volt max.

The voltage output current transformer burden resistor is not required. It already has an internal resistor rest of the circuit.

Project code:

First, download the Emon library and install it for Arduino ide. Create a new project, include the EmonLib header file, and create an instance. In the setup function, I started the serial monitor at 9600 bps. The next statement emon1.current(1,60.6), is declaring the analog-1 pin of Arduino UNO as input (CT output is connected to A1 of Arduino UNO) 60.6 is calibration constant (will discuss later).

In the loop function emon1.calcIrms(1484) statement is calculating the current. In each input power cycle (50Hz), 106 instances of current are read by the Emon library. For better precision, I want to grab current instances for 14 cycles which are equal to 1484. Finally, the Irms variable is used to store the result. Once current is known, apparent power can be calculated by multiplying current with 230 mains voltage.

CT and burden resistance are not accurate; there is some margin of error. Emon specified the formula and default calibration values for known resistances and CT to cover up this margin of error. In our case, we used 33-ohm burden resistance, CT max input is 1000A and output 50mA. Calibrated value can be calculated using the formula below.

Project circuit diagram:

Build the circuit and upload the code in Arduino. It connects the CT to live wire, and open Arduino serial monitor current values will start displaying on Arduino serial monitor.

Let’s DIY it: Where to purchase parts?

DigiKey: Current transformer
DigiKey: Arduino un
DigiKey: Audio Jac
DigiKey: Resistor
DigiKey: Capacitor

You may also like:


  • Transformerless Power Supply

Filed Under: Arduino Projects, Featured Contributions, Microcontroller Projects

 

Next Article

← Previous Article
Next Article →

Questions related to this article?
👉Ask and discuss on Electro-Tech-Online.com and EDAboard.com forums.



Tell Us What You Think!! Cancel reply

You must be logged in to post a comment.

Submit a Guest Post

submit a guest post

EE TECH TOOLBOX

“ee
Tech Toolbox: Embedded Security
This Tech ToolBox highlights the innovations driving embedded systems, as well as the strategies needed to build resilient, future-ready technologies.

EE Learning Center

EE Learning Center
“engineers
EXPAND YOUR KNOWLEDGE AND STAY CONNECTED
Get the latest info on technologies, tools and strategies for EE professionals.

HAVE A QUESTION?

Have a technical question about an article or other engineering questions? Check out our engineering forums EDABoard.com and Electro-Tech-Online.com where you can get those questions asked and answered by your peers!


RSS EDABOARD.com Discussions

RSS Electro-Tech-Online.com Discussions

  • Chinese Tarrifs – 104%!?!
  • Good and simple way to power pull up logic rail and prevent backfeed?
  • What can be the reason behind this tragedy?
  • What’s the Most Useful Electronics Project You’ve Ever Built (and Still Use Today)?
  • Help to identify Hamlet product

Featured – Real Time Hardware Filter Design

  • Practical implementation of bandpass and band reject filters
  • Practical application of hardware filters with real-life examples
  • A filter design example
  • Types of filter responses
  • What are the two types of hardware filters?
  • What are hardware filters and their types?

Recent Articles

  • EMIS releases passive filter for reactive power compensation and distortion control
  • TDK releases software for processes inertial and satellite data
  • Tark Thermal Solutions announces thermoelectric modules operating at 0.65 mm thickness
  • Advanced Energy introduces quarter-brick modules for AI server power stages
  • TE Connectivity’s launches portfolio bridging low-voltage and high-voltage connector ranges

EE ENGINEERING TRAINING DAYS

engineering
Engineers Garage
  • Analog IC TIps
  • Connector Tips
  • Battery Power Tips
  • DesignFast
  • EDABoard Forums
  • EE World Online
  • Electro-Tech-Online Forums
  • EV Engineering
  • Microcontroller Tips
  • Power Electronic Tips
  • Sensor Tips
  • Test and Measurement Tips
  • 5G Technology World
  • Subscribe to our newsletter
  • About Us
  • Contact Us
  • Advertise

Copyright © 2025 WTWH Media LLC. All Rights Reserved. The material on this site may not be reproduced, distributed, transmitted, cached or otherwise used, except with the prior written permission of WTWH Media
Privacy Policy

Search Engineers Garage

  • Electronic Projects & Tutorials
    • Electronic Projects
      • Arduino Projects
      • AVR
      • Raspberry pi
      • ESP8266
      • BeagleBone
      • 8051 Microcontroller
      • ARM
      • PIC Microcontroller
      • STM32
    • Tutorials
      • Sensor Series
      • 3D Printing
      • AI
      • ARDUINO Compatible Coding
      • Audio Electronics
      • Battery Management
      • Beginners Electronics Series
      • Brainwave
      • Digital electronics (DE)
      • Electric Vehicles
      • EMI/EMC/RFI
      • EVs
      • Hardware Filters
      • IoT tutorials
      • LoRa/LoRaWAN
      • Power Tutorials
      • Protocol
      • Python
      • RPI Python Programming
      • Sensors
      • USB
      • Thermal management
      • Verilog
      • VHDL
    • Circuit Design
    • Project Videos
    • Components
  • Articles
    • Tech Articles
    • Insight
    • Invention Stories
    • How to
    • What Is
  • News
    • Electronic Product News
    • Business News
    • Company/Start-up News
    • DIY Reviews
    • Guest Post
  • Forums
    • EDABoard.com
    • Electro-Tech-Online
    • EG Forum Archive
  • DigiKey Store
    • Cables, Wires
    • Connectors, Interconnect
    • Discrete
    • Electromechanical
    • Embedded Computers
    • Enclosures, Hardware, Office
    • Integrated Circuits (ICs)
    • Isolators
    • LED/Optoelectronics
    • Passive
    • Power, Circuit Protection
    • Programmers
    • RF, Wireless
    • Semiconductors
    • Sensors, Transducers
    • Test Products
    • Tools
  • Learn
    • eBooks/Tech Tips
    • Design Guides
    • Learning Center
    • Tech Toolboxes
    • Webinars & Digital Events
  • Resources
    • Digital Issues
    • EE Training Days
    • LEAP Awards
    • Podcasts
    • Webinars / Digital Events
    • White Papers
    • Engineering Diversity & Inclusion
    • DesignFast
  • Guest Post Guidelines
  • Advertise
  • Subscribe