A simple pendulum is a fundamental physical system consisting of a mass attached to a lightweight rod. When the pendulum moves, it performs a periodic motion under the influence of gravity.
The pendulum serves as an excellent example of a dynamic system where we can apply Kalman filtering for tracking and prediction.
The motion of a simple pendulum is described by a second-order differential equation:
Where:
For small angles (θ < 15°), we can approximate the equation to:
This becomes a simple harmonic oscillator with angular frequency:
And the period (time for one complete oscillation) of the pendulum is:
Adjust the various parameters and see how they affect the pendulum's motion:
To understand the Kalman Filter algorithm, we'll start by understanding the system state. The state of the pendulum can be described by a two-component vector:
Where:
In the following sections, we'll see how the Kalman Filter algorithm allows us to track this state even when our measurements are noisy or incomplete.