Professional Documents
Culture Documents
Bagri
Bagri
Robot Movement
The robot will move forward if there are no obstacles in its path. If it encounters an obstacle,
it will stop and wait for instructions.
Robot Speed
The robot's speed is set to 150 steps per minute.
Code
The following code is used to control the robot:
// If any of the distances are less than 50 cm, stop the robot
if (dist1 < 50 || dist2 < 50 || dist3 < 50 || dist4 < 50) {
myStepper1.step(0);
myStepper2.step(0);
myStepper3.step(0);
myStepper4.step(0);
}
}
void table2() {
// Move the robot to table 2
for (int i = 0; i <= Table2; i++) {
ObstacleDetect();
LoadDetect();
Example Usage
To send the robot to table 1, you would send the following command:
To send the robot to table 2, you would send the following command:
2