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
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
ADVERTISEMENT