The principle for this experiment is the same as those for the first experiment. Only a turning function is added.
Change the rotational angle by sketch to make the car turn.
Connect the SunFounder Uno board to your computer. Upload the sketch under the path Smart Car V2.0 for Arduino\Code\Car_2_Turn, and then remove the USB cable. Press down the button on the switch module, and the car will start running.
When you press down the button on the switch module, the car will go forward. 1 second later, it turns right, and then goes forward for 1 second again. Then it turns left. 1 second later, the car goes forward for 1 second and then goes backward. Two seconds later, it stops.