Post Go back to editing

HOW TO READ AND CALIBRATE VOLTAGE, CURRENT, POWER, ENERGY , FREQUENCY FOR ADE7758 USING ARDUINO

Anonymous
Anonymous

    I STARTED A PROJECT ON ENERGY METER USING ADE7758 WITH ARDUINO MEGA. I HAVE BEEN ABLE TO ESTABLISH SPI COMMUNICATION  BEWTEEN ARDUINO AND ADE7758 AS I WAS ABLE TO READ SOME DEFAULT VALUE 0X1C FROM  CompMode AND WAS ABLE TO WRITE AND READ BACK FROM SOME REGISTER  LIKE LcycMode AND MASK REGISTER.

    I TRY TO READ VOLTAGE FROM PHASE A BY FOLLOW THE PROCEDURE IN THE DATASHEET PAGE 55. BUT I WAS GET BACK NEGATIVE VALUES..

    I JUST INPUT AN AC TO PHASE CHANNEL WITHOUT CURRENT SENSOR YET. BUT I THINK I SHOULD BE ABLE TO READ THE VOLATGE..

     I AM USING  A LIBRARY FOUND AS 

    https://github.com/engkan2kit/ADE7758 WITH SOME MODIFICATION.
    PLEASE KINDLY HELP OUT 
    THANKS
    • Hi there,

      Page 55 of the datasheet is elaborating about the RMS calibration. Are you trying to read VRMS or the Waveform values?

      If you are reading VRMS, you may try to increase the number of N samples but there is no issue on havinf VRMS negative during calibration.

      However if you try to read waveform, can you check the value oof the WAVSEL bit and the WAVMODE register?

      I look forward to your reply.

      Best regards,

      Nanda