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.
pip install -r requirements.txt
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.
We implemented scripts to automatically move the cart and swing the pendulum upward.
We collected real-world sensor data across different scenarios to calibrate and validate the simulation.
Here are sample recordings of the data collection sessions:
Logs accelerometer + encoder data as the cart moves in short bursts.
🎥 Single Pendulum Movements Video 1
🎥 Single Pendulum Movements Video 2
Captures full-range theta swings — both minimum and maximum angles.
Focuses on the pendulum's motion while the cart is stationary.
🎥 Single Pendulum Movements Video
- Python 3.x
- Pygame
- NumPy
- Pandas
- SciPy