Menu

Executive Programs

Workshops

Projects

Blogs

Careers

Placements

Student Reviews


For Business


More

Academic Training

Informative Articles

Find Jobs

We are Hiring!


All Courses

Choose a category

Mechanical

Electrical

Civil

Computer Science

Electronics

Offline Program

All Courses

All Courses

logo

CHOOSE A CATEGORY

Mechanical

Electrical

Civil

Computer Science

Electronics

Offline Program

Top Job Leading Courses

Automotive

CFD

FEA

Design

MBD

Med Tech

Courses by Software

Design

Solver

Automation

Vehicle Dynamics

CFD Solver

Preprocessor

Courses by Semester

First Year

Second Year

Third Year

Fourth Year

Courses by Domain

Automotive

CFD

Design

FEA

Tool-focused Courses

Design

Solver

Automation

Preprocessor

CFD Solver

Vehicle Dynamics

Machine learning

Machine Learning and AI

POPULAR COURSES

coursePost Graduate Program in Hybrid Electric Vehicle Design and Analysis
coursePost Graduate Program in Computational Fluid Dynamics
coursePost Graduate Program in CAD
coursePost Graduate Program in CAE
coursePost Graduate Program in Manufacturing Design
coursePost Graduate Program in Computational Design and Pre-processing
coursePost Graduate Program in Complete Passenger Car Design & Product Development
Executive Programs
Workshops
For Business

Success Stories

Placements

Student Reviews

More

Projects

Blogs

Academic Training

Find Jobs

Informative Articles

We're Hiring!

phone+91 9342691281Log in
  1. Home/
  2. Asad Ali Baig Mirza/
  3. Week 2- 2R Robotic Arm Challenge

Week 2- 2R Robotic Arm Challenge

clear all close all clc %inputs l1=1; Length of first arm l2=0.5;Length of second arm theta1=linspace(0,90,10);(degree of first arm w.r.t x axis) theta2=linspace(0,90,10);(degree of 2nd arm w.r.t x axis) ct=1; counter for i=1:length(theta1) THETA1=theta1(i); for j=1:length(theta2) THETA2=theta2(j); x0=0; (value of X axis…

    • Asad Ali Baig Mirza

      updated on 01 Mar 2022

    clear all
    close all
    clc
    %inputs
    l1=1; Length of first arm
    
    l2=0.5;Length of second arm
    theta1=linspace(0,90,10);(degree of first arm w.r.t x axis)
    theta2=linspace(0,90,10);(degree of 2nd arm w.r.t x axis)
    ct=1; counter
    for i=1:length(theta1)
    THETA1=theta1(i);
    for j=1:length(theta2)
    THETA2=theta2(j);
    x0=0;                               (value of X axis at 0 Position)
    y0=0;                                (value of y axis at 0 Position)
    
    
    x1=l1*cosd(THETA1);           (value of X axis at 1 Position)
    y1=l1*sind(THETA1);             (value of y axis at 1 Position)
    
    x2=x1+l2*cosd(THETA2);       value of X axis at 2 Position
    y2=y1+l2*sind(THETA2);        value of y axis at 2 Position
    
    %plotting
    
    Figure(1)
    
    plot([x0 x1],[y0 y1],[x1 x2],[y1 y2],'linewidth',3)      Plotting the graph 
    axis([-0.1 1.5 0 1.5]) 
    M(ct)=getframe(gcf);
    ct=ct+1;
    
    end
    end
    
    movie(M)
    videofile = VideoWriter('forward_kinematics.mp4');
    open(videofile)
    writeVideo(videofile,M)
    close(videofile)

    While solving the solution i had faced many difficulties such as 

     

    1)forgetting to provide the input values

    2)Not typing the same command as provided in the videos

    3)i was not able to open the video file as per attached screenshot but i could resolve it with the help of a support engineer

    who helped me rectify my commands and small mistakes which i had done

    Youtube video animation link:https://youtu.be/UKATjGINYCo

     

     

     

    Leave a comment

    Thanks for choosing to leave a comment. Please keep in mind that all the comments are moderated as per our comment policy, and your email will not be published for privacy reasons. Please leave a personal & meaningful conversation.

    Please  login to add a comment

    Other comments...

    No comments yet!
    Be the first to add a comment

    Read more Projects by Asad Ali Baig Mirza (8)

    Radar Mast & Final Assembly of Yacht

    Objective:

       Radar mast: Front view Side view  Top view          Expanded feature tree of Radarmast                                                                                                                                                           …

    calendar

    08 Mar 2023 06:59 PM IST

      Read more

      Week - 4

      Objective:

      Implement control logic of a “washing machine” using Stateflow as per given sequence:  If the power supply is available, the system gets activated  If the Water supply is not available, stop the process & indicate through LED Soaking time should be 200s followed by Washing time of 100s. Then rinsing…

      calendar

      06 Apr 2022 07:06 PM IST

        Read more

        Week -2

        Objective:

        Aim: 1)Make a Simulink model of Doorbell using solenoid block.  2)Use a thermistor to sense the temperature of a heater & turn on or turn off the fan.   Solenoid:   A solenoid  is a type of electromagnet formed by a helical coil of wire whose length…

        calendar

        06 Apr 2022 04:28 PM IST

          Read more

          Project 1 - Parsing NASA thermodynamic data

          Objective:

          Aim: To write a code to parse the thermodynamic data file provided and then calculate the thermodynamic properties of various gas species Objective: 1)Write a function that extracts the 14 co-efficients and calculates the enthalpy, entropy and specific heats for all the species in the data file.   2. Calculate the…

          calendar

          01 Apr 2022 05:25 PM IST

            Read more

            Schedule a counselling session

            Please enter your name
            Please enter a valid email
            Please enter a valid number

            Related Courses

            coursecard

            Design loads considered on bridges

            Recently launched

            10 Hours of Content

            coursecard

            Design of Steel Superstructure in Bridges

            Recently launched

            16 Hours of Content

            coursecard

            Design for Manufacturability (DFM)

            Recently launched

            11 Hours of Content

            coursecard

            CATIA for Medical Product Design

            Recently launched

            5 Hours of Content

            coursecardcoursetype

            Accelerated Career Program in Embedded Systems (On-Campus) Courseware Partner: IT-ITes SSC nasscom

            Recently launched

            0 Hours of Content

            Schedule a counselling session

            Please enter your name
            Please enter a valid email
            Please enter a valid number

            logo

            Skill-Lync offers industry relevant advanced engineering courses for engineering students by partnering with industry experts.

            https://d27yxarlh48w6q.cloudfront.net/web/v1/images/facebook.svghttps://d27yxarlh48w6q.cloudfront.net/web/v1/images/insta.svghttps://d27yxarlh48w6q.cloudfront.net/web/v1/images/twitter.svghttps://d27yxarlh48w6q.cloudfront.net/web/v1/images/youtube.svghttps://d27yxarlh48w6q.cloudfront.net/web/v1/images/linkedin.svg

            Our Company

            News & EventsBlogCareersGrievance RedressalSkill-Lync ReviewsTermsPrivacy PolicyBecome an Affiliate
            map
            EpowerX Learning Technologies Pvt Ltd.
            4th Floor, BLOCK-B, Velachery - Tambaram Main Rd, Ram Nagar South, Madipakkam, Chennai, Tamil Nadu 600042.
            mail
            info@skill-lync.com
            mail
            ITgrievance@skill-lync.com

            Top Individual Courses

            Computational Combustion Using Python and CanteraIntroduction to Physical Modeling using SimscapeIntroduction to Structural Analysis using ANSYS WorkbenchIntroduction to Structural Analysis using ANSYS Workbench

            Top PG Programs

            Post Graduate Program in Hybrid Electric Vehicle Design and AnalysisPost Graduate Program in Computational Fluid DynamicsPost Graduate Program in CADPost Graduate Program in Electric Vehicle Design & Development

            Skill-Lync Plus

            Executive Program in Electric Vehicle Embedded SoftwareExecutive Program in Electric Vehicle DesignExecutive Program in Cybersecurity

            Trending Blogs

            Heat Transfer Principles in Energy-Efficient Refrigerators and Air Conditioners Advanced Modeling and Result Visualization in Simscape Exploring Simulink and Library Browser in Simscape Advanced Simulink Tools and Libraries in SimscapeExploring Simulink Basics in Simscape

            © 2025 Skill-Lync Inc. All Rights Reserved.

                        Do You Want To Showcase Your Technical Skills?
                        Sign-Up for our projects.