Skip to content

Amirjf/single-rod-pendulum-digital-twin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🌀 Single Pendulum Digital Twin

A digital twin simulation of a single rod pendulum built with Python and pygame.
This project models and simulates pendulum dynamics and includes real-world dataset collection, automated movement, and filtering experiments.


📦 Install

pip install -r requirements.txt

🚀 Run the Simulation

python simulate_pendulum.py

This launches the pendulum simulation UI built with pygame.
It visualizes the dynamics of a single rod pendulum and is synced with real-world data.


🤖 Automated Movements

We implemented scripts to automatically move the cart and swing the pendulum upward.

Pendulum Automated Movement

📂 Dataset Collection

We collected real-world sensor data across different scenarios to calibrate and validate the simulation.
Here are sample recordings of the data collection sessions:

🎥 Cart Movements Dataset

Logs accelerometer + encoder data as the cart moves in short bursts.

🎥 Single Pendulum Movements Video 1

🎥 Single Pendulum Movements Video 2


🎥 Pendulum Extremes Dataset

Captures full-range theta swings — both minimum and maximum angles.


🎥 Single Pendulum Movements Dataset

Focuses on the pendulum's motion while the cart is stationary.

🎥 Single Pendulum Movements Video

🛠️ Built With

  • Python 3.x
  • Pygame
  • NumPy
  • Pandas
  • SciPy

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •