This folder contains material related to the interface between the electrical panel and the Arduino hardware interface. See main README for a general overview and below for additional details.
OpenEnergyMonitor in general was a great resource for this project and in particular the information found in How to build an Arduino energy monitor - measuring mains voltage and current was used to guide the design of this interface and the analog signal conditioning circuitry.
The current sensing circuitry includes a variable gain stage that is controlled by an automatic gain loop running on the Arduino. This improves signal-to-noise through the analog-to-digital conversion and improves downstream machine learning and training performance.
This subsystem was calibrated with an external power meter, yielding parameters which are used in the Arduino code that extracts the metrics used in downstream processing.