Measuring power consumption of a circuit using an Arduino