Hello, I have a problem about my robot.
I want to stop a robot later 2.3s
Here is my programme :
void loop() {
int DelayTime = millis() + 2300;
while (millis() < DelayTime) {
LineFollow(); //Here is a function for robot moving.
}
Stop(); //Here is a function for robot Stop.
delay(100000);
}
It cannot exit the while loop, then the robot is moving forward foreverr.
Anyone can help me solve the problem plz.
Sorry for my bad English. I am not a native English speaker.