# First-Time Setup

<figure><img src="/files/Obt09mpTRkheiaw0O1pc" alt=""><figcaption></figcaption></figure>

**\[Zoe Foxlin]** You only need to do these steps once!

{% stepper %}
{% step %}

### Install Hub Firmware

1. Visit [code.robobattles.com](https://code.robobattles.com/)
2. Click **Install RoboBattles Firmware***.* Follow the instructions on screen.

<div align="center"><figure><img src="/files/bDrtrg4XAwW0K2JSTZ0S" alt="" width="375"><figcaption></figcaption></figure></div>

Your hub is now running the RoboBattles firmware!
{% endstep %}

{% step %}

### Pair Your Controller With Hub

1. Ensure your hub is on. Its light should be pulsing white.
2. Press and hold your hub's power button until the light starts pulsing quickly.
3. Turn on your controller by pressing and holding the Xbox button <img src="/files/NGLAC7VlpStOJOvIFpNE" alt="" data-size="line"> until it lights up. Release the button.&#x20;

{% hint style="warning" %}
If your computer asks to pair to your controller, deny the request. The controller never needs to be connected to your computer.
{% endhint %}

3. Press and hold the pair button until the controller light starts blinking fast. Release the button.

<figure><img src="/files/CUPCYGhAyAHOWdg6QytB" alt="" width="375"><figcaption></figcaption></figure>

4. After a few seconds, both the hub light and controller light should stop flashing.

Your hub and controller are now paired. They will automatically connect to each other next time they are turned on.

<details>

<summary>Troubleshooting</summary>

### The controller won't turn on.

Make sure it has fresh batteries and that they're facing the correct direction.

### The controller won't pair.

Turn your hub and controller off. Ensure there are no other hubs or controllers turned on in your space. Repeat the pairing steps.

If it still won't pair, reinstall the hub firmware and try again.

If it still won't pair, your controller may have shipped with outdated software. Follow [Microsoft's instructions for updating your controller software](https://support.xbox.com/en-US/help/hardware-network/controller/update-xbox-wireless-controller). Then repeat the steps above.

</details>
{% endstep %}
{% endstepper %}


---

# Agent Instructions: 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:

```
GET https://play.robobattles.com/tutorial/controls/first-time-setup.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
