3D Robotics • MNA Circuit Physics • Blender CAD Julian Morrisette • 8 min read

Solving Real-Time Circuits in 3D: MNA Physics, Blender Hardware & 24V Thermal Burnout in ElectroForge 3D

ElectroForge 3D Modified Nodal Analysis and 24V Overload Thermal Simulation

Most 3D robotics visualizers fake electronics with pre-baked keyframes, while 2D circuit simulators hide physical hardware behind flat schematic symbols. With ElectroForge 3D (now open-sourced at Sockshare/electroforge-3d-lab), I wanted both in one browser tab: real-time Modified Nodal Analysis (MNA) electrical math driving 12 Blender 5.0.1 .glb components, thermal overload failure, and 4 articulated 3D robotic rigs.

Core Architectural Rule: Every slider, 3D sensor probe, PSU voltage spike, and CLI command passes through one thread-safe ElectroForgeLabEngine.dispatch() state machine—so electrical math, thermal telemetry, oscilloscope buffers, and robot kinematics are always 100% synchronized.

1. Bridging Electrical Nodal Math and 3D Kinematics

In circuit_engine.py, every component placed on the virtual 830-Tie-Point Breadboard carries explicit pin_a and pin_b nodes, rated wattage (max_power_mw), and voltage limits (max_voltage_v). Whenever a wire changes, the Bench PSU ramps from 5.0V to 24.0V, or the user drags the 3D obstacle closer to the HC-SR04 ultrasonic sonar head, the solver recalculates:

  • Nodal Voltages & Branch Currents: Evaluates Ohm’s and Kirchhoff’s laws, RC charging transients, and 555 astable oscillator timing across active nodes.
  • Joule Heating & Burnout Thresholds: Computes instantaneous power dissipation (P = I²R) and component junction temperature (T = T_amb + P · R_θ), transitioning components cleanly through OK → WARNING_HOT → BURNED_OUT.
  • Waveforms & Actuator Motion: Synthesizes 4-channel oscilloscope traces, 8-channel logic analyzer timing lines, and joint angles for the 6-DOF Robot Arm, 4WD Rover, Pan/Tilt Laser Turret, and 3-Axis CNC Gantry.

2. Headless Blender 5.0.1 Asset Pipeline & 5 Live Physics Overlays

To avoid blocky placeholder boxes without bloating the repository, blender_electronics_pipeline.py uses headless Blender bmesh modifiers and Principled BSDF materials to pre-bake all 12 hardware assemblies into lightweight binary glTF 2.0 (.glb) assets (just ~508 KB total across all 12 models). In the Three.js viewport, five toggleable physics overlays render directly over those meshes:

Lab / Subsystem Hardware & Stimuli What It Demonstrates
lab_robot_arm Arduino Uno R3 + 6-DOF Arm + Potentiometer 50 Hz PWM servo drive, analog ADC override, and multi-joint IK motion
lab_rover_ultrasonic 4WD Chassis + HC-SR04 Sonar + 3D Obstacle Echo timing vs. obstacle distance and H-bridge reverse/pivot behavior
lab_solar_turret Pan/Tilt Turret + LDRs + 3D Flashlight Lux Differential photoresistor voltage divider driving optical alignment
lab_overload_burnout 24.0V Bench PSU + MOSFET / LED / Resistors Joule thermal runaway, FLIR heatmap glow, and FAULT_INJECTED triage

3. 1:1 Command Bus, CLI Automation & Engineering Exports

Following the same deterministic design pattern I use in security tooling, ElectroForge 3D exposes every UI action over POST /api/dispatch and mirrors it in cli.py. From a terminal, you can run python3 cli.py load-lab --id lab_rover_ultrasonic, stress-test with python3 cli.py psu --voltage 24.0, inject a SHORT_VCC_GND fault, repair it, and export standard SPICE netlists (.cir), CSV Bills of Materials (.csv), and Arduino C++ firmware (.ino).