hi, im new here..
so i've been trying to make an energy meter that will display the average power (which is also the real power,correct?) and energy in Watt-hour. im using hall effect sensor for current and 240-9 VAC transformer for voltage. both are connected to voltage divider to give an output proportional to the AC value. i intended to display average power but until now i can only measure the instantaneous power which are the product of the instantaneous voltage and current. how can i get the average value? i thought it is just simple matter of taking n-value of reading then divide it by n, but it doesnt work.
also, i have no idea how the emonlib works.
thanks in advance!