File Exchange

image thumbnail

Cam Simulator

version 1.1 (12.8 KB) by

Given a set of motion programs this interface plots the cam profile and rotates it.

85 Downloads

Updated

View License

User friendly edit boxes allow for the complete input of motion types and their properties, along with the characteristics of the cam and its follower. What follows are diagrams for displacement, velocity and acceleration, as well as an animated simulation of the cam profile and the follower.

I put my code here because it helped me personally understand more about cams and their governing equations. So I filled the code with comments in hopes of providing help for both mechanics students and new programmers.

Comments and Ratings (24)

Cheng Chen

Thank you so much. It is a wonderful and helpful program for the cam designers. Hope the program can provide analysis for more type of cams.

Cam Hadden

Great work!

Pete Tinga

No Joy guess i need winzip or some unpacking software. waste of time for me. delete to bad i was looking forward to using this to build / regrind a actual cam for running in a motor.

thank you very much for sharing your amazing effort to help students and others to understand this mechanism

Sachit Butail

I cant download it can you send it to me at
Lenon.klaus129@gmail.com

mouna faouzi

mouna faouzi


Thanks

Kurt Olsen

Thanks for making this code available for everyone. I found the interface very intuitive and having the animation is great. I’m a novice Matlab programmer so I learned a lot by reading through your code.

Bishoy Ezzat

Cemil

Cemil (view profile)

Cemil

Cemil (view profile)

Husam Aldahiyat

You need the symbolic math toolbox, as noted in the requirements section.

Josef Kortan

Please help, I'm getting error and can't get rid of it:

??? Undefined function or method 'sym' for input arguments of type 'char'.

Error in ==> cams>SHM at 357
s=si+h/2*(1-cos(pi/a*(sym('x')-ti)));

Error in ==> cams>go at 443
[s,si,ti]=SHM(si,ti,Disps(lp1),Durations(lp1));

??? Error while evaluating uicontrol Callback

Thanks

emre

emre (view profile)

rfh

Brato CHAKRABARTI

Husam Aldahiyat

You need to check the numbers in the axes limit boxes on the lower left corner of the GUI. Look at the example picture and try to follow it.

If you're still having trouble send me an e-mail.

zarak khan

i am getting this error againg and agian tell me its solution please as soon as possible. thanks
??? Error using ==> axis>LocSetLimits at 234
Vector must have 4, 6, or 8 elements.

Error in ==> axis at 94
LocSetLimits(ax(j),cur_arg);

Error in ==> cams>go at 470
axis([0 ti min(JJ)-(max(JJ)-min(JJ))/10-1e-9
max(JJ)+(max(JJ)-min(JJ))/10+1e-9]);

??? Error while evaluating uicontrol Callback

Bianca

Bianca (view profile)

Husam Aldahiyat

Thanks for the comment.

>I need to ask you a few question:
>How to obtain profile coordinates?
The equations are in the code itself.

>Does it computes the profile for roller follower?
The roller follower is a circle. given its radius and offset from the centre of the base circle it can be easily plotted.

>At the end a few possible improvement:
>rocker roller follower instead of translating.
I considered that before but I think I'll put it in now.

>You can also includes the detachement problem which is very useffull for high frequency cams.
I don't know what that is.

>Please insert a better documentation on how to use use this beatiful utilitie. I took 20 minutes to understand how to start!!!!
Duly noted.

Thanks again for giving your opinion.

Wonderful Congratulations,

It is a very usefull routine, with nice graphical plots.

I need to ask you a few question:

How to obtain profile coordinates?

Does it computes the profile for roller follower?

At the end a few possible improvement:

-rocker roller follower instead of translating.
-You can also includes the detachement problem which is very useffull for high frequency cams.

-Please insert a better documentation on how to use use this beatiful utilitie. I took 20 minutes to understand how to start!!!!

Thank you again

Updates

1.1

Added 3D cam animation feature.

MATLAB Release
MATLAB 7.4 (R2007a)

Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.

» Watch video

Win prizes and improve your MATLAB skills

Play today