Battery
A DC voltage source with finite energy capacity. Models real-world battery behavior including internal resistance and voltage sag under load. Use it as the primary power supply for most circuits.
Properties
| Property | Description | Default | Range |
|---|---|---|---|
| Voltage | Nominal open-circuit voltage (V) | 9 V | 1.2 V – 48 V |
| Capacity | Total stored charge (Ah) | 2 Ah | 0.1 Ah – 1 000 Ah |
| Internal resistance | Series resistance inside the battery (Ω) | 0.5 Ω | 0.01 Ω – 10 Ω |
| Chemistry type | Cell chemistry label (affects display only) | Alkaline | Alkaline / Li-Ion / NiMH / Lead-Acid |
Simulation behavior
The terminal voltage is V_terminal = V_nominal – (I × R_internal). Under heavy load the terminal voltage sags proportionally to internal resistance and current.
Battery capacity depletes over simulation time. When the simulated charge reaches zero, the terminal voltage collapses to 0 V and the circuit stops receiving power. The simulation log records the discharge event.
Simulation time is scaled by the simulation speed setting — a high speed multiplier makes the battery deplete faster on the wall clock.
Tips
- Increase internal resistance to observe voltage sag and test how your circuit behaves on a weak or aged battery.
- Set chemistry type to Li-Ion and voltage to 3.7 V or 4.2 V for a single lithium cell — standard in portable electronics.
- For infinite supply (testing without depletion), set capacity to a very large value like 10 000 Ah.