Tuesday, November 29, 2016

Arduino - Cheap/Poor Man's CT Sensor

By leorick  |  11/29/2016 11:38:00 PM No comments

There are several references on how to do this such as;

For my case, I would like to try it first before start buying a CT sensor.
So I come out with below idea, using toroid inductor/coil for testing.

Live wire 240VAC going through the toroid.
Please take precautionary steps with this.

Arduino and sensor board setup

#include "EmonLib.h"                   // Include Emon Library
EnergyMonitor emon1;                   // Create an instance

void setup()
    emon1.current(1, 500);             // Current: input pin, calibration.

void loop()
    double Irms = emon1.calcIrms(2000);  // Calculate Irms only
    Serial.println(Irms);          // Irms

Arduino sketch - quick copy/paste code

Hook it up and testing. It will not be accurate, just to get an idea on how it works.


Recent Articles

Distributed By My Blogger Themes | Created By BloggerTheme9 | © 2014 DIY Electronics