Circuit builder
Place parts, wire them up and watch the voltages change. Add an Arduino and run a sketch.
Drag parts to move them. Drag from a pin to draw a wire. Tap a selected switch to flip it. Hold a button down to press it. R rotates, Delete removes.
Readings
| Part | Value | Voltage across | Current | Power | Note |
|---|---|---|---|---|---|
| B1 Battery | 9 V | 9 V | 20.87 mA | 187.8 mW | |
| S1 Switch | closed | 208.7 µV | 20.87 mA | 4.355 µW | |
| R1 Resistor | 330 Ω | 6.887 V | 20.87 mA | 143.7 mW | |
| D1 LED | red LED | 2.113 V | 20.87 mA | 44.1 mW | Lit |
- An LED that is on is treated as a fixed drop (red 1.8 V, yellow 2.0 V, green 2.1 V, blue and white 3.0 V) plus 15 Ω. An LED that is off passes no current.
Show the working (nodal analysis)
Each joined group of wires is one node. Node 0 is ground. This is the netlist the builder made from your drawing, and how it was solved:
B1 1 0 9 S1 1 2 0.01 R1 2 3 330 D1.r 3 D1k 15 D1.vf D1k 0 1.8
- Take node 0 as ground (0 V). The unknowns are the voltages at node 1, node 2, node 3, node D1k.
- Current law (KCL) at node 1: I(B1) + (V1 − V2) / S1 = 0 A, the current pushed in by current sources.
- Current law (KCL) at node 2: (V2 − V1) / S1 + (V2 − V3) / R1 = 0 A, the current pushed in by current sources.
- Current law (KCL) at node 3: (V3 − V2) / R1 + (V3 − VD1k) / D1.r = 0 A, the current pushed in by current sources.
- Current law (KCL) at node D1k: (VD1k − V3) / D1.r + I(D1.vf) = 0 A, the current pushed in by current sources.
- B1 fixes V1 − V0 = 9 V.
- D1.vf fixes VD1k − V0 = 1.8 V.
- Solve the equations together: V1 = 9 V, V2 = 9 V, V3 = 2.113 V, VD1k = 1.8 V.
- Each current is the voltage across the part divided by its resistance. Power is voltage across the part times current through it.
Want to type a netlist yourself? Try the circuit solver.
Ideal parts and a simple LED model. Real parts have tolerance, so measure before you trust a value.
Common questions
How does the circuit builder work out voltages?
It uses nodal analysis: it writes Kirchhoff's current law at each node, solves the equations and shows every step, so you can follow the same method by hand.
Which parts can I use?
Batteries, resistors, LEDs, switches and other basic parts, with worked examples such as an LED circuit, a voltage divider, an RC circuit, NPN and PNP transistor switches, a MOSFET switch, a half-wave rectifier fed by an AC source, and an op-amp.
Can I simulate an Arduino with real wiring?
Yes. Place an Arduino Uno, Nano or ESP32, wire LEDs, buttons, knobs, sensors, servos and buzzers to its pins, paste a normal Arduino IDE sketch and press Start. The sketch runs against your wiring with a serial monitor, so a missing resistor, a floating input or 5 V on an ESP32 pin shows up as it would on the bench.
Are there ready-made Arduino circuits?
Twenty ready-wired examples, from Blink, buttons and knobs to a servo, a buzzer tune, a thermometer and an ultrasonic sensor, plus mistake examples (an LED with no resistor, a floating button, a pin shorted to GND) that show what goes wrong and why.
