Measuring the RC time constant with Arduino