I'm working on a IoT application about monitoring electrical consumption of a home.
I'm using a ZMPT101B sensor to read the voltage and ASC712 for the current. I know how to read the values from the sensor and scale it. But I need help to do the next:
I think I have to take values from the sensors in a sampling rate (I don't know which to establish), and keep that values on a vector (one for the voltage and other for the current). After that I would calculate the RMS value of both signals, potency, consumption...
Would someone help me?
Thank you so much!