5.0

5.0 | 7 ratings Rate this file 59 Downloads (last 30 days) File Size: 14 KB File ID: #22571
image thumbnail

Cam Simulator

by

 

02 Jan 2009 (Updated )

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

| Watch this File

File Information
Description

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.

Required Products Symbolic Math Toolbox
MATLAB release MATLAB 7.4 (R2007a)
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (13)
23 May 2014 Bishoy Ezzat  
22 Sep 2013 Cemil  
22 Sep 2013 Cemil  
04 May 2013 Andres Alonso  
13 Jul 2012 Husam Aldahiyat

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

12 Jul 2012 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

30 May 2012 emre

rfh

31 Oct 2011 Brato CHAKRABARTI  
16 May 2011 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.

16 May 2011 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

22 Apr 2010 Bianca  
07 Jan 2009 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.

05 Jan 2009 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

Updates
30 Jan 2009

Added 3D cam animation feature.

Contact us