Physics-Masterlab banner

Physics-Masterlab

6 devlogs
14h 11m 49s

Physics MasterLab is an interactive webbased simulation platform designed to demonstrate key concepts from physics through visual and experimental learning. Instead of static diagrams, this project allows users to explore real-time behavior of s…

Physics MasterLab is an interactive webbased simulation platform designed to demonstrate key concepts from physics through visual and experimental learning. Instead of static diagrams, this project allows users to explore real-time behavior of systems across thermodynamics, electrical circuits, and semiconductor physics.

Demo Repository

Loading README...

thebiraj_hkr

Shipped this project!

Hours: 3.09
Cookies: 🍪 51
Multiplier: 16.4 cookies/hr

dark and light mode now available. theme toggle button in sidebar (🌙/☀️) switches instantly between dark mode (cyan/red accents) and light mode (blue/red accents). preference persists via localstorage. all visualizations—wheatstone bridge and pn diode simulator—adapt dynamically. bug fix: reverse bias curve now renders correctly when switching bias modes. supports all modern browsers.

thebiraj_hkr

Changelog

  • Enhance UI with dark/light mode toggle (99f6ca3)

in this devlog i have implemented a fully functional dark and light mode system with css custom properties for instant theme switching and localstorage for persistence. clicking the theme toggle button (🌙/☀️) instantly switches between dark mode with cyan/red accents and light mode with blue/red accents. all 12 color properties adapt seamlessly across the nav ui, wheatstone bridge circuit, pn diode graph, and controls. theme preference persists across page reloads, and a bug fix ensures reverse bias curve renders correctly.

Attachment
Attachment
Attachment
0
thebiraj_hkr

Shipped this project!

Hours: 11.11
Cookies: 🍪 75
Multiplier: 6.76 cookies/hr

I built Physics MasterLab as an interactive way to explore core physics concepts beyond static textbooks. The project brings together simulations of the Carnot Cycle, Wheatstone Bridge, and a fully functional PN Junction Diode I–V characteristics lab. The diode section is the highlight, featuring forward and reverse bias behavior, breakdown region visualization, log scale analysis, material selection (silicon and germanium), and realtime graph tracing with data logging. My goal was to turn theory into something visual and intuitive,something students can experiment with, not just read about. This project reflects my interest in combining physics with web development to create meaningful learning tools.

thebiraj_hkr

in this devlog:

  • i have updated the readme and all the parts
  • optimized system functionality
  • deployed it in github pages

#Future Improvements

  • Export graph as image
  • Download data as CSV
  • Add more semiconductor devices
  • Responsive design improvements
  • Modular JavaScript structure

Changelog

Attachment
0
thebiraj_hkr

in this devlog many things have changed:

  • first the wheatstone bridge is fully optimized and many things are included
  • second the pn junction diode is finished
  • forward and reverse biasing is implemented
  • the graph is implemented

future updates

the system can include more physics things which could help people actually learn practically in classes.

Attachment
Attachment
0
thebiraj_hkr

i started by setting up the basic app layout with section-based navigation, then got the carnot part working with interactive behavior and cleaner visuals. after that, i built the wheatstone bridge with a live rx slider, voltage output logic, and galvanometer deflection so it reacts when the bridge is balanced or unbalanced. most of the time went into refining the circuit drawing and connections so it looks more like the reference diagram and feels correct to use.
also i added geogebra link as i couldnt make the graph for thermodynamics.

Attachment
0
thebiraj_hkr

In todays devlog i have implemented the carnot cycle graph which is a PV diagram, consists of two isothermal processes (one at high temperature Th and one at low temperature Tc) and two adiabatic processes connecting them. The graph typically shows a rectangular shape with the isothermal processes as horizontal lines and the adiabatic processes as vertical lines. The area enclosed by the cycle represents the work done by the engine, and the efficiency can be calculated using the temperatures of the heat source and sink.
for future update i am gonna make the graph interactive and also design the wheatstone bridge and pn junction diode graph with similar interactivity

Changelog

Attachment
0
thebiraj_hkr

hello everyone. hi again. i am creating a physics simulation in website using diff componects. this devlog indicates the completion of basic html structure and some css to improve the system uui…

future update:

  • include the graphs and real physics thing
  • implement js canvas

Changelog

Attachment
Attachment
0