File Exchange

image thumbnail

Cam Simulator

version 1.1.0.0 (12.8 KB) by Husam Aldahiyat
Given a set of motion programs this interface plots the cam profile and rotates it.

55 Downloads

Updated 30 Jan 2009

View Version History

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.

Cite As

Husam Aldahiyat (2021). Cam Simulator (https://www.mathworks.com/matlabcentral/fileexchange/22571-cam-simulator), MATLAB Central File Exchange. Retrieved .

Comments and Ratings (32)

Michael Wagner

Fucking Awful

joshua dillard

You've change the world a little today. Keep rocking

Lourdes Marie Ortega

Wonseok Shin

Luis Meyer

erfan omrani

Subhranshu Maity

Zip file not open

Kemal Bektas

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.

ABDULLAH RAWASHDEH

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

Sachit Butail

Abdulrhman Khalifa

Abdulrhman Khalifa

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 Közkurt

Cemil Közkurt

Andres Alonso

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

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

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.

Luigi Giaccari

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

MATLAB Release Compatibility
Created with R2007a
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

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

Start Hunting!