openenergymonitor/EmonLib — pull request #8 by icboredman (2014-01-04 22:37:28+00:00)
Title: added 3-phase buffer-delay algorithm, when CT sensors connected to different line phases.

- added 3-phase buffer-delay algorithm, when CT sensors connected to different line phases.
- also includes support for 12-bit ADC resolution on Arduino Due.

Since it makes sense to keep main EmonLib library single phase, these files were renamed to "EmonLib_3PH.cpp" and "EmonLib_3PH.h"

Includes example sketch "ArduinoDue_3phase.ino" showing how to use Due as EmonTx box:
* There are 10 CT inputs connected to various household lines (after circuit breakers) and 1 AC-AC voltage adapter connected to one of these lines, used to measure voltage.
* 10 lines are connected to different phases, therefore, an extra parameter was added to functions voltage() and voltageTX() indicating a particular phase number.
* The AC-AC line voltage adapter must be connected to phase 1.