Coder Social home page Coder Social logo

2d-inverse-kinematic-animation's Introduction

2D-Inverse-Kinematic-Animation

The result of some experimentation trying to calculate the angles for servo motors given the final x and y coordinates for a friend's project. The major constraint was that motors could not be placed at the arms. So both arms had to be moved using the motors at the base. This does not include the code for driving the motors. You will have to set up a serial server for that and modify the sendToSerial function in the sketch.js file to send the angles over the connection.

To run:

  • Clone the repo
  • Open index.html in your favorite browser
  • Try pressing on the purple box to see the arm move and the angles change (theta_1 and theta_2 change).

Take a look at this Desmos graph to see what theta_1 and theta_2 indicate: https://www.desmos.com/calculator/6owvnwl81b

Preview:

https://osmansiddiquer.github.io/2D-Inverse-Kinematic-Animation/

image

The point N (see the Desmos graph) follows a straight path to the destination.

2d-inverse-kinematic-animation's People

Contributors

osmansiddiquer avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.