Challenge

Week 3.2 - 2R Robotic Arm Challenge

Write a program in MATLAB to simulate the forward kinematics of a 2R Robotic Arm, as shown in the video.

  • Create an animation file of the plot.
    • Upload an animation on You tube and provide the You tube link for an animation in your report.

Code and output:


Code Explanation:

1. Initially consider the length of the both the arm and give as the input value.

2. Consider the sin and the cos angle valve and its degree for both the arms.

3. Create the nested for loop for both the arm until the full arm rotation that is taken into consideration.

4. Calculate the x1 and y1, x2 and y2 where the arm has to rotate thought the initial and its final value.

5. Plot the the graph for all the x and y values and make it in the single frame.

6. Using the movie command generate the video file of the animation.

LINK:

https://youtu.be/tZc9q5zJIMk

Your portfolio, next

Ship work like this
in your own course.

Talk to a career counsellor

Free 20-minute call. We'll map the right course to where you want to work.

By submitting you agree to our Terms and Privacy Policy.