Bringup
Open the editor
SPICE subcircuitbattery

Battery (ideal)

Fixed open-circuit voltage + internal resistance, without capacity (does not discharge). For discharge: Li-ion cell.

+
Schematic symbol

Key data

Category
Sources
Simulation model
SPICE subcircuit
Reference prefix
BT
Pins
2
Land pattern
JST_PH_B2B-PH-K_1x02_P2.00mm_Vertical

Simulation model

The part is a small SPICE netlist (below), solved by the analog engine together with the rest of the circuit. Pin ids are the node names, {braces} are parameters.

SPICE netlist
V1 m - DC {V}
R1 m + {R}

Pins 2

PinNameUse
++Passive pinPositive terminal (+)
-−Passive pinNegative terminal (−)

Parameters 2

Open-circuit voltageV
Default3.7 V
Internal resistanceR
Default0.2 Ω

PCB

Connector / off-boardJST_PH_B2B-PH-K_1x02_P2.00mm_Vertical

battery connector JST PH 2-pin (pin 1 = +, check the polarity of the battery connector)