matlab编程大作业,matlab大作业

matlab大作业

更新时间:2017/2/23 14:40:00  浏览量:560  手机版

MATLAB语言、控制系统分析与设计

大作业

平衡杆小球位置控制系统

设计与仿真

专 业:电气工程及其自动化 班 级: 设 计 者: 学 号:

华中科技大学电气与电子工程学院

2008年1月

平衡杆小球位置控制系统设计与仿真

一、问题描述与实验要求

A ball is placed on a beam, see figure below, where it is allowed to roll with 1 degree of freedom along the length of the beam. A lever arm is attached to the beam at one end and a servo gear at the other. As the servo gear turns by an angle theta, the lever changes the angle of the beam by alpha. When the angle is changed from the vertical position, gravity causes the ball to roll along the beam. A controller will be designed for

this system so that the ball's position can be manipulated.

For this problem, we will assume that the ball rolls without slipping and friction between the beam and ball is negligible. The constants and variables for this example are defined as follows:

M R D G L J R Alpha

mass of the ball radius of the ball lever arm offset gravitational acceleration length of the beam ball's moment of inertia ball position coordinate beam angle coordinate

0.11 kg 0.015 m 0.03 m 9.8 m/s^2 1.0 m

9.99e-6 kgm^2

Theta servo gear angle

System Equations

The Lagrangian equation of motion for the ball is given by the

following:

Linearization of this equation about the beam angle, alpha = 0, gives us

the following linear approximation of the system:

The equation which relates the beam angle to the angle of the gear can

be approximated as linear by the equation below:

Substituting this into the previous equation, we get:

Design requirements

The design criteria for this problem are: Settling time less than 3 seconds ? Overshoot less than 5%

?

1.数学模型的建立

将上面推导的简化式做拉普拉斯变换,得到: 变化后得到:

R(s)

mg

??

(JR

2

(

JR

2

?m)Rs(s)??mg

2

dL

?s( )

d2

?(s)

?m)s

化简为:

R(s)

??

mgdR

22

2

?(s)(J?mR)ls

2.设计目标

希望能精确小球的位置,即要求小球的稳态误差为零,同时希望因扰动引起的稳态误差也能为零。对于动态性能的要求,希望小球能较快且平稳,期望调节时间Ts为3s,超调量小于5%。根据时域和频域指标的关系,可将时域性能指标转换为频率响应的约束条件。如系统的带宽与闭环系统自然振荡频率?n和阻尼比?有关,而??n与调节时间有关。相角裕度PM和阻尼比?有关,进而与超调量相关。

?bw??n

?

?1?2???

2

4?

4

?4?

4

2

?2

2

4TS?

?1?2???

2

4??4??2

(1-4)

zeta = -log(.05)/sqrt(pi^2+(log(.05))^2);

PM = 100*zeta;

wbw = (4/(3*zeta))*sqrt((1-2*zeta^2)+sqrt(4*zeta^4-4*zeta^2+2));

得 ?> 0.6901,PM> 69.0107 deg,wbw> 1.9785 rad/sec

3.开环响应

首先用MATLAB描述上述模型,并观察开环系统阶跃响应。

R(s)

?(s)

?

mgdR

2

2

2

(J?mR)ls

J=9.99e-6; m=0.11; R=0.015; g=9.8; d=0.03; l=1.0;

num=m*g*d*R*R;

den=[(J+m*R*R)*l 0 0]; ball=tf(num,den)

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值