I am working on project where I need to measure AC current value. I am using a CT for this purpose. I would like to calculate the RMS value of the current.
I think this situation has arose in many of your lives. I would like to ask for the code or pseudo code for finding the RMS value of current.
I am using the internal ADC of the ATmega32 which has a resolution of 10 bits. Even if you can't give me the code, a general pseudo code or algorithmic explanation would be of great help.
Note: The frequency of ac is 50Hz.