Question

Computer experts, please help with the codes. I would very appreciate your help with the codes...

Computer experts, please help with the codes. I would very appreciate your help with the codes and clear comments for those parts. Thank you very much!

1) Write an Arduino program that turns on a motor for 1000 encoder counts. You will watch the wheel rotate and expect it to rotate 3 full turns. When you have the wheel rotating 3 full turns for 1000 encoder counts, you will know that you are correctly measuring the encoder data.

2) Write an Arduino sketch that calculates and displays motor speed. You will need to measure encoder counts over time. Motor speed should be measured and displayed separately for both the left and right sides. Set all four motors to spin in the same direction. Measure speed at a 25% duty cycle, 50% duty cycle, and 100% duty cycle. Report the speed in cm/s.

3) Write an Arduino sketch that drives your robot in a straight line for distances of 1m, 3m, and 5 m. First, test your sketch with the 1m distance. Your robot should be able to drive this distance without much error. Sensor measurements are subject to error. This error accumulates over time. As you increase the testing distance, your robot may appear to be more inaccurate by not driving in a straight line, drifting to the left or right, or not stopping very near the endpoint location.
In the setup function of your Arduino sketch, include a time delay long enough for you to press the reset button and place your robot at the starting line. The robot should drive from the starting line and stop exactly at the 1m mark. When you have tested your robot’s performance and are confident your Arduino program is correct, document your robot’s performance. How far away from the 1m mark did it stop? Did the robot start drifting left or right? If so, why do you think this happened?
Perform this test again for 3m and 5m distances. Record your results. If your robot is still performing well at the 5m distance, try a longer distance to find that point where the error accumulates and the robot does not have a good estimate of the distance traveled.

Computer experts, please help with the codes. I wo

0 0
Add a comment Improve this question Transcribed image text
Request Professional Answer

Request Answer!

We need at least 10 more requests to produce the answer.

0 / 10 have requested this problem solution

The more requests, the faster the answer.

Request! (Login Required)


All students who have requested the answer will be notified once they are available.
Know the answer?
Add Answer to:
Computer experts, please help with the codes. I would very appreciate your help with the codes...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Similar Homework Help Questions
  • please give me answers to all the questions and i would really appreciate that thank you...

    please give me answers to all the questions and i would really appreciate that thank you 6. -0 points My Notes O Ask Your Teache A 10.1 kg object oscillates at the end of a vertical spring that has a spring constant of 2.20 x 104 N/m. The effect of air resistance is represented by the damping coefficient b = 3.00 N-s/m (a) Calculate the frequency of the dampened oscillation. H2 (b) By what percentage does the amplitude of the...

  • I NEED HELP WITH DEBUGGING A C PROGRAM! PLEASE HEAR ME OUT AND READ THIS. I...

    I NEED HELP WITH DEBUGGING A C PROGRAM! PLEASE HEAR ME OUT AND READ THIS. I just have to explain a lot so you understand how the program should work. In C programming, write a simple program to take a text file as input and encrypt/decrypt it by reading the text bit by bit, and swap the bits if it is specified by the first line of the text file to do so (will explain below, and please let me...

  • I need help with my very last assignment of this term PLEASE!!, and here are the instructions: After reading Chapter T...

    I need help with my very last assignment of this term PLEASE!!, and here are the instructions: After reading Chapter Two, “Keys to Successful IT Governance,” from Roger Kroft and Guy Scalzi’s book entitled, IT Governance in Hospitals and Health Systems, please refer to the following assignment instructions below. This chapter consists of interviews with executives identifying mistakes that are made when governing healthcare information technology (IT). The chapter is broken down into subheadings listing areas of importance to understand...

  • I need help to write a nice introduction for experiment 6 please ( no hands write ) typing Thank you HEAT TREATMENT OF STEELS EXPERIMENT 6 EXPERIMENT 6 HEAT TREATMENT OF STEELS THEORY The Ef...

    I need help to write a nice introduction for experiment 6 please ( no hands write ) typing Thank you HEAT TREATMENT OF STEELS EXPERIMENT 6 EXPERIMENT 6 HEAT TREATMENT OF STEELS THEORY The Effect of Cooling Rate One of the most convenient methods for controlling the properties of a given steel, i.e., a steel whose composition is already fixed, consists of austenizing the steel and ten cooling to room temperature at some predetermined rate. A variation of cooling rates...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT