Inspiration

As a high school physics student preparing for competitive exams in Indore, I noticed how often classmates memorize equations for rotational torque, Young's modulus, or convex lenses without ever seeing how those forces behave in real time. At the same time, many local schools and underserved students do not have access to expensive physics apparatus or digital electronics benches. I wanted to build a free, zero-install web lab that works on any basic smartphone or classroom smartboard so every student can experiment with physics and semiconductor logic visually.

What it does

STEM SimLab Pro is an interactive browser-based simulation lab for high school Physics and Semiconductor Digital Logic:

  • Automated Problem Solver: Detects whether a student's question involves kinematics, rotational dynamics, elasticity, optics, or digital logic and opens the matching visual simulation.
  • 2D Projectile & Rotational Mechanics Labs: Lets students adjust launch angle, velocity, tangential force, mass, and radius to observe parabolic paths and angular acceleration ($\alpha = \tau / I$) live at 60 FPS.
  • Material Elasticity, Waves & Ray Optics: Visualizes Young's modulus stress-strain wire elongation, transverse wave motion, and real-time light refraction through a convex lens.
  • 4-Bit Silicon ALU: Simulates a 4-bit CMOS binary Arithmetic Logic Unit with live binary LED registers and 4-bit overflow masking.
  • Classroom Diagnostic Assessment: Includes a built-in Pre-Test and Post-Test tracker that logs student learning gains into a cloud spreadsheet to help teachers measure conceptual improvement.

How I built it

  • Frontend & Physics Engine: Built with React, JavaScript, and HTML5 <canvas>, using requestAnimationFrame with delta-time (dt) integration so animations run at accurate physical speeds on any device.
  • Digital Logic Simulation: Implemented bitwise operations (&, ^, and 4-bit register masking) to mirror real CMOS hardware behavior in real time.
  • Serverless Cloud Tracker: Connected the diagnostic assessment to a Google Apps Script webhook using URLSearchParams and fetch() so Pre-Test and Post-Test scores merge cleanly into a single row per student.
  • Deployment: Hosted globally on Vercel with zero downloads or sign-ups required.

Challenges I ran into

  • Keeping Physics Smooth Across Different Devices: Early animations ran faster on laptops than on budget smartphones. Switching to delta-time (dt = (now - lastTime) / 1000) locked every simulation to true SI-unit time regardless of screen refresh rate.
  • Preventing Duplicate Student Rows: When students took both a Pre-Test and a Post-Test, initial database submissions created two separate rows per person. I rewrote the Google Apps Script backend to search existing entries by school code and student name and update the matching row in place.

Accomplishments that I'm proud of

  • I built a complete, multi-module STEM simulation engine that loads instantly on mobile phones and school smartboards with zero installation.
  • Designed a clean, single-row classroom analytics pipeline that lets teachers and community outreach groups track real conceptual score gains before and after using the simulations.

What I learned

Building STEM SimLab Pro taught me how to translate differential and algebraic physics formulas into real-time 60 FPS canvas animations, how 4-bit binary hardware registers handle logic gates and overflow, and how frontend React applications communicate asynchronously with serverless cloud backends.

What's next for STEM SimLab Pro

  • Expanding classroom pilots across high school physics sections, coaching batches, and community STEM outreach sessions in Indore.
  • Adding more semiconductor and hardware modules—including full-adder gate schematics and RC circuit transient response labs—while preparing an open-source release under engineering mentorship.
Share this project:

Updates