March 2019
Intermediate to advanced
312 pages
7h 37m
English
In an axial left turn, the left motor of the robot moves backward and the right motor moves forward, so the robot takes a left turn, as shown in the following diagram:

If you have understood how the H-bridge works, you might be able to guess the code for taking an axial turn. If not, the code is as follows:
digitalWrite(0,LOW);digitalWrite(2,HIGH);digitalWrite(3,HIGH);digitalWrite(4,LOW);delay(500);