Engineers Garage

  • Electronic Projects & Tutorials
    • Electronic Projects
      • Arduino Projects
      • AVR
      • Raspberry pi
      • ESP8266
      • BeagleBone
      • 8051 Microcontroller
      • ARM
      • PIC Microcontroller
      • STM32
    • Tutorials
      • Audio Electronics
      • Battery Management
      • Brainwave
      • Electric Vehicles
      • EMI/EMC/RFI
      • Hardware Filters
      • IoT tutorials
      • Power Tutorials
      • Python
      • Sensors
      • USB
      • 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 EDAboard.com and Electro-Tech-Online.com forums.



Tell Us What You Think!! Cancel reply

You must be logged in to post a comment.

EE TECH TOOLBOX

“ee
Tech Toolbox: Internet of Things
Explore practical strategies for minimizing attack surfaces, managing memory efficiently, and securing firmware. Download now to ensure your IoT implementations remain secure, efficient, and future-ready.

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

  • Reducing "shoot-through" in offline Full Bridge SMPS?
  • High Side current sensing
  • How to simulate power electronics converter in PSpice?
  • Voltage mode pushpull is a nonsense SMPS?
  • Layout IRN reduction in Comparator

RSS Electro-Tech-Online.com Discussions

  • Back to the old BASIC days
  • Parts required for a personal project
  • PIC KIT 3 not able to program dsPIC
  • Failure of polypropylene motor-run capacitors
  • Siemens large industrial PLC parts

Featured – RPi Python Programming (27 Part)

  • RPi Python Programming 21: The SIM900A AT commands
  • RPi Python Programming 22: Calls & SMS using a SIM900A GSM-GPRS modem
  • RPi Python Programming 23: Interfacing a NEO-6MV2 GPS module with Raspberry Pi
  • RPi Python Programming 24: I2C explained
  • RPi Python Programming 25 – Synchronous serial communication in Raspberry Pi using I2C protocol
  • RPi Python Programming 26 – Interfacing ADXL345 accelerometer sensor with Raspberry Pi

Recent Articles

  • What is AWS IoT Core and when should you use it?
  • AC-DC power supply extends voltage range to 800 V DC
  • Infineon’s inductive sensor integrates coil system driver, signal conditioning circuits and DSP
  • Arm Cortex-M23 MCU delivers 87.5 µA/MHz active mode
  • STMicroelectronics releases automotive amplifiers with in-play open-load detection

EE ENGINEERING TRAINING DAYS

engineering

Submit a Guest Post

submit a guest post
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
      • Audio Electronics
      • Battery Management
      • Brainwave
      • Electric Vehicles
      • EMI/EMC/RFI
      • Hardware Filters
      • IoT tutorials
      • Power Tutorials
      • Python
      • Sensors
      • USB
      • 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