Inspiration
Students memorize formulas without seeing the phenomenon. We wanted a lab that runs on any phone or computer, free and with no sign-ups, where moving a control changes the physics instantly and every challenge explains why the answer is right.
What it does
Projectile motion: velocity, angle and gravity per planet (Moon, Mars, Earth, Jupiter), predicted trajectory and live data (range, max height, flight time) with substituted formulas. Simple pendulum: real numerical integration of the motion, theoretical vs measured period counted by zero crossings, velocity and acceleration vectors. Ohm's law: series and parallel circuits with electrons animated by current, a bulb that glows by power and an overload warning. Challenges: 12 timed questions with scoring, speed bonus, immediate explanations and best score saved on device.
How we built it
Next.js 16 (App Router) + strict TypeScript + React 19. All physics runs client-side with Canvas 2D and requestAnimationFrame: real equations of motion, numerical pendulum integration (θ'' = −(g/L)·sinθ) and series/parallel circuit calculations. No backend or API keys: the app is static and works on any device. Deployed on GitHub Pages. AI disclosure: built with AI assistance (Muse) during the hackathon.
Challenges we ran into
Automatic canvas scaling so any trajectory fits without losing readability. Measuring the pendulum's real period by detecting crossings at the lowest point in the same direction. Keeping 60 fps with three live simulations on one page.
Accomplishments that we're proud of
Real, verifiable physics: the measured period matches 2π·√(L/g) and the range matches v₀²·sin(2θ)/g. Premium dark responsive design, usable from a phone. Zero friction: no accounts, no costs, just open and experiment.
What we learned
The best way to teach a formula is to let students break it: switching gravity to the Moon's teaches more than ten paper exercises.
What's next
More labs (optics, waves, inclined plane), classroom mode with class codes, and challenges generated per student level.
Built With
- canvas
- github
- next.js
- react
- typescript