+B1 9 VS1R1 330 ΩD1G1B1 +B1 −S1S1R1R1D1 anodeD1 cathodeG19 V9 V2.113 V0 V
Solved · 5 parts · 1 LED lit

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

PartValueVoltage acrossCurrentPowerNote
B1 Battery9 V9 V20.87 mA187.8 mW
S1 Switchclosed208.7 µV20.87 mA4.355 µW
R1 Resistor330 Ω6.887 V20.87 mA143.7 mW
D1 LEDred LED2.113 V20.87 mA44.1 mWLit
  • 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
  1. Take node 0 as ground (0 V). The unknowns are the voltages at node 1, node 2, node 3, node D1k.
  2. Current law (KCL) at node 1: I(B1) + (V1 − V2) / S1 = 0 A, the current pushed in by current sources.
  3. Current law (KCL) at node 2: (V2 − V1) / S1 + (V2 − V3) / R1 = 0 A, the current pushed in by current sources.
  4. Current law (KCL) at node 3: (V3 − V2) / R1 + (V3 − VD1k) / D1.r = 0 A, the current pushed in by current sources.
  5. Current law (KCL) at node D1k: (VD1k − V3) / D1.r + I(D1.vf) = 0 A, the current pushed in by current sources.
  6. B1 fixes V1 − V0 = 9 V.
  7. D1.vf fixes VD1k − V0 = 1.8 V.
  8. Solve the equations together: V1 = 9 V, V2 = 9 V, V3 = 2.113 V, VD1k = 1.8 V.
  9. 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.

Made with ElectroLark circuit builder