b94202029mechanisms.blogspot.com
機動學作業: 五月 2007
http://b94202029mechanisms.blogspot.com/2007_05_01_archive.html
我將本作業的三個小題合併成一個大程式,因為老師沒有在題目內明講偏置量e為多少,故我的程式設計成可自行輸入偏差量;由於返程的運動形式為自訂,故我的程式設計成去程及返程的運動形式都可以自行輸入. Function homework9(r0,s,e,L,range,pattern,cw). Uses plot dwell.m. Cth:angle of cam, degrees. R0:radius of base circle. Cw:rotation direction of cam(-counterclockwise, clockwise. Pattern = denote the type of motion used(a 3 element-row matrix). 1:uniform 2:parabolic 3:simple harmonic 4: cycloidal. Range =the degrees the specific motion starts, eg.[90 180 240]. 第一小題 % % % % % % % % % % % % % %. If e= 0 % 無偏移量e.
b94202029mechanisms.blogspot.com
機動學作業: 三月 2007
http://b94202029mechanisms.blogspot.com/2007_03_01_archive.html
MyNO=29, length=myNO 10=39. Radius=(myNO 10)/(3 0.5). Axis([-30 30 -30 30]). Radius=(myNO 10)/(3 0.5). Vertex2=[cosd(120) sind(120);-sind(120) cosd(120)]*vertex1. Vertex3=[cosd(-120) sind(-120);-sind(-120) cosd(-120)]*vertex1. Vertices=[vertex1';vertex2';vertex3';vertex1']. Triangle=line(x,y,'erasemode','xor');. RotationMatrix=[cos(deltaTheta) sin(deltaTheta); -sin(deltaTheta) cos(deltaTheta)]. Set(triangle,'xdata',x,'ydata',y);. Input the positions of the two ends and width , output points of the link.
kaohsiungman888.blogspot.com
大鳥的MATLAB的世界: 作業十二
http://kaohsiungman888.blogspot.com/2007/06/blog-post.html
圖片皆在部落中 http:/ kaohsiungman888.blogspot.com/. 一組標準全齒輪齒輪之徑節為8(亦可使用自設值),齒數分別為30T與48T,其工作壓力角為20度(可為14.5或25度,自選)。 2兩齒輪之節圓、基圓直徑各為如何?請列式計算其結果。 4可否利用draw gear.m繪出其接合情形,並繪出其動畫效果。 輸入[c ratio,c length,ad,pc,pb,d2,d3,ag]=contact ratio(8,30,48,20 ). C ratio =1.7005 %其接觸比=1.7005. C length =0.6275 %接觸長度=0.6275吋. Ad =01250 %齒冠=0.1250吋. Pc =03927 %周節=0.3927. Pb =0369 %基周節pb=0.3690. R2 =37500 %齒輪節圓直徑齒輪一=3.75吋. Ag =10.4850 %齒輪一之接近角=10.4850度. Ag =99211 %遠退角=9.9211度. Ag =20.4061 %作用角=20.4061度. Ag =65532 %齒輪二之接近角=6.5532度.
kaohsiungman888.blogspot.com
大鳥的MATLAB的世界: 作業十
http://kaohsiungman888.blogspot.com/2007/05/blog-post_23.html
圖片皆在部落中 http:/ kaohsiungman888.blogspot.com/. 請思考速度與加速度的問題,當一桿以某特定點M等角速度迴轉時,其端點P之速度方向如何?其加速度方向如何? 若以此推理四連桿的運動,則點P與Q之速度與加速度方向會與桿一(固定桿)之兩端點之關係如何? 與我們前面的作業分析結果有無共通之處?(參看第六章之四連桿機構之運動分析). 請思考速度與加速度的問題,當一桿以某特定點M等角速度迴轉時,其端點P之速度方向如何?其加速度方向如何? 假設MP間距離為r(m) P以等角速度 ω (rad/s)轉動 則依動力學定律,P點切線速度等於r*ω(m/s),其方向與r為垂直方向 並有向心加速度等於r*ω 2 (m/s 2). Dyad draw(4,37,.5,0)輸入桿長4, 水平角度37deg, 角速度0.5rad/s. 若M為等速水平運動,則必須再加上VM,所以 VP=VM ωxr. 加速度方面則不受影響, AP= ωx(ωxr). 若M點同時也有加速度,則計算P點加速度時則必須考慮M點之加速度, AP=AM+ωx(ωxr). Theta2 = th2*pi / 180;.
kaohsiungman888.blogspot.com
大鳥的MATLAB的世界: 讓MATLAB實力大增的秘技
http://kaohsiungman888.blogspot.com/2007/05/matlab.html
Http:/ ecatt.badger.ncit.edu.tw/wpd92/92U40/plot.htm. 訂閱: 張貼留言 (Atom).
kaohsiungman888.blogspot.com
大鳥的MATLAB的世界: 作業十一
http://kaohsiungman888.blogspot.com/2007/05/blog-post_30.html
圖片皆在部落中 http:/ kaohsiungman888.blogspot.com/. 1某凸輪開始時先在0-100∘區間滯留,然後提升後在200至260∘區間滯留,其高度(衝程)為5公分,其餘l由260∘至360∘則為返程。升程採用等加速度運動,返程之運動型式自定。設刻度區間為10∘,試繪出其高度、速度及加速度與凸輪迴轉角度間之關係。 2設凸輪之半徑為15公分,以順時針方向旋轉,其從動件為梢型,垂直接觸,長為10公分,從動件之運動係依照第二項之運動型式。 輸入指令plot dwell(0:10:360,5,[2 1],[100 200 260]). 5 : 從動件衝程[2 1] : 是運動模示2是等加速度運動,1是等速度運動. 100 200 260] : 指的是運動區間 . 輸入指令[x y]=pincam([0:10:360],15,5,0,10,[100 200 260],[2 1],-1). 100 200 260] : 指的是運動區間. 2 1] : 是運動模示2是等加速度運動,1是等速度運動. Pause(2); %停兩秒,以利準備拍攝的程式. Axis([-30 30 -30 30]).
kaohsiungman888.blogspot.com
大鳥的MATLAB的世界: 作業八
http://kaohsiungman888.blogspot.com/2007/05/blog-post.html
圖片皆在部落中http:/ kaohsiungman888.blogspot.com/. 有一組四連桿,其桿長分別為r=[4 3 3 5],由桿2驅動,設第一固定桿角度theta1=0度; 角速度 td2=10rad/s; 角加速度tdd2=0 rad/s 2。 65306;設桿2角度theta2=45度時,求各點之位置、速度與加速度為何? Val,form]=f4bar([4 3 3 5],0,45,10,0,-1,0) %r=[4 3 3 5] (各桿之長度)theta1 =0° theta2 =45° td2 =10 (rad/sec) tdd2 =0 驅動桿(第二桿或第三桿)之角加速度(rad/sec 2)。mode = -1 (閉合型)linkdrive = 0 (驅動桿為第二桿). 桿的位置 2(deg) 3(rad/s) 4(rad/s2). 桿I 位置( 4 , 0 ) 0(deg) 0 (rad/s) 0(rad/s2) . 65306;繪出此四連桿之相關位置及標明各點之速度方向及大小(以程式為之)。 Drawlinks([4 3 3 5],0,45,-1,0).
kaohsiungman888.blogspot.com
大鳥的MATLAB的世界: 六月 2007
http://kaohsiungman888.blogspot.com/2007_06_01_archive.html
圖片皆在部落中 http:/ kaohsiungman888.blogspot.com/. 一組標準全齒輪齒輪之徑節為8(亦可使用自設值),齒數分別為30T與48T,其工作壓力角為20度(可為14.5或25度,自選)。 2兩齒輪之節圓、基圓直徑各為如何?請列式計算其結果。 4可否利用draw gear.m繪出其接合情形,並繪出其動畫效果。 輸入[c ratio,c length,ad,pc,pb,d2,d3,ag]=contact ratio(8,30,48,20 ). C ratio =1.7005 %其接觸比=1.7005. C length =0.6275 %接觸長度=0.6275吋. Ad =01250 %齒冠=0.1250吋. Pc =03927 %周節=0.3927. Pb =0369 %基周節pb=0.3690. R2 =37500 %齒輪節圓直徑齒輪一=3.75吋. Ag =10.4850 %齒輪一之接近角=10.4850度. Ag =99211 %遠退角=9.9211度. Ag =20.4061 %作用角=20.4061度. Ag =65532 %齒輪二之接近角=6.5532度.
kaohsiungman888.blogspot.com
大鳥的MATLAB的世界: 三月 2007
http://kaohsiungman888.blogspot.com/2007_03_01_archive.html
以講義第二章之圖2.5之正三角形為例,試寫出matlab程式,分別就三個頂點作動態旋轉(正三角形之邊長L=(你的學號末二碼) 10)。 AXIS([-200 200 -200 200]). X=[0 L/2 L 0];. Y=[0 (3) (1/2)*L/2 0 0];. Rotate(picture,[0 0 1],3,[ L/2 (3) (1/2)*L/2 0]). Rotate(picture,[0 0 1],3,[L 0 0]). Rotate(picture,[0 0 1],3,[0 0 0]). 設一連桿長度為10cm,厚度為4cm,繞於原點旋轉,其另一端則以一條彈簧固定於(15,0)cm的位置,試利用matlab寫出一程式,並繪圖顯示出該桿迴轉一圈時之位置。 Linkshape([10 0],[0,0],4). AXIS([-25 25 -25 25]). Linkshape([0,0], [x2,y2], 4). Line([x1,x2],[y1,y2]);. AXIS([-10 20 -10 10]). Linkshape([Ax,Ay],[Bx By],2);. 依我自己的認知...