> For the complete documentation index, see [llms.txt](https://sumo.cometrobotics.org/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://sumo.cometrobotics.org/electronics/calculating-power-consumption.md).

# Calculating power consumption

Guide to our robot's power needs

Every part in the sumo bot, from the motors to the IR sensors, will use up a certain amount of power, current, and voltage. It's a good idea we keep track of how much of each is expected to be consumed by our robot's circuit, so we choose parts that will satisfy the power need of the whole bot. When calculating our power budget for our robot, we are interested in the following:&#x20;

* max power drawn
* nominal and peak current drawn by robot&#x20;
* max voltage used by each part

Power is defined as unit of electrical energy per unit time, measured in watts (W). Electrical power is given by the formula:

$$
P = I\*V
$$

So, if we know the rated current and voltage used by the part, we can easily solve for the power used. Finding current and voltage of each part can be found in two ways: either by empirical testing or reading datasheets.&#x20;

{% hint style="info" %}
Read part manufacturer's website or datasheet to find information on current and voltage.
{% endhint %}

{% hint style="info" %}
We recommend using a spreadsheet to keep track of all of these specs. Here is a nice [**template** ](https://docs.google.com/spreadsheets/d/1EInbjM8BmOp94nWb7_W9tbPjEoU6eVHQh682lEF8lII/edit?usp=sharing)we made to get you started.&#x20;
{% endhint %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://sumo.cometrobotics.org/electronics/calculating-power-consumption.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
