Double crank-crank mechanism

Hello,
I am looking for a specific mechanism made in matlab to have a better visualization of the operation. The problem is that I do not find anything or I do not know how to look for it, the mechanism would be something like this, first 10 seconds (https://www.youtube.com/watch?v=7IDAYfAb0k4) but with two turntables and both connected to the same point and the rotation will be only 180º.
I have drawn an outline sketch to explain myself better.
Some of you know the name of this mechanism to be easier to found it? Or can help me, i have low knowledge of matlab programing
I know it should not be easy to program. But if someone knows if it is already done, it will help me a lot or the name of the mechanism.
Thanks so much!

 Accepted Answer

darova
darova on 15 Apr 2019
Hi, see attached files. Ask if needed

4 Comments

This was incredible, was it done by your own hand for me? Thanks so much.
I am experimenting with the code, it is a bit complicated, but I have been able to generate all the mapping of points where the end could access, but with a rotation of both sides of 360 degrees. (Attached in this response with the names of Both360degrees, .m and. jpg)
Now I'm trying to eliminate the values of the phi angle when x1 is lower than 0, to make it move only 180 degrees (like picture with name "both 180degrees.jpg") But since the code is done with the "linspace" I do not know how Remove certain values from the array. Otherwise the movement of phi2 is correct.
I will continue trying. If I succeed, I will report here and not waste anyone's time.
Thank you very much
There is function abs() that return only positive values.
Use plot(xc,yc) for faster drawing/rendering (comment/delete animation part in a loop)
You are welcome
Thanks, finally I adapted the code to show both lines in same plot.
The code and the picture of final result was attached here if someone else want use it.
But notice that the code is horrifically optimized by me but I made the nonsense forcould to have the visual image.
Before finishing the post, my thanks to the user darova for his incredible contribution to my question, without his contribution would not have had the final image. Thanks darova.

Sign in to comment.

More Answers (0)

Categories

Find more on Mathematics in Help Center and File Exchange

Asked:

on 14 Apr 2019

Commented:

on 16 Apr 2019

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!