An interactive HTML5 simulation of an Atwood Machine for physics education. This simulation demonstrates the relationship between acceleration and motion direction, showing that objects can move in one direction while accelerating in another.
- Adjustable Masses: Change the mass of both objects independently (0.1 - 20 kg)
- Initial Velocity Control: Set any initial velocity (-10 to +10 m/s) to demonstrate that acceleration direction ≠ motion direction
- Real-time Physics: Accurate physics simulation using classical mechanics equations
- Frictionless Pulley: Ideal Atwood machine with zero friction and massless pulley
- Visual Feedback:
- Color-coded masses
- Velocity vectors (green arrows)
- Acceleration vectors (orange dashed arrows)
- Real-time display of acceleration, velocity, tension, and time
- Educational Content: Comprehensive explanations of the physics principles
- Responsive Design: Works on desktop and mobile devices
Simply open index.html in any modern web browser. No server required!
This simulation is perfect for teaching:
- Newton's Laws of Motion
- The difference between acceleration and velocity
- How initial conditions affect motion
- Special case: Equal masses (constant velocity)
- The concept of a frictionless system
-
Basic Setup: Set m₁ = 2 kg, m₂ = 3 kg, v₀ = 0 m/s
- Observe: m₂ accelerates downward
-
Counterintuitive Motion: Set m₁ = 2 kg, m₂ = 3 kg, v₀ = -5 m/s
- Observe: m₁ moves down initially despite acceleration pointing the other way!
-
Constant Velocity: Set m₁ = 2 kg, m₂ = 2 kg, v₀ = 3 m/s
- Observe: System maintains constant velocity (a = 0)
-
Extreme Difference: Set m₁ = 1 kg, m₂ = 10 kg, v₀ = 0 m/s
- Observe: Rapid acceleration
a = g × (m₂ - m₁) / (m₁ + m₂)
Where:
g = 9.8 m/s²(gravitational acceleration)m₁= mass 1m₂= mass 2
T = 2m₁m₂g / (m₁ + m₂)
- Pure HTML5/CSS3/JavaScript - No frameworks required
- Canvas API for smooth animations
- 60 FPS physics simulation
- Responsive design with CSS Grid
- Clean, maintainable code with OOP principles
Atwood Machine/
├── index.html # Main HTML structure
├── styles.css # Styling and layout
├── simulation.js # Physics simulation and animation
└── README.md # This file
The design is inspired by modern educational websites with:
- Clean, professional layout
- Gradient backgrounds
- Clear information hierarchy
- Accessible color scheme
- Intuitive controls
- Clone or download this repository
- Open
index.htmlin a web browser - Adjust the masses and initial velocity using the controls
- Click Start to begin the simulation
- Use Pause to freeze the motion
- Click Reset to return to initial conditions
Works on all modern browsers:
- ✅ Chrome/Edge (recommended)
- ✅ Firefox
- ✅ Safari
- ✅ Opera
MIT License - Feel free to use this for educational purposes!
Created for physics education by The Thinking Experiment
Perfect for:
- High school physics classes
- University mechanics courses
- Online physics education
- Self-study and exploration
Suggestions and improvements are welcome! This is an educational tool meant to help students understand physics better.
For questions or feedback about this simulation, please open an issue on GitHub.
"The best way to understand physics is to see it in action!"