Circuit Lab
An interactive DC/RC bench built in TypeScript — test Ohm's law, 4-band resistor decoding, 220 µF capacitor charging curves, and LED forward-bias limits.
SW1 5.00 VR1 1.8 kΩC1 220 µF || D1 Red (1.9 V)I 1.72 mAP 8.61 mWτ 396 ms
SW1
NC · 5.00 VSPDT Supply Rail
E_max 2.75 mJ · P_bus 8.61 mW
5.00 V bench bus — leaves 3.1 V headroom across R1 for Red LED (1.9 V).
R1
1.8 kΩ ±5%4-Band IEC Resistor
I 1.72 mA · P_R1 5.34 mW · τ 396 ms
Balanced current limiting & signal conditioning · readable RC curve
C1
0.00 V220 µF RC Capacitor
τ = 396 ms0% of 5.0 VE = 0.00 mJ
Follows τ = R1·C1 (396 ms) — drop R1 to 220 Ω for fast charging or raise to 10 kΩ to slow the curve.
D1
1.72 mA · ONLED & Polarity Stage
630 nm · Vf 1.9 V · P_D1 3.27 mW · P_tot 8.61 mW
I = (5.0 − 1.9) / 1.8 kΩ = 1.72 mA · P = IV = 8.61 mW.
- Branch current
- I = (V_bus − V_f) / R1
- Power dissipation
- P_R1 = I²R1 · P_D1 = V_f·I
- RC response
- V_C(t) = V_bus(1 − e^(−t/τ))
- Stored energy
- τ = R1·C1 · E = ½C1·V_C²