Skip to main content
100%

Electrical Circuit

✓ Published1🌍 Public
NNita
Last edited Apr 10, 2025
Created on Apr 10, 2025
Forked from 3D Cube of Spheres

This interactive Three.js simulation demonstrates Ohm's law in a 3D electrical circuit, showing how voltage and resistance affect current, power, and animated electron flow. Users adjust sliders and toggle power to observe real-time changes in the circuit's behavior. The scene includes 3D models of a battery, resistor, and LED, with WebGL rendering and orbit controls for perspective viewing. The code relies on the Three.js library for 3D scene management and animation, presenting circuit physics through direct manipulation of electrical parameters.

AI-generated description

Electrical Circuit Simulation

An interactive 3D electrical circuit simulation built with Three.js.

Features

  • Interactive circuit with battery, resistor, and LED
  • Real-time calculation of voltage, current, and power
  • Electron flow animation that responds to circuit parameters
  • Toggle power on/off to see the circuit in action
  • Switch between circuit view and 3D perspective view
  • Adjust voltage and resistance to see how the circuit responds

How to Use

  1. Use the sliders to adjust voltage (0-12V) and resistance (10-1000Ω)
  2. Toggle the power button to turn the circuit on or off
  3. Switch between circuit view and 3D view for different perspectives
  4. Observe how the electron flow and LED brightness respond to changes

Technical Implementation

The simulation uses Three.js to create a realistic 3D representation of an electrical circuit. It demonstrates Ohm's Law (V = IR) and power calculations (P = VI) in an interactive environment.

MIT Licensed

Similar vizzes