VoltLab simulates electromechanical motor-control circuits — DOL starters, interlocks, reversing starters, a 10-story relay elevator, an electric vehicle drive — with a real per-tick electrical solver and IEC-style schematics. Drive them like machines: accelerator & brake pedals, a VFD with frequency ramps, e-stop mushrooms, car operating panels. And because it speaks MCP, an LLM agent can build, wire, fault and document every circuit for you.
Not a video, not a mock-up: the page below runs the actual
sim/engine.js solver in your browser — the same code the desktop app
and the MCP agents drive.
Try: hold S1 on the schematic — the contactor picks up and the motor spins (release: the seal-in keeps it running). Toggle breaker Q1 by clicking it. Pick reversing-starter and watch the interlock. When the thermal overload KK1 trips (⏩ 5s after a stall), click its red RESET. New in v1.3: load vehicle-drive and drag the accelerator pedal in the console — or slam the e-stop and watch the drive ramp down; take elevator-cop for a ride from its car operating panel.
Per-tick union-find netlists and phase propagation: 6× FLC inrush, class-10 thermal trip curves, single-phasing, coast-down, fuse blowing — plus VFDs with synthesized rotating fields, frequency ramps and phase-sequence motor direction.
The bottom panel grows real controls for whatever the circuit contains: drag-able accelerator/brake pedals, a twist-release e-stop mushroom, drive Hz + direction readouts, a 7-segment floor indicator and car-call grids.
23 device types drawn as proper IEC symbols, phase-colored live wires, terminal-level wiring, zoom from 25–300 %, inspector and event log.
29 tools over stdio JSON-RPC (or plain HTTP): agents build, wire, fault, reset, fast-forward, drive pedals and call floors — the full test suite is an agent session.
Any circuit exports as an IEC 61082-1-style multi-sheet PDF drawing set (zone grids, title blocks, sheet index) and a scripted 720p demo video.
Signed installers for Windows, macOS and Linux plus an Android APK with the full offline editor — or zero-install right in this browser. Server, simulator and MCP bridge are pure Node stdlib.
Seven new electrical devices — a variable frequency drive, accelerator and brake pedals, an e-stop mushroom, a 3-position selector, a car-call panel and a floor indicator — turn schematics into things you operate. Nothing here is decoration: the pedal is a potentiometer feeding the VFD's analog reference, the brake's NC contact cuts the drive enable while its mechanical side drags the motor, and car calls latch through real relay logic.
| Circuit | What it demonstrates |
|---|---|
dol-starter | Direct-On-Line start/stop, seal-in holding, class-10 overload trip, trip lamp |
reversing-starter | Forward/reverse contactors, phase-swap wiring, an interlock that makes simultaneous energizing impossible |
timer-sequence | On-delay timer starts a second conveyor motor 3 s after the first |
elevator-2floor | Call latching, travel limit switches, NC cross-interlock, hoist overload |
elevator-10floor | Full 10-story relay elevator — 4-deck floor cam, per-floor call relays, auto-dispatch with dwell: 46 components, 174 wires |
vehicle-drive | Electric vehicle drive — VFD with synthesized rotating field, accelerator pedal as the analog speed reference, service brake with NC drive interlock + mechanical deceleration + lamps, key switch, FWD/OFF/REV selector, e-stop |
elevator-cop | The 10-story machine plus a car operating panel — car calls parallel the hall buttons, the cam's isolated indicator deck feeds the floor display, e-stop in the control feed: 49 components, 202 wires |
One click (or one agent tool call) turns any circuit into an IEC 61082-1-style PDF drawing package — and records a narrated-by-captions demo video.
Every release ships signed desktop installers plus an Android APK that packs the full offline editor — place, wire, edit and run circuits with no server, no network, no backend. Same engine, same circuits, same UI as the page above.
Windows setup + portable, macOS dmg for Apple silicon & Intel, Linux AppImage + deb. The APK upgrades in place over earlier VoltLab installs (same signing key), and SHA-256 sums are published with every release.
git clone https://github.com/touhidsiddiqueeraj-bit/VoltLab.git
cd voltlab
npm install # once — installs Electron only
npm run serve # browser mode → http://127.0.0.1:8123
npm start # or the Electron desktop window
npm test # 57 headless tests: engine + circuits + features + MCP end-to-end
Agents connect over MCP — point any client at
mcp/server.mjs and it gets the full 29-tool catalog
(reference).
How the solver, host, UI and MCP layer fit together — and the sharp edges we hit building it.
All 29 tools with arguments, raw-HTTP equivalents and a worked agent session.
The JSON schema: components, wires, waypoints and demo scripts.
A guided tour of all seven examples with scenarios and exercises.
How the browser demo grew into a signed offline-editor APK: the Capacitor recipe, signing, and what ships inside.