Arduino powered mains AC energy monitor