Skip to content

Search the documentation

Kit
Firmware

Battery

Smart Car

Measures the battery’s voltage, which drops as the battery empties.

The Battery class is reached through this attribute of robot.

Can be None.

All the attributes of robot are in its table. Read Attributes that can be None to see when a part is None.

The battery’s voltage in volts, measured now (through a 20k/10k divider on the board).

voltage() -> float

Used in examples: Sensor check