Josh's motor testing sketch using Arduino