MATLAB-GUI-减速器设计

整理文档很辛苦,赏杯茶钱您下走!

免费阅读已结束,点击下载阅读编辑剩下 ...

阅读已结束,您可以下载文档离线阅读编辑

资源描述

汽车建模与仿真——带式运输机减速器设计前言本程序利用MATLAB的图形用户界面(GUI)来设计一款减速器,该设计方法使用户不用理会繁琐的公式,避免了重复的简单工作,从而可以极大的提高设计效率,具有很大的实用价值。设计流程图如下:齿轮参数计算传动总效率电机工作功率电机转速基本参数电机选型电机转速带传动比低速级传动比总传动比高速级传动比各轴转速各轴功率各轴扭矩齿数1模数齿数2否强度校核是图1设计流程图1.传动方案选择chuandongfangan=imread('传动方案.bmp');%读取‘传动方案.bmp’图形文件axes(handles.axis);%将当前工作区设置到axis上imshow(chuandongfangan);%读取‘传动方案.bmp’图形文件2.电机选择2.1传动装置的总效率a1=get(handles.a1,'String');%a1皮带效率a2=get(handles.a2,'String');%a2轴承效率a3=get(handles.a3,'String');%a3齿轮效率a4=get(handles.a4,'String');%a4联轴器效率a5=get(handles.a5,'String');%a5滚筒效率total=str2num(A1)*str2num(A2)*str2num(A3)*str2num(A4)*str2num(A5);%total传动总效率total=roundn(total,-3);%取小数点后三位set(handles.total,'String',total);%将计算t值代入相total应的静态文本中2.2电机功率F=str2num(get(handles.F,'String'));%F传送带所需拉力V=str2num(get(handles.v,'String'));%v输送带运行速度total=str2num(get(handles.total,'String'));%total总效率P0=F*V/(1000*total);%电机所需的工作功率P0=roundn(P0,-3);%保留小数点后三位set(handles.P0,'String',P0);%将P0代入相应的静态文本中2.3滚筒转速V=str2num(get(handles.v,'String'));D=str2num(get(handles.D,'String'));%D传送带轮直径n=60*1000*V/(pi*D);%n滚筒的工作转速n=roundn(n,-3);set(handles.n,'String',n);2.4电机型号选择分度圆直径中心距dianjixuanze=imread('电动机型号选择.bmp');axes(handles.axis);imshow(dianjixuanze);3.总传动比和各级传动比3.2总传动比ratio=inputdlg('请输入带传动比2-4');ratio=str2double(ratio);ifratio2|ratio4;errordlg('请输入合适的传动比');elseset(handles.i0,'String',ratio);end图2输入带传送比图3输入的传动比不符3.2总传动比n=str2num(get(handles.n,'String'));%n滚筒转速n0=str2num(get(handles.n0,'String'));%n0选取电机的转速i0=str2num(get(handles.i0,'String'));%带传动比i=n0/n;%i总传动比i=roundn(i,-3);set(handles.i,'string',i);3.3高速级传动比i2i0=str2num(get(handles.i0,'String'));%带传动比i=str2num(get(handles.i,'String'));%总传动比v=str2num(get(handles.v,'String'));%v输送带运行速度i2=sqrt(v*(i/i0));%i2高速级传动比i2=roundn(i2,-3);set(handles.i2,'string',i2);3.4低速级传动比i1i=str2num(get(handles.i,'String'));%i总传动比i0=str2num(get(handles.i0,'String'));%i0带传动比i2=str2num(get(handles.i2,'String'));%i2高速级传动比i1=i/(i0*i2);%i1低速级传动比i1=roundn(i1,-3);set(handles.i1,'string',i1);4.各轴动力参数4.1各轴转速n0=str2num(get(handles.n0,'String'));%n0选取电机的转速i0=str2num(get(handles.i0,'String'));%i0带传动比n1=n0/i0;%n1第一轴转速n1=roundn(n1,-3);set(handles.n1,'string',n1);n1=str2num(get(handles.n1,'String'));i2=str2num(get(handles.i2,'String'));%i2高速级传动比n2=n1/i2;%n2第二轴转速n2=roundn(n2,-3);set(handles.n2,'string',n2);n2=str2num(get(handles.n2,'String'));i1=str2num(get(handles.i1,'String'));%i1低速级传动比n3=n2/i1;%n2第二轴转速n3=roundn(n3,-3)set(handles.n3,'string',n3);4.2各轴功率P0=str2num(get(handles.P0,'String'));%P0电机所需的工作功率a1=str2num(get(handles.a1,'String'));%a1皮带效率P1=P0*a1;%P1第一轴功率P1=roundn(P1,-3);set(handles.P1,'string',P1);a2=str2num(get(handles.a2,'String'));%a2轴承效率a3=str2num(get(handles.a3,'String'));%a3齿轮效率P1=str2num(get(handles.P1,'String'));P2=P1*a2*a3;%P2第二轴功率P2=roundn(P2,-3);set(handles.P2,'string',P2);P2=str2num(get(handles.P2,'String'));P3=P2*a2*a3;%P3第三轴功率P3=roundn(P3,-3);set(handles.P3,'string',P3);4.3各轴扭矩P1=str2num(get(handles.P1,'String'));%P1第一轴功率n1=str2num(get(handles.n1,'String'));%n1第一轴转速T1=9550*P1/n1;%T1第一轴扭矩T1=roundn(T1,-3);set(handles.T1,'string',T1);P2=str2num(get(handles.P2,'String'));%P2第二轴功率n2=str2num(get(handles.n2,'String'));%n2第二轴转速T2=9550*P2/n2;%T2第二轴扭矩T2=roundn(T2,-3);set(handles.T2,'string',T2)P3=str2num(get(handles.P3,'String'));n3=str2num(get(handles.n3,'String'));T3=9550*P3/n3;%T3第三轴扭矩T3=roundn(T3,-3);set(handles.T3,'string',T3);5.齿轮参数设计5.1第一组齿轮计算Z11=str2num(get(handles.Z11,'String'));%Z11第一组齿轮1齿数Z12=Z11*3;%Z12第一组齿轮2齿数set(handles.Z12,'string',Z12);m1=str2num(get(handles.m1,'String'));%m1第一组齿轮模数d11=Z11*m1;%d11第一组齿轮1分度圆直径d12=Z12*m1;%d12第一组齿轮2分度圆直径set(handles.d11,'string',d11);set(handles.d12,'string',d12);d11=str2num(get(handles.d11,'String'));d12=str2num(get(handles.d12,'String'));AA1=(d11+d12)/2;%AA1第一组齿轮中心距set(handles.AA1,'string',AA1);5.2第二组齿轮计算Z21=str2num(get(handles.Z21,'String'));%Z21第一组齿轮1齿数Z22=Z21*(86/37);%Z22第一组齿轮2齿数set(handles.Z22,'string',Z22);m2=str2num(get(handles.m2,'String'));%m2第一组齿轮模数d21=Z21*m2;%d21第一组齿轮1分度圆直径d22=Z22*m2;%d22第一组齿轮2分度圆直径set(handles.d21,'string',d21);set(handles.d22,'string',d22);d21=str2num(get(handles.d21,'String'));d22=str2num(get(handles.d22,'String'));AA2=(d21+d22)/2;%AA1第一组齿轮中心距set(handles.AA2,'string',AA2);5.3齿轮校核Z11=str2num(get(handles.Z11,'String'));%Z11第一组齿轮1齿数Z12=str2num(get(handles.Z12,'String'));%Z12第一组齿轮2齿数d11=str2num(get(handles.d11,'String'));%d11第一组齿轮1分度圆直径T1=str2num(get(handles.T1,'String'));%T1第一轴扭矩K=1.3;%斜齿轮传动,加工精度为7级,载荷系数K取1.3u=Z12/Z11;%齿数比f=0.5;%齿宽系数b=f*d11;%齿宽Ze=189.8;%齿轮为钢制,取弹性系数Ze=189800Pa;hwait=waitbar(0,'请等待...');%设置显示条steps=8;fork=1;ifk=stepspause(2);k=k+1;endendclose(hwait);theta_H=109*Ze*sqrt(K*T1*(u+1)/(b*u*d11^2));%齿面接触应力(MPa)theta_HP=1071;%齿面许用接触用力(MPa);iftheta_H=theta_HP%比较齿面接触应力是否小于齿面许用接触应力msgbox('强度符合要求!');%小于等于的话弹出“强度符合要求!”信息对话框elsetheta_Htheta_HPwarndlg('强度不够,请重新设计参数!');%大于弹出“强度不够,请重新设计参数”警告对话框end图4waitbar图5强度校验不够图6强度校验合格预设globalDvFa1a2a3a4a5i0n0Z11Z21m1m2;D=370;%带轮直径v=1.3;%输送带运行速度F=1000;%输送带轮所需拉力a1=0.96;%皮带效率a2=0.984;%轴承效率a3=0.972;%齿轮效率a4=0.9;%联轴器效率a5=0.95;%滚筒效率n0=1420;%电机转速Z11=30;%第一组齿轮1的齿数Z21=

1 / 9
下载文档,编辑使用

©2015-2020 m.777doc.com 三七文档.

备案号:鲁ICP备2024069028号-1 客服联系 QQ:2149211541

×
保存成功