[Debraj Deb], who previously built a whole house power monitor, designed this build around a PIC 18F4520 microcontroller ... a code package as well as the schematic (PDF) used during testing.