I built an electronics simulator: Ohm-E

I built an electronics simulator: Ohm-E

●3 ●31 ●64
calendar_today ago • schedule1 min read

Ohm-E is a browser-based interactive electronics circuit simulator powered by a real-time Modified Nodal Analysis (MNA) transient solver. It allows beginners, students, hobbyists and experts to design circuits on an infinite snapping schematic grid, wire terminals with obstacle-avoiding orthogonal routing, toggle switches and adjust live controls while running, and inspect waveforms and signals on a multi-channel digital oscilloscope.

Core Capabilities

  • In-Browser Physics Engine: Modified Nodal Analysis (MNA) matrix solver with Newton-Raphson non-linear iteration (diodes, Zeners, LEDs, BJTs, MOSFETs, logic thresholds, 555 timer) and backward Euler numerical integration for capacitors and inductors.

  • Snap-to-Grid Schematic Editor: 20 px grid alignment, pan and zoom (0.4x–2.5x), Fit-to-View and 1:1 reset controls, Undo/Redo history, and 90° component rotation.

  • Smart Orthogonal Wiring: Automatic Manhattan wire routing keeps traces clean and avoids cutting straight through component symbols. Dragging a wire onto an existing wire automatically creates a junction node.

  • Live Visualization & Audio: Color-coded node voltages, toggleable charge flow particles (Conventional, Electron, or Off), glowing/dimming LEDs and filament bulbs, spinning DC/AC motors with live RPM, and synthesized Web Audio buzzer tones.

  • Fault & Short-Circuit Detection: Real-time toast alerts detect direct terminal shorts (even while paused), low-resistance source dead shorts, burned-out LEDs/bulbs, and ohmmeters probing powered circuits.

  • Automatic Persistence: Workspaces, simulation settings, and oscilloscope configuration automatically save to localStorage so you can pick up right where you left off.

🔥 Join developers growing publicly
Share your knowledge, build in public, and grow your developer presence with a global community.

More Posts

Dozens of email accounts: learning AI coding tools as a student

rahuldk1105 - Oct 27

Shipping Android and iOS solo (iOS: coming soon)

rahuldk1105 - Oct 30

How I Built a React Portfolio in 7 Days That Landed ₹1.2L in Freelance Work

Dharanidharan - Feb 9

I built a pager for my own developers

rahuldk1105 - Oct 29

I tried to build my own offline Claude Code

rahuldk1105 - Oct 29
chevron_left
1.7k Points • 98 Badges
26Posts
19Comments
13Connections
I am software developer with over five years of experience in building solution-driven and feature-rich products

Commenters (This Week)

1 comment

Contribute meaningful comments to climb the leaderboard and earn badges!