Hi.... I am working on a Smart Energy Meter. I have measured the value using arduino Mega. For Current Measurement i am using ACS712 module and for voltage measurement i am using a Lm358 op-amp. I displayed value on Serial monitor of Arduino IDE. Now i want to fine frequency can anyone guide me how measure frequency from same circuit but only changing code? please help me. i can upload circuit diagram if anyone need.