Skip to content

Instantly share code, notes, and snippets.



Last active Jul 31, 2019
What would you like to do?
ดาวโหลด Library
#include "EmonLib.h"
// Include Emon Library
EnergyMonitor emon1;
// Create an instance
void setup()
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.