I have ADE7880 and i need to take voltage (rms value), current (rms value), power and power factor from ADE into the ARDUINO MEGA 2560.
I want to talk a little what i try to do. First i have asynchronous motor and i try to analyze this motor about its efficiency. So i need voltage ,current, power ,and power factor of this motor's input circuit and then take into these values on MEGA 2560, after this, i will do some calculations with these values then i will show efficiency of motor momentarily on my pc with using c#.
So are there any codes for arduino to take these values from ADE7880?
I don't have any specific code for the MEGA 2560 and the ADE7880 but I can certainly help with the interface.
The ADE7880 has a SPI port or I2C port which is used to communicate with the part. I would recommend the SPI port because it can run at 2.5MHz. First you will want to set up SPI communication between your MCU and the ADE7880, there should be examples out there for your particular MCU. Test the communication by reading a register that has an initial value to make sure it reads back correctly then test the SPI write. If there are issues, verify the timing with Page 9 of the ADE7880 Data Sheet.
Once communication is established, all features and functionality can be accessed with the SPI read and write operations. This way, the RMS, Power and all other metrology registers can be read back from the ADE7880 in order to get all the information you need.