I have an application that is measuring current, and although i did not test any of the results i got, they seem correct. At the moment i am using this to measure current of water heater.
First question: If i want to power consumption, is it enough to multiply the value i get from sensor with the voltage(in my case 230V)?
Second question: If i were to measure some non sine signal, would the sensor still show correct values and what would the output signal of the sensor be? In case that the sensor would still show correct values, how can i get power consumption in this case?
Depends how` accurate power measurements you need, if 5-10% error is o'k for you, than you don't have to measure voltage the same way as you do current - continuously, and simply multiply by constant.
We haven't seen your code so far, if you calculate an amperage as RMS, than yes, it's should be correct for any input waveform, with one remark that you have to sample according to Nyquist
Yes i do calculate amperage as RMS. So that means i can accurately measure all signals including for example pwm signals? And in this case is the output signal any different?
Basically, the ACS712 current sensor is current to voltage converter. Whatever waveform current passing on high side has, acs712 simply replicate that waveform as voltage at its output pin on low side. Data sheet says max bandwidth is 80 kHz, quite high for normal AC grid, but to have current measurements accurate, you have to sample at least up to 20-th harmonic, with 50 Hz grid frequency, it's no less than 2 kHz sampling rate.