use os delay functions & motor pwm / encoder