Skip to content

In Intermediate Physics Laboratory (2025) we have a project to analyze a chaotic pendulum system. This will be done through tracking the angles of a physical set up, making a theoretical model, then comparing the results of the two.

Notifications You must be signed in to change notification settings

AdamField118/Chaotic_Pendulum

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

94 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Table of Contents

    Overview
    Video Processing
      Motivation
        Dev Process
          Start
          Decoding Chaotic Tracking
            Color Differentiation Previous Frame Proximity
          Camera Setting
      How to Use the Code Results
    Simulation
      Plan
      Mathematical Model
        Setting up the Lagrangian Euler-Lagrange Equations Final Equations
      The Code
        Config
          Params
            Solver
        Equations of Motion
          Parameters and State Extraction Intermediate Calculations Return Value
        Solve Pendulum ODE Create Animation Process Pendulum Data Graphing Functions Main
      Results
    Verification
      Goal
      The Code
        Fourier Functions
          fourier_series
            Parameters Function Description
          fit_fourier
            Parameters Function Description
        Graphing Functions
          plot_fourier_comparison plot_deviation
      Results
    Poster Future Work Presentation Credits

Overview

In Intermediate Physics Laboratory (2025) we have a project to analyze a chaotic pendulum system. This will be done through tracking the angles of a physical set up, making a theoretical model, then comparing the results of the two.

Here is an image of the physical setup we are working with:

Setup

Figure 1. Physical Setup.

The MATLAB code given to us for tracking LEDs in a video was broken, old, and quite frankly bad, so we developed a new solution using openCV and other python libraries. See this README.

We also used Lagrangians to make a theoretical model, then we simulated the model. See this README.

If you are a future group doing this lab and hope to code something cool, consider forking this repository!

Poster

Here is a poster of our progress made for the first lab of IPL:

Poster

Figure 2. Project Poster!

Presentation

The presentation in class went well! Here is the slides we used.

Future Work

Our verification shows Arm 1 matches simulation well (±5°) while Arm 2 diverges significantly (±50°), suggesting our frictionless model needs refinement.

  • Add viscous damping terms to the equations of motion
  • Fit physical parameters (masses, lengths, damping coefficients) from video data using inverse optimization
  • Implement a hybrid physics-ML model to capture residual dynamics (air resistance, joint compliance)
  • Characterize chaos via Lyapunov exponents and Poincaré sections

Credits

Made by Adam Field and Christopher Pacheco.
Thank you Professor Noviello and TAs Drew and Holden for all the help.

About

In Intermediate Physics Laboratory (2025) we have a project to analyze a chaotic pendulum system. This will be done through tracking the angles of a physical set up, making a theoretical model, then comparing the results of the two.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages