(Solved): 1. First, study the section 6.3DC and Servo Motor Control using Arduino in the Google doc for the M ...
1. First, study the section 6.3DC and Servo Motor Control using Arduino in the Google doc for the Module 6. Build a circuit using an H-Bridge IC to control the speed and direction of two DC motors. Power motors via the 4 AA battery holder and the Arduino from the 9V battery. Power the IC from the Arduino 5V line. Be very careful when putting this together as you can easily burn the IC if you make wrong connections. 2. Next, write an Arduino sketch that contains the following six functions: a. forward() b. turnLeft() c. reverse() d. turnRight() e. accelerate() f. decelerate() As the names of the functions imply, you have to write code inside the functions for the SnapBot to move in those ways. Call these functions from the loop() function one after another and make sure that each function is executed for 5 seconds only. Altogether, all actions will be completed in 30 seconds and then the cycle should repeat. The purpose of this exercise is to ensure that you understand how to do basic motion control of a 2WD robot.