# Controlling Your Bot

{% stepper %}
{% step %}

### Turn on your hub

{% tabs %}
{% tab title="Technic™ Hub" %}

<div align="left"><figure><img src="/files/XbGfRBNDWU5a2Czt5kbO" alt="" width="188"><figcaption></figcaption></figure></div>

Press the green button. Your hub will light up.

When finished, press the button again to turn your hub off.

<details>

<summary>Troubleshooting</summary>

### The hub won't light up.

Make sure you've installed **all six** AA batteries, and that they are fully charged and facing the right direction.

</details>
{% endtab %}

{% tab title="SPIKE™ Prime Hub" %}

<div align="left"><figure><img src="/files/W7M6S24q75gbIBVrTCZk" alt="" width="188"><figcaption></figcaption></figure></div>

Press and hold the large button until your hub lights up.

When finished, press the button to turn your hub off.

<details>

<summary>Troubleshooting</summary>

### The hub won't light up.

Make sure the battery is fully charged.

</details>
{% endtab %}
{% endtabs %}
{% endstep %}

{% step %}

### Turn on your controller

Press and hold the Xbox button <img src="/files/NGLAC7VlpStOJOvIFpNE" alt="" data-size="line"> until it lights up. Release the button.

After a few seconds, the lights on your hub and controller will stop flashing and turn solid white. They are now connected.

<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 connect.

Turn your hub and controller off. Now turn them both on again.

If they still won't connect, they might have lost their pairing. Follow the instructions in [First-Time Setup](/tutorial/controls/first-time-setup.md#pair-your-controller) to re-pair them. Ensure all other hubs and controllers in your space are turned off.

### The controller appears to connect, but after a moment it turns off and the hub starts flashing blue.

You have a bug in your custom control program which is causing the program to crash.

</details>
{% endstep %}

{% step %}

### Steer your bot

Use the left joystick <img src="/files/f2ld2RhcfbnOZal0xuj1" alt="" data-size="line"> to drive. Use the triggers <img src="/files/WVLSlxL498Ct3QvygFa7" alt="" data-size="line"> <img src="/files/8KtvJoq9kqwrBxlhbVzy" alt="" data-size="line"> to control your weapon.
{% 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/controlling-your-bot.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.
