Digital tachometer using arduino plus motor speed control. Circuit diagram and program