Experiment 2 Turning Right and Left

Share for us
Share on facebook
Share on twitter
Share on pinterest
Share on whatsapp

The principle for this experiment is the same as those for the first experiment. Only a turning function is added.

Experimental Principle

Change the rotational angle by sketch to make the car turn.

Experimental Procedures

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.

Experimental Phenomena

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.