GithubHelp home page GithubHelp logo

jumpjack / camfollowerjs Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 21.26 MB

Generator and simulator of cams profiles for cam/follower mechanisms.

JavaScript 100.00%
mechanics simulation automata follower mechanisms gears

camfollowerjs's Introduction

CamFollowerJS

Generator and simulator of cams profiles for cam/follower mechanisms.

image

Try it here: https://jumpjack.github.io/CamFollowerJS/

This page can work also offline on your PC , just download all the .html and .js files in same folder.

Short description

This page allows creating cam profiles for cam/follower mechanisms used in automata. The cam can be started from scratch, or loaded from an existing file, edited and saved again.

The page loads the flat cartesian profile of the cam, and turns it into a circular/polar profile, the it starts rotating the cam as per aramters specified in the file itself (direction and speed) and shows how a follower follows the cam profile. Note: current version does not perform any check on output, so resulting cams could be impossible to realize in practice.

Known issues

  • Bad tracking of contact point in upper chart when follower does not pass throuogh cam center

Things I would like to add in the future:

  • cams library in json format
  • visual cams library
  • visual editing of cam profile using mouse
  • flat/circuar roller follower support image
  • parametric editing
  • STL direct export
  • combined motions simulator
  • ....

Automata resources (books, links,...): look https://github.com/jumpjack/CamFollowerJS/tree/main/documents


Theory of cams/followers:

image

https://www.researchgate.net/figure/Schematic-of-the-cam-follower-mechanism-adapted-from-Ref-33-The-cam-rotates-about_fig8_279290006

image

https://www.softintegration.com/chhtml/toolkit/mechanism/cam/cgi_trans_sample.html

3d cam example:

image

https://mechtics.com/machine/mechanics-of-machines/cam-and-follower-mechanism-types-and-functions/

3d printing

In the future CamFollowerJS will implement export in STL format for 3d printing. In the meantime you can use some online service to convert the SVG output to STL:

Versions history

0.1.0 First public version; many things yet on the todo list:

  • editable flat path;
  • export in SVG format;
  • export in STL format;
  • tunable rotation speed/direction;
  • add speed chart, angle chart, acceleration chart,...

Known problems:

  • Can't handle properly two points at same angle in flat path
    

0.1.1

  • Added visual and numeric pressure angle

0.1.2

...

0.1.5

  • Added center hole for shaft in exported SVG file

camfollowerjs's People

Watchers

 avatar

camfollowerjs's Issues

Cam center in export SVG

Hello i love this software it will be perfect for making cams for my automata however i have a problem...when i export the Cam as an SVG
there is no reference point or hole where the cam center is and it is impossible to find it again accurately after export.
is there a way you can add a simple hole for the shaft position of the exported SVG as a reference for where the shaft will go in the cam?
it doesn't matter what size it is as i can use it in my cad software to create any size whole or you may want to add this as an option to set hole size for shaft hole in exported SVG ?

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.