Built to order

Browser-Based Circuit Simulator with Live Waveform Plotting

This project builds a browser-based circuit simulator with a real circuit solver: modified nodal analysis with backward-Euler transient simulation, a clickable schematic, editable component values, and live voltage and current waveforms plotted as the circuit runs. It ships with three working example circuits — a voltage divider, an RC charging circuit and an RC low-pass filter — plus a component palette for adding resistors, capacitors, inductors and sources. Suitable for B.E./B.Tech final-year projects in Computer Science, IT and Web Development.

Chat on WhatsApp — get a quotation

Web Development GitHTML5 · CSS · JavaScriptModified nodal analysisBackward-Euler transient solverCanvas waveform plottingSVG schematic renderingGaussian eliminationWeb browser runtimeSoftware
CircuitSim demo — an RC charging circuit schematic with a 5 V source, 1 kΩ resistor and 100 µF capacitor beside its live charging waveform
More project photos (2)

The problem

Circuit theory is usually taught with equations and static diagrams, and the gap between a formula and a working circuit is where students lose confidence. A browser-based circuit simulator closes that gap: change a resistor value and the waveform moves, charge a capacitor and watch the exponential curve form, feed a sine wave into an RC filter and see attenuation and phase lag appear. This project builds that simulator as a single-file web app with a genuine solver — modified nodal analysis with backward-Euler transient steps — so every voltage and current on screen is computed, not animated. It ships with three example circuits, each teaching one textbook idea: a voltage divider (Ohm's law and voltage division), an RC charging circuit (the time constant τ = RC), and an RC low-pass filter (cut-off frequency and phase lag). A component palette adds resistors, capacitors, inductors and sources to any circuit, and every value is editable with instant re-solve.

Builder note from the demo build: the first divider draft quoted 4.00 V for the output; the solver's own 8.00 V output caught the arithmetic error — the hand calculation, not the solver, was wrong (12 V × 2 kΩ / 3 kΩ = 8 V). That is the point of building a real solver instead of animating a curve: the numbers on screen are computed, so they can be checked, and when they disagree with a hand calculation, one of the two is wrong and the student can find out which.

This project (CircuitSim) Desktop SPICE (e.g. LTspice) Falstad circuit simulator CircuitLab
Runs in a browser, nothing to install Yes No — desktop install Yes Yes
Live waveform plotting Yes — voltage and current vs time Yes Yes — scope view Yes
Solver visible and explainable Yes — MNA + backward Euler, source included Yes — SPICE engine Partially — JavaScript engine No — closed service
Built for a student viva Yes — 3 textbook circuits, hand-checkable numbers No — professional tool Partially — many built-in circuits No — professional tool
Price Quotation-based student build Free (desktop tool) Free (web tool) Free trial, then paid
Accounts or cloud None — single file, runs offline None None Account needed for saving

The core idea is that a simulator a student can defend is one whose numbers can be checked by hand: the divider output, the capacitor voltage after one time constant, and the filter's output amplitude all have textbook values, and the solver reproduces them — 8.00 V, 3.15 V against a 3.16 V theory value, and 0.83 V against a 0.85 V theory value. The waveform chart plots input voltage, output voltage and source current together on dual axes, so the charging curve, the filter attenuation and the divider step are visible in one view.

This is a built-to-order software project: the simulator source code, the three example circuits, the project report, the presentation and the viva Q&A are prepared fresh for you.

The Problem

Electronics students learn circuit theory from equations on paper — Ohm's law, τ = RC, nodal analysis — but the numbers stay abstract until they see a capacitor charge or a filter attenuate a sine wave. A browser-based circuit simulator with live waveform plotting closes that gap: change a resistor or capacitor value and the curves respond immediately, in an ordinary web browser with nothing to install. Desktop simulators are powerful but heavy to install and intimidating for a first circuits course, while most web simulators are read-only animations or black boxes. This student build is different in one way: every voltage and current it shows comes from a real solver — modified nodal analysis with backward-Euler transient steps — so the waveform is computed, not canned. That makes it a teaching instrument a student can defend: the same circuit can be solved by hand, and the hand calculation and the plotted curve compared directly.

The practical problem is concrete. A student who can only quote τ = RC cannot tell a guide what the capacitor voltage is after one time constant, or why the current is largest at the start of charging and falls to nearly zero as the capacitor fills. A simulator that plots both curves answers both questions visually: the voltage rises as an exponential towards the source voltage while the current decays as the mirror image of the same curve. The same applies to the low-pass filter, where the phase lag between input and output sine waves is the concept students most often memorise without understanding — on the waveform it is simply the horizontal shift between two traces. The project exists so that a student can show, not just state, each of these behaviours.

Software requirements

  • Any modern web browser (Chrome, Edge or Firefox) — no install, no server, no account.
  • The simulator is a single HTML file; it runs offline after download.
  • No backend, no database, no external libraries — the solver is plain JavaScript.
  • For development: a text editor and a browser; an optional local server for testing.

SYSTEM FLOW

4 components 3 connections

Live flow
Drag to explore
100%
appComponent palette

Resistors, capacitors, inductors, DC and AC sources, added in series to any circuit by clicking the palette.

Follow the working sequence

How it works

The simulator is a pipeline that runs in the browser: a circuit is stored as a netlist, the netlist becomes equations through modified nodal analysis, the equations are solved across hundreds of time steps, and voltages and currents are drawn as live waveforms. On load, each component stamps the conductance matrix — a resistor contributes 1/R, a capacitor contributes a companion conductance C/Δt plus a history current source, and a voltage source adds one unknown for its current. The solver then steps through time: at each step it rebuilds the matrix, solves it by Gaussian elimination with partial pivoting, and records node voltages and source current. Because the matrix is tiny — two nodes and one source here — 400 steps solve in a few milliseconds, so editing a value re-runs the simulation instantly and the waveform redraws. The schematic is drawn from the same netlist the solver uses, so the picture and the numbers can never disagree.

  1. The student picks an example circuit — voltage divider, RC charging or RC low-pass — or edits the circuit already loaded.
  2. The circuit is stored as a netlist: each component lists its type, its two nodes and its value.
  3. Modified nodal analysis turns the netlist into a conductance matrix: resistors stamp 1/R, capacitors stamp a companion conductance C/Δt with a history current source, inductors stamp Δt/L with a history current, and each voltage source adds one current unknown.
  4. The solver steps through time in 400 steps: at each step it sets the source value at that instant (a DC step or a sine value), solves the linear system by Gaussian elimination with partial pivoting, and records the node voltages and source current.
  5. The waveform chart draws the recorded values: input voltage as a dashed amber trace, output voltage as a solid cyan trace, and source current on a right-hand axis in green.
  6. The schematic, the node-voltage readout chips and the solver status panel all update from the same solved values, so every number on screen agrees.
  7. Editing any component value, or adding a component from the palette, rebuilds the netlist and re-runs the whole simulation immediately.

Tech stack:

  • HTML5 · CSS · JavaScript (single-file web app)
  • Modified nodal analysis (MNA) solver
  • Backward-Euler transient simulation
  • Canvas waveform plotting (dual axes)
  • SVG schematic rendering from the netlist
  • Gaussian elimination with partial pivoting
  • Web browser runtime (no backend, no server)
  • Git
Parameter Value
Solver Modified nodal analysis (MNA) · backward-Euler transient (implemented)
Analyses DC operating point · transient response (implemented)
Example circuits 3 (voltage divider · RC charging · RC low-pass)
Time steps per run 400 steps (design)
Solve time 3–7 ms for 400 steps (measured in this build's test runs; up to approximately 23 ms under heavy browser load)
Divider output 8.00 V from 12 V with 1 kΩ + 2 kΩ (computed by solver; theory 8.00 V)
RC time constant 100 ms (design target: R = 1 kΩ · C = 100 µF)
Capacitor at one τ 3.15 V (measured — demo solver output; theory 3.16 V)
Low-pass cut-off Approximately 1592 Hz (design target: R = 1 kΩ · C = 100 nF)
Low-pass output peak 0.83 V at 1 kHz with a 1 V input (measured — solver; theory 0.85 V)
Waveform traces 3 (V(IN) · V(OUT) · I(V1))
Runtime Any modern web browser · no server · no install (expected)
Work plan 90 hours total (planned)

Project features

This project delivers seven working capabilities: a real modified-nodal-analysis solver, backward-Euler transient simulation with live waveform plotting, three ready-made example circuits, a component palette with click-to-add parts, editable component values with instant re-solve, node-voltage readouts taken straight from the solver, and an honest statement of what the engine does not do. The solver is the centrepiece — it handles DC operating points and first-order RC and RL transient response for linear networks, and every number on screen is its output. The waveform chart plots input voltage, output voltage and source current together on dual axes, so a student can see a capacitor charge, a filter attenuate a sine wave, and a divider step in one view. The three example circuits — voltage divider, RC charging and RC low-pass — are chosen so each one demonstrates exactly one textbook idea, and the palette lets a student extend any of them by adding resistors, capacitors, inductors or sources in series.

  • [Real MNA solver] Modified nodal analysis with Gaussian elimination and partial pivoting solves the circuit equations — the same method SPICE-family simulators are built on, implemented in plain JavaScript.
  • [Backward-Euler transient simulation] Capacitors and inductors are modelled with backward-Euler companion models, so the transient response is computed step by step — 400 steps per run — not drawn from a formula.
  • [Live waveform plotting] Input voltage, output voltage and source current are plotted against time on dual axes as the simulation runs, with trace toggles for each channel.
  • [Three example circuits] Voltage divider, RC charging and RC low-pass filter, each demonstrating one textbook idea with hand-checkable numbers.
  • [Component palette] Resistors, capacitors, inductors, DC sources and AC sources can be added in series to any circuit by clicking the palette.
  • [Editable values with instant re-solve] Click any component in the schematic to edit its value or frequency; the solver re-runs and the schematic, readouts and waveform update immediately.
  • [Solver readouts and scope note] Node voltages, source current, time constant or cut-off frequency are shown live, and the demo states exactly which analyses the engine supports and which it does not.

What is included

  • Complete simulator source code (single-file HTML/CSS/JavaScript with the MNA solver, schematic renderer and waveform chart)
  • Three example circuits (voltage divider, RC charging, RC low-pass filter) with hand-checkable values
  • Component palette (resistor, capacitor, inductor, DC source, AC source) with click-to-add and value editing
  • Project report PDF (background, circuit theory, solver method, methodology, results, limitations)
  • PPT presentation for final review
  • Viva Q&A preparation document (Ohm's law, voltage division, RC time constant, cut-off frequency, nodal analysis, backward-Euler method, solver scope)
  • Specific next step: message on WhatsApp for a quotation stating scope (browser-based circuit simulator with live waveform plotting, three example circuits, MNA solver), and delivery under the 90-hour work plan as a built-to-order project

Work plan & timeline

Total work plan: 90 hours, split across six phases. Phase 1, circuit theory and solver design: 15 hours — revising nodal analysis, the backward-Euler method and companion models, and fixing the three example circuits with hand-computed values. Phase 2, MNA solver and DC operating point: 20 hours — netlist representation, matrix stamping for resistors and voltage sources, Gaussian elimination with partial pivoting, and the DC solution. Phase 3, transient simulation: 20 hours — capacitor and inductor companion models, time stepping, and the 400-step transient run with recorded waveforms. Phase 4, schematic renderer and waveform chart: 15 hours — drawing the schematic from the netlist in SVG, the dual-axis canvas chart, and the readout chips. Phase 5, example circuits, palette and testing: 10 hours — the three example circuits, click-to-add components, value editing, and checking solver outputs against hand calculations. Phase 6, report and viva preparation: 10 hours — report, presentation, and the viva Q&A document.

Support

Support covers setup help for the delivered code, a walkthrough of the solver and the demo, and fixes for defects in the delivered code. Guidance is also provided for adapting the report and presentation to the student's college format and for answering guide questions about Ohm's law, voltage division, the RC time constant, cut-off frequency, nodal analysis and the backward-Euler method. Support does not cover adding new analysis types (such as AC phasor sweeps or nonlinear devices) beyond the stated scope, and it does not invent results for circuits that were not simulated.

Limitations & prerequisites

  • The engine supports DC operating points and transient response for linear R/C/L networks only — AC phasor and frequency sweeps are not implemented.
  • Nonlinear devices (diodes, transistors, op-amps) and dependent sources are not supported; the solver handles linear components and independent DC and sinusoidal sources only.
  • Backward-Euler time stepping carries a small discretisation error: the demo solver returns 3.15 V for the capacitor at one time constant against a 3.16 V theory value, and 0.83 V for the low-pass output peak against a 0.85 V theory value — the report states both figures.
  • The simulator is a single-page teaching tool with no accounts, no saving to a server and no circuit-file export; circuits live in the browser session.
  • Added components go in series on the top rail only; arbitrary topologies (parallel branches, multiple loops) are outside the demo's schematic editor, though the solver itself accepts any netlist.
  • The demo is a student build for learning and demonstration, not a replacement for a professional SPICE tool, and must not be presented as one.

Frequently Asked Questions

Is this project suitable for a final-year project?

Yes — for Computer Science, IT and Web Development programmes. It demonstrates a real numerical method (modified nodal analysis), transient simulation with companion models, interactive SVG and canvas rendering and waveform plotting, and a complete web application with three worked example circuits. The work plan totals 90 hours across solver design, MNA implementation, transient simulation, the schematic renderer and waveform chart, testing against hand calculations, and the report and viva preparation.

Does the simulator really solve circuits, or does it play back canned waveforms?

It really solves them. Every trace is computed by a modified-nodal-analysis solver with backward-Euler transient steps: 400 time steps per run, solved in 3–7 ms in this build's test runs. Nothing is pre-drawn — change a resistor value and the waveform re-computes instantly. The check is the numbers: the divider gives 8.00 V, the capacitor reaches 3.15 V after one time constant against a 3.16 V theory value, and the low-pass output peaks at 0.83 V against a 0.85 V theory value.

Which circuits are included, and can I add my own?

Three example circuits are included: a voltage divider (12 V, 1 kΩ + 2 kΩ), an RC charging circuit (5 V step, 1 kΩ, 100 µF) and an RC low-pass filter (1 V, 1 kHz sine, 1 kΩ, 100 nF). You can extend any of them from the component palette — resistors, capacitors, inductors and sources add in series — and every value is editable with instant re-solve. Arbitrary topologies are outside the demo's schematic editor and are listed as a limitation.

What does the solver not support?

AC phasor and frequency sweeps, nonlinear devices (diodes, transistors, op-amps) and dependent sources are not supported. The engine covers DC operating points and transient response for linear R/C/L networks with DC and sinusoidal sources. This scope is stated on the demo itself, so a guide sees exactly what the engine does and does not do, and the report lists the same scope.

What will I receive, and can it be customised?

You receive the complete simulator source code as a single HTML file, the three example circuits, the project report PDF, the PPT presentation, and the viva Q&A document. Customisation is realistic: additional example circuits, a different waveform view, or a college-specific report format can be developed on request. Adding new analysis types such as AC sweeps is a larger change and is quoted separately.

Does it need a server or an installation?

No. The simulator is a single HTML file that runs in any modern web browser with nothing to install and no server, database or account. It works offline after download, because the solver is plain JavaScript running in the page. That also means there is no backend to configure — the trade-off is that circuits are not saved to a server and live in the browser session.

Components & software requirements
  • HTML5 · CSS · JavaScript (single-file web app)
  • Modified nodal analysis (MNA) solver
  • Backward-Euler transient simulation
  • Canvas waveform plotting (dual axes)
  • SVG schematic rendering from the netlist
  • Gaussian elimination with partial pivoting
  • Web browser runtime (no backend, no server)
  • Git
Delivery information

Built-to-order project. Delivery timeline is shared after order confirmation based on current queue.

Support terms

Complete documentation, setup guide, and viva preparation included. Support for setup and explanation provided.

Download free synopsis (PDF)

Enter your name and WhatsApp number — the synopsis PDF downloads immediately. We may send occasional project updates on WhatsApp; no spam.

Get a quotation