# Configuration

Every device connected to the Expansion Hub ([REV-31-1153](https://www.revrobotics.com/rev-31-1153/)) will need to be added to the Robot Configuration file before you can use the device in your program. The Robot Configuration will allow you to give your sensors and actuators meaningful names that you can reference while programming.&#x20;

For this example, we will configure a simple two motor robot drivetrain.

| Step                                                                                                                                                                                                                                                                          | Image                                                                                                                                                       |
| ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Select the menu on either the Driver Station or Robot Controller. Then select “Configure Robot”.                                                                                                                                                                              | ![](/files/-M8N18fu7LQT5WPaC4Kf)                                                                                                                            |
| Select “New” in the top left hand corner.                                                                                                                                                                                                                                     | ![Screenshot\_2010-04-11-22-14-32.png](/files/-M8N18fvkx1k9FDCwvdC)                                                                                         |
| Select “Expansion Hub Portal 1” (embedded).                                                                                                                                                                                                                                   | ![Screenshot\_2010-04-11-22-51-34.png](/files/-M8N18fwCJXoAQ9yGFLX)                                                                                         |
| Select “Expansion Hub 1”.                                                                                                                                                                                                                                                     | ![Screenshot\_2010-04-11-22-54-11.png](/files/-M8N18fxZNIH8qOL9L8H)                                                                                         |
| Select “Motors”.                                                                                                                                                                                                                                                              | ![Screenshot\_2010-04-11-22-54-47.png](/files/-M8N18fyGI-seu5-c8Zf)                                                                                         |
| Select the Drop Down menu for “Port 0” then select the motor type attached to the port. In the case of the Minibot in Figure 4, select the “Rev Robotics Core Hex Motor”.                                                                                                     | ![](/files/-M8N18fzXo-TcM3qENEw)                                                                                                                            |
| <p>Press “Enter motor name here” and name the motor “left\_drive”.</p><p>This is the name that you will use when you are programming your robot to control this motor. Always use descriptive names so that you can remember what a device does when you are programming.</p> | ![](/files/-M8N18g-vVw9AJyjQ8wW)                                                                                                                            |
| Repeat the process for “Port 1” and name the motor “right\_drive”.                                                                                                                                                                                                            | ![Screenshot\_2010-04-11-22-56-21.png](/files/-M8N18g0EMY-Kati2R1y)                                                                                         |
| Press “Done” once to go back to the list of device ports and then select I2C Bus 0.                                                                                                                                                                                           | ![](/files/-M8N18g1xPVRttveWIoC)                                                                                                                            |
| Add the built-in REV Expansion Hub IMU. Name it “imu”                                                                                                                                                                                                                         | ![](/files/-M8N18g2ARpuX1SQD77h)                                                                                                                            |
| Press the “Done” button (at the top left corner of the page) 3 times.                                                                                                                                                                                                         | <img src="/files/-M8N18g39xody_XqasDN" alt="C:\Users\Rachel\AppData\Local\Microsoft\Windows\INetCache\Content.Word\path13930-3-9.png" data-size="original"> |
| Press “Save”.                                                                                                                                                                                                                                                                 | ![](/files/-M8N18g4wKoX4hll5dBV)                                                                                                                            |
| Enter “miniBot” as your configuration name, then select “OK”.                                                                                                                                                                                                                 | ![Screenshot\_2010-04-11-22-56-41.png](/files/-M8N18g5S6jSBYVTdT8I)                                                                                         |
| You now have an active configuration called “miniBot”. Press the Android back button to return to the Driver Station page.                                                                                                                                                    | ![Screenshot\_2010-04-11-23-11-07.png](/files/-M8N18g6Vy1vpJBDkxOR)                                                                                         |


---

# 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://docs.revrobotics.com/duo-control/legacy/expansion-hub-gs/configuration.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.
