Energy Meter SCT - Surge by Surge86

Energy Meter + Temp + Humidty + Battery Voltage Reporting
Based on Patricks code (http://forum.mysensors.org/topic/2700/sct-013-030-energy-meter). Rewrote and cleaned up original code to allow for Sleeping between power readings every minute. Uses approximately 80% less power this way. (22ma down to 4.6ma on pro mini 3.3v) Adjusted sleep duration to cater for node computation time. Time drift reduced to 2ms/minute. Added battery voltage reporting (does not require any additional hardware, only VCC library from https://github.com/Yveaux/arduino_vcc To do: Figure out how to save KWh readings between resets as mentioned by Patrick

Embed This Sketch

Use the following HTML code to embed the sketch code above in your blog or website.

<iframe style="height: 510px; width: 100%; margin: 10px 0 10px;" allowTransparency="true" src="https://codebender.cc/embed/sketch:276398" frameborder="0"></iframe>

Embed The Serial Monitor

You can also embed the Serial Monitor section! Just use this HTML code.

<iframe style="height: 510px; width: 100%; margin: 10px 0 10px;" allowTransparency="true" src="https://codebender.cc/embed/serialmonitor" frameborder="0"></iframe>