Stability of an Inverted Pendulum

34
April 6, 2010 1 Vicki Springmann Edward Montiel

Transcript of Stability of an Inverted Pendulum

8/12/2019 Stability of an Inverted Pendulum

http://slidepdf.com/reader/full/stability-of-an-inverted-pendulum 1/34

April 6, 2010 1

Vicki SpringmannEdward Montiel

8/12/2019 Stability of an Inverted Pendulum

http://slidepdf.com/reader/full/stability-of-an-inverted-pendulum 2/34

Advisor: Matt Pennybacker

Dr. Ildar Gabitov

Larry Hoffman, Department of Physics

April 6, 2010 2

8/12/2019 Stability of an Inverted Pendulum

http://slidepdf.com/reader/full/stability-of-an-inverted-pendulum 3/34

IntroductionTwo ModelsApplications

Simple Model TheoryLagrangianStability

Experimental DataParameters

StroboscopeComputer ModelingRunge-KuttaSimple Model Results

Error AnalysisApril 6, 2010 3

8/12/2019 Stability of an Inverted Pendulum

http://slidepdf.com/reader/full/stability-of-an-inverted-pendulum 4/34

April 6, 2010 4

Moving Cart Oscillating Base

8/12/2019 Stability of an Inverted Pendulum

http://slidepdf.com/reader/full/stability-of-an-inverted-pendulum 5/34

Segway (moving cart)Early Seismometers (moving cart)Neck and Spine in biomechanics (oscillating)

April 6, 2010 5

8/12/2019 Stability of an Inverted Pendulum

http://slidepdf.com/reader/full/stability-of-an-inverted-pendulum 6/34

Oscillating BaseTreated as a point massat its center of mass.

The Lagrangiansummarizes the

dynamics of the system.Must determine the kineticand potential energy

April 6, 2010 6

8/12/2019 Stability of an Inverted Pendulum

http://slidepdf.com/reader/full/stability-of-an-inverted-pendulum 7/34

The x and y coordinates of the mass are

Differentiating with respect to time,

Kinetic Energy is

April 6, 2010 7

8/12/2019 Stability of an Inverted Pendulum

http://slidepdf.com/reader/full/stability-of-an-inverted-pendulum 8/34

Substituting in the velocity,

But , so

April 6, 2010 8

8/12/2019 Stability of an Inverted Pendulum

http://slidepdf.com/reader/full/stability-of-an-inverted-pendulum 9/34

However,

So

+ (complete derivative) + (function of only t)

April 6, 2010 9

8/12/2019 Stability of an Inverted Pendulum

http://slidepdf.com/reader/full/stability-of-an-inverted-pendulum 10/34

On Earth, the potential gravitational energy is

So the potential energy of the pendulum is

Or,+ (function of only t)

April 6, 2010 10

8/12/2019 Stability of an Inverted Pendulum

http://slidepdf.com/reader/full/stability-of-an-inverted-pendulum 11/34

8/12/2019 Stability of an Inverted Pendulum

http://slidepdf.com/reader/full/stability-of-an-inverted-pendulum 12/34

The equation of motion is obtained by

April 6, 2010 12

8/12/2019 Stability of an Inverted Pendulum

http://slidepdf.com/reader/full/stability-of-an-inverted-pendulum 13/34

Can be separated into two oscillations:

large small (amplitude)

slow fast (frequency)

The interaction between these oscillationscauses the vertical position to become stable.

April 6, 2010 13

8/12/2019 Stability of an Inverted Pendulum

http://slidepdf.com/reader/full/stability-of-an-inverted-pendulum 14/34

may be written as

where

therefore

April 6, 2010 14

8/12/2019 Stability of an Inverted Pendulum

http://slidepdf.com/reader/full/stability-of-an-inverted-pendulum 15/34

is small, but is large.is large, but it is slow.

Balancing, we have that

And because can be treated as a constant,

April 6, 2010 15

8/12/2019 Stability of an Inverted Pendulum

http://slidepdf.com/reader/full/stability-of-an-inverted-pendulum 16/34

We also have

Averaging this, we get

April 6, 2010 16

8/12/2019 Stability of an Inverted Pendulum

http://slidepdf.com/reader/full/stability-of-an-inverted-pendulum 17/34

So we have an equation for the effectivepotential

April 6, 2010 17

8/12/2019 Stability of an Inverted Pendulum

http://slidepdf.com/reader/full/stability-of-an-inverted-pendulum 18/34

The derivative of with respect to is

From this, we see that andare stable.The stability condition for is

April 6, 2010 18

8/12/2019 Stability of an Inverted Pendulum

http://slidepdf.com/reader/full/stability-of-an-inverted-pendulum 19/34

The potential has two maxima and two minimafor if the stability condition is met

Minimum at and

Maxima are between 0 and , and andTheir precise location depends on the parameters.Find by taking the derivative and setting it equal to 0.

The potential vs. angle graph is shown after theparameters have been determined.

April 6, 2010 19

8/12/2019 Stability of an Inverted Pendulum

http://slidepdf.com/reader/full/stability-of-an-inverted-pendulum 20/34

g = -9.8 m/s 2

a = 0.009 ± 0.0005 m

Pendulum is a trapezoidal prismlength = 28cmtop: 0.9cm x 0.9cmbottom: 0.9cm x 0.4cm

l = 0.12m (from center of mass)

April 6, 2010 20

8/12/2019 Stability of an Inverted Pendulum

http://slidepdf.com/reader/full/stability-of-an-inverted-pendulum 21/34

An instrument used to make a cyclicallymoving object appear slow-moving orstationary.

The lamp emits brief and rapid flashes of light.The frequency of the flash is adjusted until it is

equal to the object’s frequency.This makes it appear stationary.

Example with cpu fan:http://www.youtube.com/watch?v=_eoDVpC67Rc&feature=related

April 6, 2010 21

8/12/2019 Stability of an Inverted Pendulum

http://slidepdf.com/reader/full/stability-of-an-inverted-pendulum 22/34

Used to measure the frequency of fastoscillations.

When the pendulum did not appear to move

vertically, frequency can be read off device.Measurements were in units of min -1

Minimum stable frequency measured as1970 ± 49 min -1

206 ± 5.1 rad/s

Stability range measurements at 2097 min -1

220.0 rad/s

April 6, 2010 22

8/12/2019 Stability of an Inverted Pendulum

http://slidepdf.com/reader/full/stability-of-an-inverted-pendulum 23/34

April 6, 2010 23

Necessary for inputting equation of motioninto MatLab.

8/12/2019 Stability of an Inverted Pendulum

http://slidepdf.com/reader/full/stability-of-an-inverted-pendulum 24/34

Family of iterative methods to solve first orderODEs

Fourth order Runge-Kutta is the standardmethod

Error per step: O(h5); Total Error: O(h

4)

April 6, 2010 24

8/12/2019 Stability of an Inverted Pendulum

http://slidepdf.com/reader/full/stability-of-an-inverted-pendulum 25/34

Given an initial value problem

The slope is the weighted average of the slopes:At the beginning of the interval

At the midpoint of the interval

At the end of the interval

April 6, 2010 25

8/12/2019 Stability of an Inverted Pendulum

http://slidepdf.com/reader/full/stability-of-an-inverted-pendulum 26/34

8/12/2019 Stability of an Inverted Pendulum

http://slidepdf.com/reader/full/stability-of-an-inverted-pendulum 27/34

April 6, 2010 27

Ω = 220.0 [rad/s]

φ

t

8/12/2019 Stability of an Inverted Pendulum

http://slidepdf.com/reader/full/stability-of-an-inverted-pendulum 28/34

Theoretically, the pendulum is stable when

Experimentally, minimum frequency ofstability is 206 ± 5.1 rad/s

April 6, 2010 28

rad/s

8/12/2019 Stability of an Inverted Pendulum

http://slidepdf.com/reader/full/stability-of-an-inverted-pendulum 29/34

April 6, 2010 29

Ω = 220.0 [rad/s]

φ

u

Stable Region

8/12/2019 Stability of an Inverted Pendulum

http://slidepdf.com/reader/full/stability-of-an-inverted-pendulum 30/34

April 6, 2010 30

φ

d u

/ d φ

Ω = 220.0 [rad/s]

Stable Region

8/12/2019 Stability of an Inverted Pendulum

http://slidepdf.com/reader/full/stability-of-an-inverted-pendulum 31/34

8/12/2019 Stability of an Inverted Pendulum

http://slidepdf.com/reader/full/stability-of-an-inverted-pendulum 32/34

StroboscopeDifficult to fine tuneResonance problem

Pendulum set upInterference from guidePendulum loosely attached to base (wobbling)Tape used to hold constant frequency loosens fromthe vibrations.

April 6, 2010 32

8/12/2019 Stability of an Inverted Pendulum

http://slidepdf.com/reader/full/stability-of-an-inverted-pendulum 33/34

The pendulum was treated as though it were apoint mass at its center of mass.

This is more appropriate for a sphere at the endof a thin, rigid rod.

The distributed mass of our pendulum needs tobe taken into account.This will be the focus of our future work.

April 6, 2010 33

8/12/2019 Stability of an Inverted Pendulum

http://slidepdf.com/reader/full/stability-of-an-inverted-pendulum 34/34

Landau L. D. & Lifshitz E. M., Mechanics ,(Pergamon, NY, 1960) pp 93-95. Motion in arapidly oscillating field

Smith H.J.T. & Blackburn J.A., Am J Phys 60 , 909(1992). Experimental study of an invertedpendulum