Home / Expert Answers / Mechanical Engineering / 1-first-study-the-section-6-3dc-and-servo-motor-control-using-arduino-in-the-google-doc-for-the-m-pa628

(Solved): 1. First, study the section 6.3DC and Servo Motor Control using Arduino in the Google doc for the M ...



student submitted image, transcription available below
1. First, study the section 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 battery. Power the IC from the Arduino 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.


We have an Answer from Expert

View Expert Answer

Expert Answer


We have an Answer from Expert

Buy This Answer $5

Place Order

We Provide Services Across The Globe