A diagram of a crane modeled as a pendulum. On the left, a vertical line marks the starting position \(x = 0\) with a mass hanging at the bottom and a pivot point at the top. A horizontal arrow along the top track shows the pivot moving rightward to a new position. From the new pivot, three angled lines depict the pendulum swinging left, hanging straight down, and swinging right, accompanied by a curved double-headed arrow indicating oscillatory motion.
goal: move the object directly over the target location and have the mass at the end of pendulum stay there w/o swinging
let's work out the equation for the motion
Figure: Pendulum coordinates \(D(t)\), \(L\), \(\theta\), and \(x(t)\)
Detailed description
A coordinate diagram with a vertical reference line at \(x = 0\). Along the top track, an arrow labeled \(D(t)\) points from \(x = 0\) to the pivot. From the pivot, a vertical dashed line extends downward, and the pendulum of length \(L\) with mass \(m\) at its end swings to the right at an angle \(\theta\) from the vertical. Along the bottom, a horizontal arrow points from \(x = 0\) to the horizontal position of the mass, labeled \(x(t)\).
where:
\(D\): where the pivot is
\(L\): length of pendulum
\(m\): mass of the object
\(x(t)\): where the mass is
Page 2 of 8
Position Approximation and Forces Acting on the Object
\[ x(t) = D(t) + L\sin\theta \]
assume small \(\theta \to \sin\theta \approx \theta\)
so, \(x = D + L\theta\)
forces acting on the object:
Figure: Forces on the hanging mass
Detailed description
A free-body diagram of the object as a point mass. An arrow labeled \(\text{tension} = T\) points upward and to the left along the pendulum rod, and an arrow labeled \(\text{weight}\) points straight downward.
redraw:
Figure: Horizontal and vertical components of tension \(T\)
Detailed description
A decomposed free-body diagram of the mass. The tension vector \(T\), tilted at angle \(\theta\) left of vertical, is resolved into an upward vertical component \(T\cos\theta\) and a leftward horizontal component \(T\sin\theta\) (highlighted in red). The weight \(mg\) points straight downward.
tension has horizontal and vertical components
focus on the horizontal component only (we want to track if the object is over the target)
Page 3 of 8
Derivation of the Equation of Motion
Newton's 2nd Law:
\[ \begin{aligned} m x'' &= -T\sin\theta \\ &= -T\theta \\ m x'' &= -mg\,\theta \end{aligned} \]
\(\sin\theta \approx \theta\) (small oscillation)
vertical component: \(T\cos\theta = mg\)
\(T = mg\)
from \(x = D + L\theta\), we get
\[ m x'' = -mg\left(\frac{x - D}{L}\right) \]
rewrite:
\[ m x'' = -\frac{mg}{L} x + \frac{mg}{L} D \]
cancel out mass
\[ x'' + \left(\frac{g}{L}\right) x = \left(\frac{g}{L}\right) D \]
compare to \(m x'' + k x = f(t)\)
same equation structurally
mass is irrelevant!
Page 4 of 8
Figure: Desired final position over target
Detailed description
A crane diagram showing the pendulum initially hanging straight down at \(x = 0\) with a solid line and filled mass. A horizontal arrow at the top shows the pivot moving right to a new location, where a dashed vertical line and dashed circle illustrate the desired final resting state of the mass directly over the target without swinging.
move to new place such that the mass does not swing and is directly over the target
\[ x'' + \left(\frac{g}{L}\right) x = \left(\frac{g}{L}\right) D \]
let's use \(g = 10\text{ m/s}^2\), \(L = 10\text{ m}\)
start from rest at \(x = 0\), target is \(x = 1\)
\[ \text{so, } \quad x'' + x = D \qquad x(0) = x'(0) = 0 \]
1st attempt: move the pivot quickly to \(1\)
so, \(D = u_0(t)\) (step up at \(t = 0\))
\(D = 1\)
\[ x'' + x = 1 \qquad x(0) = x'(0) = 0 \]
Page 5 of 8
Laplace Transform Solution for the First Attempt
Laplace transform both sides \(\qquad \mathcal{L}\{x\} = X\)
\[ s^2 X - s \underbrace{x(0)}_{0} - \underbrace{x'(0)}_{0} + X = \frac{1}{s} \]
\[ \begin{aligned} (s^2 + 1) X &= \frac{1}{s} \\ X &= \frac{1}{s(s^2 + 1)} \\ &= \frac{A}{s} + \frac{Bs + C}{s^2 + 1} \\ &= \cdots = \frac{1}{s} - \frac{s}{s^2 + 1} \end{aligned} \]
Figure: Pendulum oscillating across \(0 \le x(t) \le 2\)
Detailed description
A diagram illustrating the failure of the first attempt. With the pivot fixed at \(x = 1\), the mass swings continuously back and forth between \(x = 0\) on the left and \(x = 2\) on the right, as indicated by two angled pendulum arms and a double-headed curved arrow.
Page 6 of 8
2nd attempt: move pivot half way, wait a bit, move the rest
Figure: Pivot moved halfway between \(x = 0\) and \(x = 1\)
Detailed description
The pivot is moved halfway to \(x = 1/2\), between vertical dashed reference lines at \(x = 0\) and \(x = 1\). Dashed pendulum lines show the mass swinging back and forth between \(x = 0\) and \(x = 1\).
Figure: Pivot moved the rest of the way
Detailed description
The pivot is moved the remaining distance to the target position at the right, with a vertical dashed line extending down to the mass hanging directly below it, relative to the dashed vertical reference line at \(x = 0\).
\[ x'' + x = \begin{cases} \dfrac{1}{2} & 0 \le t < c \\[0.6em] 1 & t \ge c \end{cases} \]
so, choose \(c\) such that \(\cos(t) = -\cos(t - c)\)
\(\to c = \text{half period} \to c = \pi\)
Figure: Waiting a half period before second move
Detailed description
A two-panel sequence diagram. Left panel: the mass begins at \(x = 0\), with a dashed line marking the target \(x = 1\). Right panel: the pivot sits at \(x = 1/2\), and a curved arrow labeled "half period" tracks the mass swinging from \(x = 0\) over to \(x = 1\). A rightward arrow leads to the final action.
\(\to\) move as soon as mass is over \(x = 1\)
Page 8 of 8
Input Shaping and Model Realism
each move induces oscillation because the mass cannot instantaneously change location (inertia)
\(\to\) time 2nd move such that the oscillations are exactly out of phase
this is called input shaping
this model we used is not entirely realistic because we cannot instantaneously move the pivot
\(\to\) more realistic is a ramp
Figure: Step input (not realistic)
Detailed description
A coordinate graph with a vertical axis marked at \(1/2\) and a horizontal time axis marked at \(c\). The plotted function remains at \(0\) from \(t = 0\) to \(t = c\), then jumps discontinuously to a constant value of \(1/2\) for \(t \ge c\), representing an instantaneous pivot movement that is not realistic.
Figure: Ramp input (more realistic)
Detailed description
A coordinate graph with a vertical axis marked at \(1/2\) and a horizontal time axis marked at \(c\). The plotted function increases linearly from the origin \((0, 0)\) to \((c, 1/2)\) and then remains constant at \(1/2\) for \(t \ge c\), representing a continuous ramp motion of the pivot that is more realistic.