Louie NRT Story

[Arduino] CT Sensor 본문

에너지

[Arduino] CT Sensor

hyeok0724.kim@gmail.com 2020. 3. 12. 17:50
반응형

Writed: 12 Mar 2020

 

Index

1. Component

2. DisgramCircuit diagram

3. Install Library

4. Upload Code

5. Monitoring

6. Picture

 

 

1. Component

- CT Sensor YHD SCT-013-000

- Resistor 18 Ohms if supply voltage is 3.3v or 33 Ohms if supply voltage is 5v

- 10k Ohm resistors 2ea

- 10uF Capacitor

 

2. DisgramCircuit diagram

출처: https://learn.openenergymonitor.org/
출처: https://learn.openenergymonitor.org/

3. Install Library

4. Upload Code

//Copy From 
//https://learn.openenergymonitor.org/electricity-monitoring/ct-sensors/how-to-build-an-arduino-energy-monitor-measuring-current-only

#include "EmonLib.h"
// Include Emon Library
EnergyMonitor emon1;
// Create an instance
void setup()
{
  Serial.begin(9600);

  emon1.current(1, 111.1);             // Current: input pin, calibration.
}

void loop()
{
  double Irms = emon1.calcIrms(1480);  // Calculate Irms only
  Serial.print(Irms*230.0);           // Apparent power
  Serial.print(" ");
  Serial.println(Irms);             // Irms
}

 

5. Monitoring

 

6. Picture

Reference:

- https://learn.openenergymonitor.org/

 

Learn | OpenEnergyMonitor

 

learn.openenergymonitor.org

 

반응형
Comments