KnowledgeBoat Logo
|

Robotics & Artificial Intelligence

Explain forward move of wheeled robot.

Tinkercad

1 Like

Answer

In the forward move of a wheeled robot, all the wheels of the robot should be in motion. For this purpose, a HIGH value is sent to all four output pins (3, 5, 6, and 9) of the Arduino Uno. When HIGH is sent, the motor driver receives 5V, and the same value is transferred to the motors with enhanced current capacity. As a result, all four motors turn on, and the robot moves in the forward direction. The code for move forward is given below:

void move_forward ()
{
    digitalWrite(3, HIGH);
    digitalWrite(5, HIGH);
    digitalWrite(6, HIGH);
    digitalWrite(9, HIGH);
}

Answered By

1 Like


Related Questions