5.0

5.0 | 3 ratings Rate this file 20 Downloads (last 30 days) File Size: 14.03 KB File ID: #22571
image thumbnail

Cam Simulator

by Husam Aldahiyat

 

02 Jan 2009 (Updated 30 Jan 2009)

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  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (6)
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

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.

22 Apr 2010 Bianca  
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

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.

31 Oct 2011 Brato CHAKRABARTI  
Please login to add a comment or rating.
Updates
30 Jan 2009

Added 3D cam animation feature.

Tag Activity for this File
Tag Applied By Date/Time
cam Husam Aldahiyat 05 Jan 2009 15:44:18
cams Husam Aldahiyat 05 Jan 2009 15:44:18
machinery Husam Aldahiyat 05 Jan 2009 15:44:18
gui Husam Aldahiyat 05 Jan 2009 15:44:18
help Husam Aldahiyat 05 Jan 2009 15:44:18
comments Husam Aldahiyat 05 Jan 2009 15:44:18

Contact us at files@mathworks.com