毕业设计-control-of-an-inverted-pendulum-外文文献.doc
《毕业设计-control-of-an-inverted-pendulum-外文文献.doc》由会员分享,可在线阅读,更多相关《毕业设计-control-of-an-inverted-pendulum-外文文献.doc(11页珍藏版)》请在淘文阁 - 分享文档赚钱的网站上搜索。
1、Control of an Inverted PendulumJohnny LamAbstract: The balancing of an inverted pendulum by moving a cart along a horizontal track is a classic problem in the area of control. This paper will describe two methods to swing a pendulum attached to a cart from an initial downwards position to an upright
2、 position and maintain that state. A nonlinear heuristic controller and an energy controller have been implemented in order to swing the pendulum to an upright position. After the pendulum is swung up, a linear quadratic regulator state feedback optimal controller has been implemented to maintain th
3、e balanced state. The heuristic controller outputs a repetitive signal at the appropriate moment and is finely tuned for the specific experimental setup. The energy controller adds an appropriate amount of energy into the pendulum system in order to achieve a desired energy state. The optimal state
4、feedback controller is a stabilizing controller based on a model linearized around the upright position and is effective when the cart-pendulum system is near the balanced state. The pendulum has been swung from the downwards position to the upright position using both methods and the experimental r
5、esults are reported.1. INTRODUCTION The inverted pendulum system is a standard problem in the area of control systems. They are often useful to demonstrate concepts in linear control such as the stabilization of unstable systems. Since the system is inherently nonlinear, it has also been useful in i
6、llustrating some of the ideas in nonlinear control. In this system, an inverted pendulum is attached to a cart equipped with a motor that drives it along a horizontal track. The user is able to dictate the position and velocity of the cart through the motor and the track restricts the cart to moveme
7、nt in the horizontal direction. Sensors are attached to the cart and the pivot in order to measure the cart position and pendulum joint angle, respectively. Measurements are taken with a quadrature encoder connected to a MultiQ-3 general purpose data acquisition and control board. Matlab/Simulink is
8、 used to implement the controller and analyze data. The inverted pendulum system inherently has two equilibria, one of which is stable while the other is unstable. The stable equilibrium corresponds to a state in which the pendulum is pointing downwards. In the absence of any control force, the syst
9、em will naturally return to this state. The stable equilibrium requires no control input to be achieved and, thus, is uninteresting from a control perspective. The unstable equilibrium corresponds to a state in which the pendulum points strictly upwards and, thus, requires a control force to maintai
10、n this position. The basic control objective of the inverted pendulum problem is to maintain the unstable equilibrium position when the pendulum initially starts in an upright position. The control objective for this project will focus on starting from the stable equilibrium position (pendulum point
11、ing down), swinging it up to the unstable equilibrium position (pendulum upright), and maintaining this state.2. MODELLING A schematic of the inverted pendulum is shown in Figure 1.Figure 1. Inverted Pendulum SetupA cart equipped with a motor provides horizontal motion of the cart while cart positio
12、n, p, and joint angle, , measurements are taken via a quadrature encoder. By applying the law of dynamics on the inverted pendulum system, the equations of motion are where mc is the cart mass, mp is the pendulum mass, I is the rotational inertia, l is the half-length of the pendulum, R is the motor
13、 armature resistance, r is the motor pinion radius, Km is the motor torque constant, and Kg is the gearbox ratio. Also, for simplicity,and note that the relationship between force, F, and voltage, V, for the motor is:Let the state vector be defined as:Finally, we linearize the system about the unsta
14、ble equilibrium(0 0 0 0)T.Note that = 0 corresponds to the pendulum being in the upright position. The linearization of the cart-pendulum system around the upright position is:WhereFinally, by substituting the parameter values that correspond to the experimental setup:3. STABILIZING CONTROLLER DESIG
15、N The controller design approach for this project is broken up into two components. The first part involves the design of an optimal state feedback controller for the linearized model that will stabilize the pendulum around the upright position. The second part involves the design of a controller th
16、at swings the pendulum up to the unstable equilibrium. When the pendulum approaches the linearized point, the control will switch to the stabilizing controller which will balance the pendulum around the upright position. The state feedback controller responsible for balancing the pendulum in the upr
17、ight position is based on a Linear Quadratic Regulator (LQR) design using the linearized system. In a LQR design, the gain matrix K for a linear state feedback control law u = -Kx is found by minimizing a quadratic cost function of the formwhere Q and R are weighting parameters that penalize certain
18、 states or control inputs. The weighting parameters chosen in the design of the optimal state feedback controller are:Based on this design, the controller gain matrix for the linearized system is:By using this K and the control law u = -Kx, the system is stabilized around the linearized point (pendu
19、lum upright). Since this control law is based on the linearized system, the state feedback optimal controller is only effective when the pendulum is near the upright position.4. STATE ESTIMATION For the inverted pendulum experimental setup, not all the state variables are available for measurement.
20、In fact, only the cart position, p, and the pendulum angle, , are directly measured. This means that the cart velocity and the pendulum angular velocity are not immediately available for use in any control schemes beyond just stabilization. Thus, an observer is relied upon to supply accurate estimat
21、ions of the states at all cart-pendulum positions. A linear full state observer can be implemented based on the linearized system derived earlier. This observer is simple in design and provides accurate estimation of all the states around the linearized point. The observer is implemented by using a
22、duplicate of the linearized system dynamics and adding in a correction term that is simply a gain on the error in the estimates. The observer gain matrix is determined by an LQR design similar to that used to determine the gain of the optimal state feedback stabilizing controller. In this case, the
23、weighting parameters are chosen to be:Based on this design, the observer gain matrix is:Since the linear full state observer is based on the linearized system, it is only effective in estimating the state variables when the cart-pendulum system is near the upright position. Thus, a low-pass filtered
24、 derivative is used to estimate the two unmeasured states, cart velocity and pendulum angular velocity, when the system is not close to the unstable equilibrium. This method approximates the cart velocity and pendulum angular velocity by using a finite difference and then passing it through a low-pa
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- 毕业设计 control of an inverted pendulum 外文 文献
限制150内