Hi there?
Please understand that I'm new to power electronics. I need assistance designing a single-phase smart energy meter that can measure several current channels but just one voltage channel. I would have to measure a minimum of four current loads and a maximum of eighteen current loads for the application I wish to use it for. Additionally, I would like to measure the apparent and real energy as well as the powers. I would love to use the Arduino IDE and C/C++ programming languages to program these Arduino-based devices or ESP32. making use of the SPI or I2C communication protocols.

I saw the ADE7953 Energy IC circuit diagram using I2C on GitHub. And it also came with a lib for the Arduino programming. The only problem is, it is not a valid library and I have to figure out how to make it work. And above all, it can only measure 2 current channels. And there isn't really a way to verify if this schematic is correct or not.
What I want to do is to be able to use any of the such IC or some other one like ADE7878 or ADE7953. to measure the energy using an MCU like Atmega328P or any other Arduino based board. Or even the ESP32 board using either I2C or SPI communication protocol. I would have used a PZEM module but I would be looking at huge cost as I increment the number of modules, and also, the problem of communication with the MCU using Serial Communication gives me ONLY A MAXIMUM OF 4 PZEM MODULES on 2560 and ESP32 boards. But most importantly, I am trying to reduce cost.
Please has anybody used this power IC to achieve similar goals in the past? If yes, please share.
Also, if you didn't use this particular IC but did the same thing or close, please kindly share.
If I could get an Energy IC that could be cascaded as the demand of the load increases and also have a head start on the Arduino programming. I could be forever grateful.
Regards,
Anc II