Hello, I am to work on the design and testing of a net meter for a resident roof top solar generation. The device (net meter) is to give the net consumption power of a certain household. It indicates the difference between the excess generation from the solar system transferred to a grid(a local or micro grid) and the electricity usage from the grid when generation is lower than load consumption. Can anyone kindly help with guide lines and circuit diagrams on how i can go about it?