V5 Robot Battery#
The V5 Robot Battery is a Lithium Ion battery designed to maximize motor performance.
If you’re encountering issues with your V5 Robot Battery, you can use the V5 Battery Medic to assess the health and status of your V5 Robot Battery. Go to Using the V5 Battery Medic for a guide on how to use the V5 Firmware Utility to access the V5 Battery Medic.
Below is a list of available methods:
voltage— Returns the battery voltage.current— Returns the battery current draw.capacity— Returns the remaining battery capacity.temperature– Returns the average temperature of the battery.
For information on constructing a Brain to gain access to the battery methods, see Brain.
voltage#
Voltage is the electrical pressure supplied to the battery. voltage returns the voltage of the battery as a decimal (float), which can help you check whether the battery is charged enough for the robot to run reliably.
Usage:
brain.battery.voltage(units)
Parameters |
Description |
|---|---|
|
Optional. The unit to represent the voltage: |
current#
Current is how much electrical flow the robot is using from the battery. current returns the electrical current drawn from the battery in amps as a decimal (float), which can help you see how hard the robot is working or whether motors may be under extra load, ranging from 0.0 to 20.0 Amps.
Usage:
brain.battery.current()
Parameters |
Description |
|---|---|
This method has no parameters. |
capacity#
capacity returns the remaining battery level, as a percentage from 0% to 100%.
Usage:
brain.battery.capacity()
Parameters |
Description |
|---|---|
This method has no parameters. |
temperature#
temperature returns the average temperature of the battery. The operating temperature range for the battery is approximately 20°C (68°F) to 70°C (158°F).
Usage:
brain.battery.temperature(units)
Parameters |
Description |
|---|---|
|
Optional. The temperature unit: |