# 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
This site has an agentic ask interface you may use to query the documentation dynamically by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://play.robobattles.com/index.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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

---

# Overview

RoboBattles is a LEGO® robotics competition and roleplaying game.

Craft the LEGO® robot of your dreams. Compete in real battles against friends and in tournaments. Create your very own character. Complete quests by building amazing LEGO® contraptions.

This Player's Guide is the hub for RoboBattles gameplay. It has all the info for your building, battling, and roleplaying adventures.

<table data-card-size="large" data-view="cards" data-full-width="false"><thead><tr><th data-card-target data-type="content-ref"></th><th></th><th data-hidden></th><th data-hidden></th><th data-hidden></th><th data-hidden data-card-cover data-type="files"></th><th data-hidden data-type="content-ref"></th></tr></thead><tbody><tr><td><a href="https://play.robobattles.com/introduction/welcome">Welcome</a></td><td>Begin your RoboBattles story</td><td>Start your Bot Battles story</td><td>Welcome to Stardust Springs! </td><td></td><td><a href="https://content.gitbook.com/content/3lMcmYNZwepJ8VBzSDr1/blobs/AcPACofiG09azwd1e4Hx/WelcomeHello.jpg">WelcomeHello.jpg</a></td><td></td></tr><tr><td><a href="https://play.robobattles.com/introduction/get-parts">Get Parts</a></td><td>Buy parts for your robot</td><td>Order parts for your bot</td><td></td><td></td><td><a href="https://content.gitbook.com/content/3lMcmYNZwepJ8VBzSDr1/blobs/CIeIkGtRIMw4xokfeM8a/PartsScrap.jpg">PartsScrap.jpg</a></td><td></td></tr><tr><td><a href="https://play.robobattles.com/tutorial/your-first-robot">Tutorial</a></td><td>Craft your first robot</td><td></td><td></td><td></td><td><a href="https://1320923231-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3lMcmYNZwepJ8VBzSDr1%2Fuploads%2FNAEhpvEOUv9zbHecS4Gj%2FCraftingChassis.jpg?alt=media&amp;token=74942b8e-15ae-4a98-9908-db7cdd470603">CraftingChassis.jpg</a></td><td></td></tr><tr><td><a href="https://play.robobattles.com/battle/rules">Battle</a></td><td>Discover the rules of competition</td><td></td><td></td><td></td><td><a href="https://1320923231-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3lMcmYNZwepJ8VBzSDr1%2Fuploads%2FEtcuZPzYmaYydaVk06gY%2FRulesCrafting.jpg?alt=media&amp;token=34b7af18-0d21-4220-95d3-e552608f1e0c">RulesCrafting.jpg</a></td><td></td></tr><tr><td><a href="https://play.robobattles.com/adventure/quests">Quests</a></td><td>Complete quests to level up your skills</td><td></td><td></td><td></td><td><a href="https://content.gitbook.com/content/3lMcmYNZwepJ8VBzSDr1/blobs/YD8zDcZfz7qwjBxFluu4/WelcomeGarage.jpg">WelcomeGarage.jpg</a></td><td></td></tr><tr><td><a href="https://play.robobattles.com/adventure/lore">Lore</a></td><td>Dive into the world of RoboBattles</td><td></td><td></td><td></td><td><a href="https://1320923231-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3lMcmYNZwepJ8VBzSDr1%2Fuploads%2F5aJKubShSLWbUSI5hSkQ%2FWelcomeStadium.jpg?alt=media&amp;token=fa8b88da-f947-4041-9275-fdd2bb76d5fe">WelcomeStadium.jpg</a></td><td></td></tr></tbody></table>


# Welcome

<figure><img src="https://content.gitbook.com/content/3lMcmYNZwepJ8VBzSDr1/blobs/AcPACofiG09azwd1e4Hx/WelcomeHello.jpg" alt=""><figcaption></figcaption></figure>

**\[Mayor Ishii]** Welcome, traveler! 👋 You look exhausted! Here, grab a seat. 🚨 NO NOT THER-- okay it's fine it's fine. I know that bird. His poops brush right off.

I'm Lily Ishii, the mayor of Stardust Springs. You're probably thinking, "Wow, you look really young to be a mayor!" Well, you're right. 😎 At 19, I'm the youngest mayor in our town's history. But don't let my age fool you. I'm all about finding fresh solutions to big problems.

Speaking of which, see that stadium over there?

<figure><img src="https://1320923231-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3lMcmYNZwepJ8VBzSDr1%2Fuploads%2F5aJKubShSLWbUSI5hSkQ%2FWelcomeStadium.jpg?alt=media&amp;token=fa8b88da-f947-4041-9275-fdd2bb76d5fe" alt="" width="563"><figcaption></figcaption></figure>

You'll never guess what it's for. Recycling! ♻️ We've turned recycling into a spectator sport. We call it RoboBattles!

We take junk out of landfills. Bike parts, broken appliances, you name it. We craft that junk into wild, weird, and colorful robots. Then we ride them into competition, battling to break them down into scrap! Parts fly every which way. The crowds go wild. And every battle ends with a treasure trove of recyclable materials! 🗑️🏆

<figure><img src="https://1320923231-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3lMcmYNZwepJ8VBzSDr1%2Fuploads%2FJhCFo7bEAE7vgGHJzF0K%2FWelcomeBanner.jpg?alt=media&amp;token=12674575-5096-4227-b65b-92947c16abc8" alt="" width="563"><figcaption></figcaption></figure>

You should see the robot designs they come up with. Tentacle pincer robots. 🐙 Pink rocket robots. 🚀 Cat robots with giant propeller tails. 🐈🌪️

I know you just got here, but we're always looking for new RoboBattles players. What do you think? Want to become the next RoboBattles star? Yea!? Let's gooooo!

Hey, wait a sec... I never got your name!

***Next:** Create your character ↓*


# Create Your Character

<figure><img src="https://1320923231-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3lMcmYNZwepJ8VBzSDr1%2Fuploads%2FOZVqWCrecYwp42xGvmtB%2FCreateYourCharacter.jpg?alt=media&amp;token=bfa81a9f-e9f4-4ddb-ac34-ef4161229c25" alt=""><figcaption></figcaption></figure>

Tell me about yourself! [Download](https://robobattles.com/RoboBattles%20Character%20Sheet.pdf) and fill out your Character Sheet.

<figure><img src="https://1320923231-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3lMcmYNZwepJ8VBzSDr1%2Fuploads%2FIVvfNYBO5E1tx2PLSoly%2FCharacter%20Sheet.png?alt=media&amp;token=40992ad2-6dfe-4076-ac0e-d3ab0c3a2159" alt="" width="563"><figcaption></figcaption></figure>


# Visit the Garage

<figure><img src="https://content.gitbook.com/content/3lMcmYNZwepJ8VBzSDr1/blobs/YD8zDcZfz7qwjBxFluu4/WelcomeGarage.jpg" alt=""><figcaption></figcaption></figure>

**\[Mayor Ishii]** Okay, now I feel like we've officially met. :handshake:

When you're ready to start gathering parts for your robot, I know just the person to talk to. Head over to that red building. That's Zoe's garage.

Tell her Mayor Ishii sent you. She'll have you crafting robots faster than a 3D printer on caffeine! :coffee:


# Get Parts

<div data-full-width="false"><figure><img src="https://content.gitbook.com/content/3lMcmYNZwepJ8VBzSDr1/blobs/mbHfzAafwq70s0ak1f6c/PartsHello.jpg" alt=""><figcaption></figcaption></figure></div>

**\[Zoe Foxlin]** Hey there! 🔧 I'm Zoe Foxlin. Welcome to my robot garage!

Mayor Ishii sent you, huh? She's always drumming up new recruits. That's cool- we can use fresh faces and ideas.

I remember my first robot. It was basically a toaster on wheels. 😅🍞 That's the beauty of RoboBattles. You can design anything! You learn, you improve, and before you know it you'll have family, friends, and fans going wild for your creations. 🙌

Let me give you a tour. Just be careful where you step! My spare parts are everywhere.

Here's what you'll need to craft your robot. Expand each row for links to purchase!

<details>

<summary><img src="https://content.gitbook.com/content/3lMcmYNZwepJ8VBzSDr1/blobs/LE5GwARxbk9AlmYqYu2i/Audi%20RS%20Inline.jpg" alt="" data-size="line"> Audi RS Q e-tron ($180)</summary>

* [Amazon](https://www.amazon.com/gp/product/B0BSRDSMCP/ref=ox_sc_act_title_1?smid=ATVPDKIKX0DER\&th=1)
* [Walmart](https://www.walmart.com/ip/LEGO-Technic-Audi-RS-Q-e-tron-42160-Advanced-Building-Kit-Kids-Ages-10-Up-Remote-Controlled-Car-Toy-Features-App-Controlled-Steering-Makes-Great-Gift/2379133844?wmlspartner=wlpa\&selectedSellerId=0\&wl13=3494\&gclsrc=aw.ds\&adid=222222222772379133844_117755028669_12420145346\&wl0=\&wl1=g\&wl2=c\&wl3=501107745824\&wl4=pla-394283752452\&wl5=9061189\&wl6=\&wl7=\&wl8=\&wl9=pla\&wl10=8175035\&wl11=local\&wl12=2379133844)
* [LEGO®](https://click.linksynergy.com/deeplink?id=ijmwixbQ9tg\&mid=13923\&murl=https%3A%2F%2Fwww.lego.com%2Fen-us%2Fproduct%2Faudi-rs-q-e-tron-42160\&u1=guide)

Your robot must use 1 Technic™ Hub and 3 Technic™ Motors. This kit includes all of them, plus tons of random Technic™ pieces!

</details>

<details>

<summary><img src="https://1320923231-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3lMcmYNZwepJ8VBzSDr1%2Fuploads%2FvHLWUNfTEtu4JcsZw5rr%2FParts%20Creative%20Build%20and%20Play.jpg?alt=media&amp;token=dcb3d690-28c8-4ca0-8296-52432f640bcf" alt="" data-size="line"> Creative Build-and-Play ($50)</summary>

* ​[Amazon](https://www.amazon.com/gp/product/B00NHQF6MG/)​
* ​[Walmart](https://www.walmart.com/ip/seort/40996357)​
* ​[LEGO®](https://click.linksynergy.com/deeplink?id=ijmwixbQ9tg\&mid=13923\&murl=https%3A%2F%2Fwww.lego.com%2Fen-us%2Fproduct%2Flego-large-creative-brick-box-10698\&u1=edguide)​

Lots of random bricks! If you already own a bunch of bricks, you can use what you've got.

</details>

<details>

<summary><img src="https://1320923231-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3lMcmYNZwepJ8VBzSDr1%2Fuploads%2FHOC3PNvcULnSXVO1Tv9D%2FPartsDungeonsAndDragons%20Inline.jpg?alt=media&amp;token=c0cc4577-1145-42cf-8711-1b9af6136412" alt="" data-size="line"> Minifigure ($10)</summary>

![](https://1320923231-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3lMcmYNZwepJ8VBzSDr1%2Fuploads%2F5OaP754nkk4uXikfNmaJ%2FPartsDungeonsAndDragons.jpg?alt=media\&token=1ab89639-0c43-4999-bdf7-a71f7c6136e3)

Your minifigure is your avatar! Any LEGO® minifig will do. You can use one you already have, buy one secondhand, or [customize one](https://click.linksynergy.com/deeplink?id=ijmwixbQ9tg\&mid=13923\&murl=https%3A%2F%2Fwww.lego.com%2Fen-us%2Fminifigure-factory\&u1=guide)!

</details>

<details>

<summary><img src="https://content.gitbook.com/content/3lMcmYNZwepJ8VBzSDr1/blobs/v58lNALvwppumv5BdThN/Xbox%20Controller.jpg" alt="" data-size="line"> Xbox Controller ($50)</summary>

* [Microsoft](https://www.xbox.com/en-US/accessories/controllers/xbox-wireless-controller)
* [Walmart](https://www.walmart.com/ip/Microsoft-Xbox-Wireless-Controller-Carbon-Black/1361877204)
* [Amazon](https://www.amazon.com/Xbox-Wireless-Gaming-Controller-Headsets-Console/dp/B0F1HX3WXX)

Must be compatible with Xbox One or Series S/X.

The Xbox Adaptive Controller [($100)](https://www.xbox.com/en-US/accessories/controllers/xbox-adaptive-controller) is also supported for players with limited mobility. See [Adaptive Controller](https://play.robobattles.com/extras/adaptive-controller) for instructions.

</details>

<details>

<summary><img src="https://1320923231-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3lMcmYNZwepJ8VBzSDr1%2Fuploads%2F6pLptIgp6EZ0pt5aTmUD%2FParts%20Batteries.jpg?alt=media&amp;token=19bf3bd8-0b21-4049-b6cf-e17771753424" alt="" data-size="line"> 8 AA Batteries ($6)</summary>

* [Amazon](https://www.amazon.com/AmazonBasics-Performance-Alkaline-Batteries-Count/dp/B00O869KJE)
* [Walmart](https://www.walmart.com/ip/Great-Value-AA-Batteries-8-Pack-Double-A-Alkaline-Batteries/14317516644)

Rechargeable AA batteries work too :recycle:

</details>

<details>

<summary><img src="https://1320923231-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3lMcmYNZwepJ8VBzSDr1%2Fuploads%2FfOoa5ZcAxeQzIyYDLOcf%2FMaterials%20Screwdriver.jpg?alt=media&amp;token=84e24dd1-86a6-4613-97dd-7c59f236cbaa" alt="" data-size="line"> Small Philips Screwdriver ($8)</summary>

* ​[Amazon](https://www.amazon.com/s?k=%230+phillips+screwdriver)​
* ​[Walmart](https://www.walmart.com/search?q=%230+phillips+screwdriver)

To open the hub's battery compartment. You probably already have one lying around. Must be size #0 or smaller!

</details>

Got some spare LEGO® pieces already? Use em! In Stardust Springs, we're all about reducing waste. 🌿 I dive into closets and dumpsters like they're all-you-can-eat buffets. Why buy new parts when you have perfectly good scrap at home!

That's why we allow pretty much any LEGO® parts in RoboBattles. Mismatched pieces from the castle set you never finished? 🏰 That seagull from your little cousin's LEGO® Friends set? BAM, SLAP 'EM ON. 🍳

<figure><img src="https://1320923231-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3lMcmYNZwepJ8VBzSDr1%2Fuploads%2Fx7HDudFJhXZn5kptEhiI%2FPartsSeagull.jpg?alt=media&amp;token=3dd79a97-aef7-4112-a217-922d315cf74d" alt="" width="563"><figcaption></figcaption></figure>

Once you've got your parts, you're ready for the next big step in your RoboBattles journey: crafting your first robot!

***Next:** Robot building tutorial ↓*


# Your First Robot

<figure><img src="https://1320923231-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3lMcmYNZwepJ8VBzSDr1%2Fuploads%2FNAEhpvEOUv9zbHecS4Gj%2FCraftingChassis.jpg?alt=media&amp;token=74942b8e-15ae-4a98-9908-db7cdd470603" alt=""><figcaption></figcaption></figure>

**\[Zoe Foxlin]** Pick a workbench and I'll give you a crash course! 🧰

To get you started, we'll recreate a simple bot I built the other day. I call it... The Purrmenator. 😼

***Next:** Craft your chassis ↓*


# Parts

<div data-full-width="false"><figure><img src="https://content.gitbook.com/content/3lMcmYNZwepJ8VBzSDr1/blobs/CIeIkGtRIMw4xokfeM8a/PartsScrap.jpg" alt=""><figcaption></figcaption></figure></div>

**\[Zoe Foxlin]** It's robot crafting time! First, gather up your parts.

## Minifigure

<figure><img src="https://1320923231-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3lMcmYNZwepJ8VBzSDr1%2Fuploads%2F5OaP754nkk4uXikfNmaJ%2FPartsDungeonsAndDragons.jpg?alt=media&amp;token=1ab89639-0c43-4999-bdf7-a71f7c6136e3" alt="" width="375"><figcaption></figcaption></figure>

The minifigure is you. 🫵 Who else is going to ride your robot into battle!?

## Controller

<figure><img src="https://content.gitbook.com/content/3lMcmYNZwepJ8VBzSDr1/blobs/v58lNALvwppumv5BdThN/Xbox%20Controller.jpg" alt="" width="375"><figcaption></figcaption></figure>

The controller is how you control your motors! 🎮🚘 When you press a button, the controller sends a signal to your hub.

## Hub

<figure><img src="https://content.gitbook.com/content/3lMcmYNZwepJ8VBzSDr1/blobs/VdNGcUuDtNu1GWTyTOaJ/Technic%20Hub.jpg" alt="" width="375"><figcaption></figcaption></figure>

The hub is the brain of your build! 🧠 It receives signals from your controller. Then it uses those signals to power your motors.

## Motors

<figure><img src="https://content.gitbook.com/content/3lMcmYNZwepJ8VBzSDr1/blobs/kZJE3CVvRSYtyuqzyI4f/Technic%20Large%20Motor.jpg" alt="" width="375"><figcaption></figcaption></figure>

Unless you're building a sitting duckbot, you'll need some motors. 🦆 Motors make your creations move!

## Scrap

The random LEGO® pieces that tie it all together! In Stardust Springs, we call this **scrap**! After each battle, you can recycle your scrap into your next robot.

There are two types of LEGO® pieces. You'll use both!

<table data-card-size="large" data-view="cards"><thead><tr><th></th><th></th><th data-hidden></th><th data-hidden data-card-cover data-type="files"></th></tr></thead><tbody><tr><td><strong>LEGO® Bricks</strong></td><td>Bricks, plates, and more. For creating decorative designs.</td><td></td><td><a href="https://1320923231-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3lMcmYNZwepJ8VBzSDr1%2Fuploads%2FJ4GWRvHrUZW2Tf7HLWQU%2FScrap%20System.jpg?alt=media&amp;token=c67c2644-8792-4399-aaa4-ed5721033fc4">Scrap System.jpg</a></td></tr><tr><td><strong>LEGO® Technic™</strong></td><td>Arms, axles, and gears. For creating strong, moving designs.</td><td></td><td><a href="https://1320923231-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3lMcmYNZwepJ8VBzSDr1%2Fuploads%2FYBIu771pHMOpTJF6GWXz%2FScrap%20Technic.jpg?alt=media&amp;token=083f98ea-ec48-49c2-8023-8b330e656fbe">Scrap Technic.jpg</a></td></tr></tbody></table>

***Next:** Craft your chassis ↓*


# Chassis

**\[Zoe Foxlin]** First we'll craft the **chassis!** Say it with me: *chass-eeeeee!* This is your robot's skeleton. It's a frame that includes your hub, motors, and wheels.

The chassis determines how your robot moves and battles. Remember how I said Technic™ pieces are good for crafting strong, moving designs? That makes them perfect for building a chassis.

A good chassis is all about experimentation. The more robots you craft, the better and faster you'll get at it!

Start by crafting the Purrmenator chassis:

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

<figure><img src="https://1320923231-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3lMcmYNZwepJ8VBzSDr1%2Fuploads%2FagymXXMPCC0FsZbbfukl%2FCraftingPurrminatorChassis.jpg?alt=media&amp;token=f8641016-7f47-470c-9045-d91d78a20706" alt=""><figcaption></figcaption></figure>

<figure><img src="https://1320923231-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3lMcmYNZwepJ8VBzSDr1%2Fuploads%2FZcmNMZfcQgZDFileXlUL%2FChassis_Technic_1_1x.png?alt=media&amp;token=47b2d581-9084-4089-98b8-b1656d107f03" alt=""><figcaption></figcaption></figure>

<figure><img src="https://1320923231-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3lMcmYNZwepJ8VBzSDr1%2Fuploads%2FaJWJMjTGdDSi6NUr8DMn%2FChassis_Technic_2_1x.png?alt=media&amp;token=f0a079a8-b420-4372-92bc-f330af099177" alt=""><figcaption></figcaption></figure>

<figure><img src="https://1320923231-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3lMcmYNZwepJ8VBzSDr1%2Fuploads%2FZcpCuKD1QUe8dvTEq8iq%2FChassis_Technic_3_1x.png?alt=media&amp;token=9e037987-dced-4b06-b6c6-4234e4f481d6" alt=""><figcaption></figcaption></figure>

<figure><img src="https://1320923231-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3lMcmYNZwepJ8VBzSDr1%2Fuploads%2FnY57wOoXLzF2kTZzlVD7%2FChassis_Technic_4_1x.png?alt=media&amp;token=8145f082-afe0-4bd8-b4d6-7484629e8c69" alt=""><figcaption></figcaption></figure>

<figure><img src="https://1320923231-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3lMcmYNZwepJ8VBzSDr1%2Fuploads%2FXdWwPQmuRbTX03ljDEAN%2FChassis_Technic_5_1x.png?alt=media&amp;token=8feaa519-0463-4eeb-98fe-a62ceeae1d50" alt=""><figcaption></figcaption></figure>

<figure><img src="https://1320923231-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3lMcmYNZwepJ8VBzSDr1%2Fuploads%2FcOlryKrs5KFAUq5X5ema%2FChassis_Technic_6_1x.png?alt=media&amp;token=fa84cb2f-df6a-4284-a9fe-c7e3cc01c2ba" alt=""><figcaption></figcaption></figure>

<figure><img src="https://1320923231-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3lMcmYNZwepJ8VBzSDr1%2Fuploads%2FcIfUV4JAvxym23nQZHbC%2FChassis_Technic_7_1x.png?alt=media&amp;token=25ff4191-9dde-4fa0-b26c-ac2131326d51" alt=""><figcaption></figcaption></figure>

<figure><img src="https://1320923231-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3lMcmYNZwepJ8VBzSDr1%2Fuploads%2FvuhDSLK9At3y0mu4rUIK%2FChassis_Technic_8_1x.png?alt=media&amp;token=281a46c3-5fc0-4d3b-b556-a672b0ce389c" alt=""><figcaption></figcaption></figure>

Now plug in your motors:

* &#x20;Left motor → Port A
* Right motor → Port B
* Center motor → Port C

<figure><img src="https://1320923231-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3lMcmYNZwepJ8VBzSDr1%2Fuploads%2F2sjZeo7GmlaHNHhnMMia%2FCrafting%20Motor%20Hookup.jpg?alt=media&amp;token=a08f26d4-abde-4daf-b7f9-457efb9a8f85" alt=""><figcaption></figcaption></figure>
{% endtab %}

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

<figure><img src="https://1320923231-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3lMcmYNZwepJ8VBzSDr1%2Fuploads%2FlwTw1Lk6tXlnkUimc5QD%2FCrafting%20Purrminator%20Chassis%20Spike.jpg?alt=media&amp;token=d8c75ca7-d5e0-4988-864a-c4739bc07cc6" alt=""><figcaption></figcaption></figure>

<figure><img src="https://1320923231-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3lMcmYNZwepJ8VBzSDr1%2Fuploads%2FwNgXBdcDvus4zoEt5o2Y%2FChassis_Spike_1_1x.png?alt=media&amp;token=248095e3-e7f2-4104-a33c-76feb6871659" alt=""><figcaption></figcaption></figure>

<figure><img src="https://1320923231-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3lMcmYNZwepJ8VBzSDr1%2Fuploads%2FaoNawqEMsuD4LIHQrivc%2FChassis_Spike_2_1x.png?alt=media&amp;token=b921c5cf-3eb4-4916-b1d7-201e3fd5406e" alt=""><figcaption></figcaption></figure>

<figure><img src="https://1320923231-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3lMcmYNZwepJ8VBzSDr1%2Fuploads%2FU3h6MKVfjVv0JTD5zOyV%2FChassis_Spike_3_1x.png?alt=media&amp;token=5c2b267f-6abe-496b-a082-d00ad7a27719" alt=""><figcaption></figcaption></figure>

<figure><img src="https://1320923231-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3lMcmYNZwepJ8VBzSDr1%2Fuploads%2FGdJV4d7xfPZ5dVXo2SVe%2FChassis_Spike_4_1x.png?alt=media&amp;token=6ccce798-83a0-4f69-91b9-1d6b2c996e65" alt=""><figcaption></figcaption></figure>

<figure><img src="https://1320923231-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3lMcmYNZwepJ8VBzSDr1%2Fuploads%2FJxN7w673HYZGZHZkO0Et%2FChassis_Spike_5_1x.png?alt=media&amp;token=68ad62e8-13b1-42c8-bab0-19e3cd7b83bf" alt=""><figcaption></figcaption></figure>

<figure><img src="https://1320923231-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3lMcmYNZwepJ8VBzSDr1%2Fuploads%2Fm6dGgcaURdCpsFlYh1tM%2FChassis_Spike_6_1x.png?alt=media&amp;token=83a68afb-f7d7-4460-818b-28c8e18459f0" alt=""><figcaption></figcaption></figure>

Now plug in your motors:

* &#x20;Left motor → Port A
* Right motor → Port B
* Center motor → Port C

<figure><img src="https://1320923231-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3lMcmYNZwepJ8VBzSDr1%2Fuploads%2FUtSh1aRJluiiQ99bhBFB%2FCrafting%20Motor%20Hookup%20Spike.jpg?alt=media&amp;token=14ae07ae-ccdd-476a-bae1-21641019172a" alt=""><figcaption></figcaption></figure>
{% endtab %}
{% endtabs %}


# Decoration

**\[Zoe Foxlin]** Now that your [chassis](https://play.robobattles.com/tutorial/your-first-robot/chassis) is built, you're ready to decorate your robot! This is where your imagination can really shine.

Here is how I decorated The Purrmenator:

<figure><img src="https://1320923231-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3lMcmYNZwepJ8VBzSDr1%2Fuploads%2FXEReRck8D9kPN6GLXtp8%2FCrafting%20Purrmenator%20Decorations.jpg?alt=media&amp;token=5330ad53-0632-40e5-a79d-055b5f1dcdaf" alt="" width="563"><figcaption></figcaption></figure>

But this is \*your\* robot. Come up with your own decorations!

Design your robot after something meaningful to you. It could be your pet, an object from your favorite travel destination, or a character from a movie. If you can't think of anything, design it after the first thing you see when you look around the room!

Unlike the chassis which is made from Technic™ pieces, it's best to make decorations out of bricks so they can fall apart in battle. Remember, RoboBattles are all about putting on a recycling show. If your decorations explode in an awesome way, you'll earn more recycling points and get the win. Make your decorations wild!

To connect bricks to Technic™, use one of these methods:

<figure><img src="https://1320923231-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3lMcmYNZwepJ8VBzSDr1%2Fuploads%2Fl8We3frh3VgPNDLRAmd7%2FTechnic%20Connection%201.png?alt=media&amp;token=83770862-e53c-48ac-902a-cfe3ec075e84" alt="" width="563"><figcaption></figcaption></figure>

<figure><img src="https://1320923231-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3lMcmYNZwepJ8VBzSDr1%2Fuploads%2FvgrFcYCRHUA7IXugrank%2FTechnic%20Connection%202.png?alt=media&amp;token=7912e5ea-802d-4228-8e3d-65b45343ecce" alt="" width="563"><figcaption></figcaption></figure>

<figure><img src="https://1320923231-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3lMcmYNZwepJ8VBzSDr1%2Fuploads%2Faso3YfLi2ZD81iY4gEXh%2FTechnic%20Connection%203.png?alt=media&amp;token=3e3a4e47-cc8c-4e95-9d6e-db6ccbbf314f" alt="" width="563"><figcaption></figcaption></figure>


# Controls

<figure><img src="https://content.gitbook.com/content/3lMcmYNZwepJ8VBzSDr1/blobs/aF4dD9pQjWeqsydVmBMY/PartsController.jpg" alt=""><figcaption></figcaption></figure>

**\[Zoe Foxlin]** Time to get your robot in motion!

The control system you design for your robot is just as important as the robot itself!

What buttons and joysticks will control which motors? How fast will the motors move? Will there be a delay? Will it set off a dazzling chain of movements across multiple motors? The possibilities are endless. And the power is in your hands.


# First-Time Setup

<figure><img src="https://1320923231-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3lMcmYNZwepJ8VBzSDr1%2Fuploads%2FLSJHT3OVu70RFjwEEEhK%2FPartsHub.jpg?alt=media&amp;token=55d58ca6-a7ed-4c7e-8898-dd35e017d643" 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="https://1320923231-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3lMcmYNZwepJ8VBzSDr1%2Fuploads%2FLCODKFLcZIsKbwyM0PYq%2FInstall%20Pybricks%20Firmware.jpg?alt=media&amp;token=87abff3b-7566-4816-919d-ebcedc81afb5" 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="https://1320923231-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3lMcmYNZwepJ8VBzSDr1%2Fuploads%2FrEkrM7CCv61kyjHu3x2W%2FXbox%20Button%20xbox.png?alt=media&amp;token=59fb9a25-2019-4706-9bc1-3155af384908" 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="https://1320923231-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3lMcmYNZwepJ8VBzSDr1%2Fuploads%2FzQMBiGzxS7rjZI0ldC1O%2Fimage.png?alt=media&amp;token=f811ede5-50b4-451b-bb54-e4e8e1ee6c12" 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 %}


# Controlling Your Bot

{% stepper %}
{% step %}

### Turn on your hub

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

<div align="left"><figure><img src="https://content.gitbook.com/content/3lMcmYNZwepJ8VBzSDr1/blobs/VdNGcUuDtNu1GWTyTOaJ/Technic%20Hub.jpg" 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="https://1320923231-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3lMcmYNZwepJ8VBzSDr1%2Fuploads%2FPlRjFM38YOUjgssmKeey%2FHub%20Spike%20Prime.jpg?alt=media&amp;token=03c4773f-602d-497a-b0dd-8115b6ddbb3d" 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="https://1320923231-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3lMcmYNZwepJ8VBzSDr1%2Fuploads%2FrEkrM7CCv61kyjHu3x2W%2FXbox%20Button%20xbox.png?alt=media&amp;token=59fb9a25-2019-4706-9bc1-3155af384908" 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](https://play.robobattles.com/tutorial/controls/first-time-setup#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="https://1320923231-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3lMcmYNZwepJ8VBzSDr1%2Fuploads%2FagLZmCHERo0jjgdVQiWF%2FXbox%20Button%20left-joystick-press.png?alt=media&amp;token=ec97bb36-6e55-4048-a421-84268a69ea12" alt="" data-size="line"> to drive. Use the triggers <img src="https://1320923231-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3lMcmYNZwepJ8VBzSDr1%2Fuploads%2Fiyki4M97Nj7zBntlnysj%2FXbox%20Button%20left-trigger.png?alt=media&amp;token=2eec09ee-0ba3-46e5-a00f-a21bfefb5b4d" alt="" data-size="line"> <img src="https://1320923231-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3lMcmYNZwepJ8VBzSDr1%2Fuploads%2Fi2NBSagNdyxHLgrEW5Kc%2FXbox%20Button%20right-trigger.png?alt=media&amp;token=765ed17e-46f9-4f6d-8f24-5746e33365da" alt="" data-size="line"> to control your weapon.
{% endstep %}
{% endstepper %}


# Next Steps

<figure><img src="https://1320923231-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3lMcmYNZwepJ8VBzSDr1%2Fuploads%2F4Hk4iUYPpOvBBwnTdOPS%2Fu4259575971_lego_technic_gear_dripping_with_grease_--ar_169_--s_5d1a6f40-9bf3-4126-835d-2c11ca2fba22.png?alt=media&amp;token=bf2a77bb-8271-4190-bde5-d4bcded4204a" alt=""><figcaption></figcaption></figure>

**\[Zoe Foxlin]** Congrats, you're officially an expert on robot parts! Have a sticker. Oh wait, I used the last one as a decal on my flying spiderbot. Have a cookie instead! Oops, I used the cookies as spiderbot fuel. Umm.. this greasy old gear I found in an alley..? Yes. Congratulations. 😅

Where you go next is up to you! If you want to explore the town and level up your skills, go do some quests.

{% content-ref url="/pages/D5r1UQXeCN9adJjRPrA8" %}
[Quests](https://play.robobattles.com/adventure/quests)
{% endcontent-ref %}

Or if you're ready to battle, you can take the next big step in your RoboBattles journey. You know what they say - to break the rules, you've gotta learn 'em first! And there's no one better to teach you than our RoboBattles judge, Ethan Hill! 🧑‍⚖️ Look for a guy in a striped shirt who looks like he's having WAY too much fun yelling "Foul!"

{% content-ref url="/pages/26xBBagpAQdyRgDWNnW6" %}
[Battle](https://play.robobattles.com/battle/rules)
{% endcontent-ref %}


# Craft

<figure><img src="https://1320923231-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3lMcmYNZwepJ8VBzSDr1%2Fuploads%2FI50l35BJt3QXIibGYxi0%2FCraftingHello.jpg?alt=media&amp;token=db025745-3e45-40a8-8010-222ffb95b20a" alt=""><figcaption></figcaption></figure>

**\[Zoe Foxlin]** So, future bot battler... ready to craft your mechanical masterpiece?

You [got your parts](https://play.robobattles.com/introduction/get-parts). Now I'll show you how to use them!

***Next:** Learn the parts ↓*


# Hub Setup

## Powering On/Off

To power on, press the green button.

To power off, press and hold the green button until the light turns off.

## Updating Firmware

The first time you use a brand new hub, you'll need to update its firmware with the [LEGO® Powered Up app](https://www.lego.com/en-us/service/device-guide/powered-up/?locale=en-us).

If your hub ever has issues, you can repeat these steps to reinstall the firmware.

<details>

<summary>Firmware Update Instructions</summary>

1. Remove and reinstall your hub's batteries.
2. Download the [LEGO® Powered Up app](https://www.lego.com/en-us/service/device-guide/powered-up/?locale=en-us).
3. Make sure your smart device has Bluetooth enabled.
4. Open the app.
5. Tap "Create".

<img src="https://1320923231-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3lMcmYNZwepJ8VBzSDr1%2Fuploads%2F22bII5po0spPBNtEmFdr%2FSetupFirmwareCreate.jpg?alt=media&amp;token=1a9593a4-ab49-4fa3-a63d-f08614473781" alt="" data-size="original">

6. Tap "+".

<img src="https://1320923231-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3lMcmYNZwepJ8VBzSDr1%2Fuploads%2Fn4Xt5LpRT50bMWnwgjrb%2FSetupFirmwareAdd.jpg?alt=media&amp;token=65610b97-c486-4cbb-8c10-569193a841dd" alt="" data-size="original">

7. Tap "->".

<img src="https://1320923231-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3lMcmYNZwepJ8VBzSDr1%2Fuploads%2FTjfzFAOQtRDR2PBivlmT%2FSetupFirmwareContinue.jpg?alt=media&amp;token=aa9429d1-6082-427f-8ca0-82d96291a0af" alt="" data-size="original">

8. Tap "Controller".

<img src="https://1320923231-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3lMcmYNZwepJ8VBzSDr1%2Fuploads%2FK0EclHDBGZd50ZcoEyUj%2FSetupFirmwareController.jpg?alt=media&amp;token=7271e471-7846-45c6-8cfc-a064b9051dc8" alt="" data-size="original">

9. Choose the first controller type.

<img src="https://1320923231-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3lMcmYNZwepJ8VBzSDr1%2Fuploads%2F6uxQlVvBZj6JcCF9R3Zz%2FSetupFirmwareChooseController.jpg?alt=media&amp;token=da0bb0bd-824f-449f-8f5e-c9f7f48e358c" alt="" data-size="original">

10. Accept Bluetooth permissions.
11. Press the lock button.

<img src="https://1320923231-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3lMcmYNZwepJ8VBzSDr1%2Fuploads%2FAM0FaqY0C7OCpxiRY9Ky%2FSetupFirmwareLock.jpg?alt=media&amp;token=754f4c78-a170-4985-96ab-78917b075dec" alt="" data-size="original">

12. Press the Bluetooth button.

<img src="https://1320923231-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3lMcmYNZwepJ8VBzSDr1%2Fuploads%2FfWdRwIseHyw67YA04DRw%2FSetupFirmwareBluetooth.jpg?alt=media&amp;token=b7576dad-5f08-4261-9cd0-a2e4cabc6e54" alt="" data-size="original">

13. Press and hold the square green button on your hub until the light begins flashing multiple colors.
14. Wait for the firmware update to complete.

<img src="https://1320923231-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3lMcmYNZwepJ8VBzSDr1%2Fuploads%2FUOdbdpcuzu3a8UMfnY30%2FSetupFirmwareUpdating.jpg?alt=media&amp;token=0a57eb3e-a3dd-46b8-9799-003bdc71f320" alt="" data-size="original">

</details>


# Motor Setup

Connect your motors to your hub!

<details>

<summary>Move Hub <img src="https://content.gitbook.com/content/3lMcmYNZwepJ8VBzSDr1/blobs/cP9QvSsnYYFbx8ghp7WT/Move%20Hub.jpg" alt="" data-size="line"></summary>

The Move Hub has two motors built in. These are motors A and B.

If you have extra motors, connect them to ports C and D.

</details>

<details>

<summary>Technic™ Hub <img src="https://content.gitbook.com/content/3lMcmYNZwepJ8VBzSDr1/blobs/VdNGcUuDtNu1GWTyTOaJ/Technic%20Hub.jpg" alt="" data-size="line"></summary>

Connect your motors to ports A, B, C, or D.

</details>


# Getting Started

The time has come! Let's build some bots!!

Check back soon for bot ideas to help you get inspired!


# Bill of Materials

Congrats, you're officially an expert on bot parts! Have a sticker. Oh wait, I used the last one as a decal on my flying spiderbot. Have a cookie instead! Oops, I used the cookies as spiderbot fuel. Umm.. this greasy old gear I found in an alley..? Yes. Congratulations. 😅

<figure><img src="https://1320923231-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3lMcmYNZwepJ8VBzSDr1%2Fuploads%2F4Hk4iUYPpOvBBwnTdOPS%2Fu4259575971_lego_technic_gear_dripping_with_grease_--ar_169_--s_5d1a6f40-9bf3-4126-835d-2c11ca2fba22.png?alt=media&amp;token=bf2a77bb-8271-4190-bde5-d4bcded4204a" alt="" width="563"><figcaption></figcaption></figure>

Now it's time to create a list of the parts you want to get! This is called a "bill of materials." Maybe wash your hands first, though. To recap, you'll need:

* [ ] **x1 Pilot** <img src="https://content.gitbook.com/content/3lMcmYNZwepJ8VBzSDr1/blobs/fLFTtcOi3JTS3W9bdtxf/Minifigures.jpg" alt="" data-size="line">
* [ ] **x1 Controller** <img src="https://content.gitbook.com/content/3lMcmYNZwepJ8VBzSDr1/blobs/y9ZONYQEE8P2fjBWsJdt/88010.jpeg" alt="" data-size="line">
* [ ] **x1 Hub** <img src="https://content.gitbook.com/content/3lMcmYNZwepJ8VBzSDr1/blobs/VdNGcUuDtNu1GWTyTOaJ/Technic%20Hub.jpg" alt="" data-size="line">
* [ ] **x2-4 Motors** <img src="https://content.gitbook.com/content/3lMcmYNZwepJ8VBzSDr1/blobs/e1dR1Nrv8tXCZ1Lm0kOw/Large%20Angular%20Motor.jpg" alt="" data-size="line">
* [ ] **Wheels** <img src="https://content.gitbook.com/content/3lMcmYNZwepJ8VBzSDr1/blobs/csoTthcoFjRUv8zdOqpt/Wheel%20107x44.jpg" alt="" data-size="line"> *(optional, recommended)*
* [ ] **Scrap** <img src="https://1320923231-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3lMcmYNZwepJ8VBzSDr1%2Fuploads%2FhWG5YGUZySEpVATztReO%2FScrap.jpg?alt=media&amp;token=58084faf-fd56-4199-bda8-1eb92e819f46" alt="" data-size="line">

If you want some ideas 🤔, here are some example bills of materials. You can't go wrong with any of these. The intermediate and expert sets can both create championship caliber bots. 🏅 And the beginner set can be upgraded to intermediate when you're ready. Keep in mind you'll still need a [pilot](https://play.robobattles.com/craft/avatar) and a [controller](https://play.robobattles.com/craft/controller)!

<details>

<summary>🟢 Beginner  ($100 - $160) — Age 7+</summary>

* [ ] **Hub & Motors**
  * [ ] x1 [Move Hub](https://click.linksynergy.com/deeplink?id=ijmwixbQ9tg\&mid=13923\&murl=https%3A%2F%2Fwww.lego.com%2Fen-us%2Fproduct%2Fmove-hub-88006\&u1=guide) <img src="https://content.gitbook.com/content/3lMcmYNZwepJ8VBzSDr1/blobs/IbuHuYRMFlFEFiciyN8Y/Move%20Hub%20Inline.jpg" alt="" data-size="line">
* [ ] **Wheels**
  * [ ] x2 [Tire 107x44](https://click.linksynergy.com/deeplink?id=ijmwixbQ9tg\&mid=13923\&murl=https%3A%2F%2Fwww.lego.com%2Fen-us%2Fpick-and-build%2Fpick-a-brick%3FdesignNumber%3D23798\&u1=guide) <img src="https://content.gitbook.com/content/3lMcmYNZwepJ8VBzSDr1/blobs/pJmehfCtOtXcoUuxayyN/Wheel.png" alt="" data-size="line">
  * [ ] x2 [Rim 56x34](https://click.linksynergy.com/deeplink?id=ijmwixbQ9tg\&mid=13923\&murl=https%3A%2F%2Fwww.lego.com%2Fen-us%2Fpick-and-build%2Fpick-a-brick%3FdesignNumber%3D51150\&u1=guide) <img src="https://content.gitbook.com/content/3lMcmYNZwepJ8VBzSDr1/blobs/BUfIHKNcZyzhD7qOkbWd/Rim.png" alt="" data-size="line">
  * [ ] x2 [Cross Axle 8M](https://click.linksynergy.com/deeplink?id=ijmwixbQ9tg\&mid=13923\&murl=https%3A%2F%2Fwww.lego.com%2Fen-us%2Fpick-and-build%2Fpick-a-brick%3FdesignNumber%3D3707\&u1=guide) <img src="https://content.gitbook.com/content/3lMcmYNZwepJ8VBzSDr1/blobs/mOiA2Wj6XXLr6azCdY8T/Axle.png" alt="" data-size="line">
  * [ ] x4 [1/2 Bush](https://click.linksynergy.com/deeplink?id=ijmwixbQ9tg\&mid=13923\&murl=https%3A%2F%2Fwww.lego.com%2Fen-us%2Fpick-and-build%2Fpick-a-brick%3FdesignNumber%3D42136\&u1=guide) <img src="https://content.gitbook.com/content/3lMcmYNZwepJ8VBzSDr1/blobs/jfAQhcMsiciV0HwxvmLX/Half%20Bush%20Inline.jpg" alt="" data-size="line">
* [ ] **Scrap**
  * [ ] x1 [Creative Color Fun](https://click.linksynergy.com/deeplink?id=ijmwixbQ9tg\&mid=13923\&murl=https%3A%2F%2Fwww.lego.com%2Fen-us%2Fproduct%2Fcreative-color-fun-11032\&u1=guide)\* <img src="https://content.gitbook.com/content/3lMcmYNZwepJ8VBzSDr1/blobs/rLbiF2bC57Z2kfMm5BXv/Creative%20Color%20Fun%20Inline.jpg" alt="" data-size="line">

The Move Hub has two built in motors. Just attach two wheels and you're up and running! A beginner bot competes by crashing into other bots like a demolition derby. When you're ready to add motorized tools, you can easily upgrade to [intermediate](#intermediate-usd140-usd350-age-10)!

*\*If you already own lots of LEGO® bricks, you can skip the Creative Color Fun.*

</details>

<details>

<summary>🟡 Intermediate ($140 - $340) — Age 10+</summary>

* [ ] **Hub & Motors**
  * [ ] x1 [Move Hub](https://click.linksynergy.com/deeplink?id=ijmwixbQ9tg\&mid=13923\&murl=https%3A%2F%2Fwww.lego.com%2Fen-us%2Fproduct%2Fmove-hub-88006\&u1=guide) <img src="https://content.gitbook.com/content/3lMcmYNZwepJ8VBzSDr1/blobs/IbuHuYRMFlFEFiciyN8Y/Move%20Hub%20Inline.jpg" alt="" data-size="line">
* [ ] **Extra Motors**
  * [ ] x1 [Technic™ Large Motor](https://click.linksynergy.com/deeplink?id=ijmwixbQ9tg\&mid=13923\&murl=https%3A%2F%2Fwww.lego.com%2Fen-us%2Fproduct%2Ftechnic-large-motor-88013\&u1=guide) <img src="https://content.gitbook.com/content/3lMcmYNZwepJ8VBzSDr1/blobs/ZmF8LoJWX2tOnooKpesS/Technic%20Large%20Motor%20Inline.jpg" alt="" data-size="line"> or [Large Angular Motor](https://click.linksynergy.com/deeplink?id=ijmwixbQ9tg\&mid=13923\&murl=https%3A%2F%2Fwww.lego.com%2Fen-us%2Fproduct%2Flarge-angular-motor-88017\&u1=guide) <img src="https://content.gitbook.com/content/3lMcmYNZwepJ8VBzSDr1/blobs/lVGwDPBD7uxbMLoXXvFR/Large%20Angular%20Motor%20Inline.jpg" alt="" data-size="line">
* [ ] **Wheels**
  * [ ] x2 [Tire 107x44](https://click.linksynergy.com/deeplink?id=ijmwixbQ9tg\&mid=13923\&murl=https%3A%2F%2Fwww.lego.com%2Fen-us%2Fpick-and-build%2Fpick-a-brick%3FdesignNumber%3D23798\&u1=guide) <img src="https://content.gitbook.com/content/3lMcmYNZwepJ8VBzSDr1/blobs/pJmehfCtOtXcoUuxayyN/Wheel.png" alt="" data-size="line">
  * [ ] x2 [Rim 56x34](https://click.linksynergy.com/deeplink?id=ijmwixbQ9tg\&mid=13923\&murl=https%3A%2F%2Fwww.lego.com%2Fen-us%2Fpick-and-build%2Fpick-a-brick%3FdesignNumber%3D51150\&u1=guide) <img src="https://content.gitbook.com/content/3lMcmYNZwepJ8VBzSDr1/blobs/BUfIHKNcZyzhD7qOkbWd/Rim.png" alt="" data-size="line">
* [ ] **Scrap**
  * [ ] x1 [Creative Color Fun](https://click.linksynergy.com/deeplink?id=ijmwixbQ9tg\&mid=13923\&murl=https%3A%2F%2Fwww.lego.com%2Fen-us%2Fproduct%2Fcreative-color-fun-11032\&u1=guide)\* <img src="https://content.gitbook.com/content/3lMcmYNZwepJ8VBzSDr1/blobs/rLbiF2bC57Z2kfMm5BXv/Creative%20Color%20Fun%20Inline.jpg" alt="" data-size="line">
  * [ ] x1 [SPIKE™ Prime Expansion](https://click.linksynergy.com/deeplink?id=ijmwixbQ9tg\&mid=13923\&murl=https%3A%2F%2Feducation.lego.com%2Fen-us%2Fproducts%2Flego-education-spike-prime-expansion-set%2F45681%2F\&u1=guide)\*\* <img src="https://content.gitbook.com/content/3lMcmYNZwepJ8VBzSDr1/blobs/BZU2E00dzQhz5RxLHaUc/Spike%20Prime%20Expansion%20Set%20Inline.jpg" alt="" data-size="line">

The Move Hub has two built in motors. With your extra large motor <img src="https://content.gitbook.com/content/3lMcmYNZwepJ8VBzSDr1/blobs/ZmF8LoJWX2tOnooKpesS/Technic%20Large%20Motor%20Inline.jpg" alt="" data-size="line"> and the Large Angular Motor <img src="https://content.gitbook.com/content/3lMcmYNZwepJ8VBzSDr1/blobs/lVGwDPBD7uxbMLoXXvFR/Large%20Angular%20Motor%20Inline.jpg" alt="" data-size="line"> included in the SPIKE™ Prime Expansion, an intermediate bot competes using powerful motorized tools!

*\*If you already own lots of LEGO® bricks, you can skip the Creative Color Fun.*

*\*\*If you already own lots of Technic™, you can skip the SPIKE™ Prime Expansion. But you may want to replace it with a second large motor.*

</details>

<details>

<summary>🔴 Expert ($180 - $390) — Age 12+</summary>

* [ ] **Hub, Motors, Wheels, and Scrap**
  * [ ] x1 [Audi RS Q e-tron](https://click.linksynergy.com/deeplink?id=ijmwixbQ9tg\&mid=13923\&murl=https%3A%2F%2Fwww.lego.com%2Fen-us%2Fproduct%2Faudi-rs-q-e-tron-42160\&u1=guide) <img src="https://content.gitbook.com/content/3lMcmYNZwepJ8VBzSDr1/blobs/LE5GwARxbk9AlmYqYu2i/Audi%20RS%20Inline.jpg" alt="" data-size="line">
* [ ] **Scrap**
  * [ ] x1 [Creative Color Fun](https://www.lego.com/en-us/product/creative-color-fun-11032)\* <img src="https://content.gitbook.com/content/3lMcmYNZwepJ8VBzSDr1/blobs/rLbiF2bC57Z2kfMm5BXv/Creative%20Color%20Fun%20Inline.jpg" alt="" data-size="line">
  * [ ] x1 [SPIKE™ Prime Expansion](https://click.linksynergy.com/deeplink?id=ijmwixbQ9tg\&mid=13923\&murl=https%3A%2F%2Feducation.lego.com%2Fen-us%2Fproducts%2Flego-education-spike-prime-expansion-set%2F45681%2F\&u1=guide)\*\* <img src="https://content.gitbook.com/content/3lMcmYNZwepJ8VBzSDr1/blobs/BZU2E00dzQhz5RxLHaUc/Spike%20Prime%20Expansion%20Set%20Inline.jpg" alt="" data-size="line">

The Audio RS Q e-tron comes with 3 Technic™ Large Motors <img src="https://content.gitbook.com/content/3lMcmYNZwepJ8VBzSDr1/blobs/ZmF8LoJWX2tOnooKpesS/Technic%20Large%20Motor%20Inline.jpg" alt="" data-size="line"><img src="https://content.gitbook.com/content/3lMcmYNZwepJ8VBzSDr1/blobs/ZmF8LoJWX2tOnooKpesS/Technic%20Large%20Motor%20Inline.jpg" alt="" data-size="line"><img src="https://content.gitbook.com/content/3lMcmYNZwepJ8VBzSDr1/blobs/ZmF8LoJWX2tOnooKpesS/Technic%20Large%20Motor%20Inline.jpg" alt="" data-size="line"> and a Technic™ Hub <img src="https://content.gitbook.com/content/3lMcmYNZwepJ8VBzSDr1/blobs/i5KETJJXsXsxbtEl9XtO/Electric%20Battery%20Box%20Powered%20Up%20Bluetooth%20Hub%20Inline.jpg" alt="" data-size="line">. Those parts alone are worth the full cost of the set, so the rest of its parts are basically free scrap.

Unlike the Move Hub <img src="https://content.gitbook.com/content/3lMcmYNZwepJ8VBzSDr1/blobs/IbuHuYRMFlFEFiciyN8Y/Move%20Hub%20Inline.jpg" alt="" data-size="line">, the Technic™ Hub <img src="https://content.gitbook.com/content/3lMcmYNZwepJ8VBzSDr1/blobs/i5KETJJXsXsxbtEl9XtO/Electric%20Battery%20Box%20Powered%20Up%20Bluetooth%20Hub%20Inline.jpg" alt="" data-size="line"> has no built in motors. This is less beginner-friendly since you need to design your own drive system. But it means you get total freedom over how your bot looks and moves.

*\*If you already own lots of LEGO® bricks, you can skip the Creative Color Fun.*

*\*\*If you already own lots of Technic™, you can skip the SPIKE™ Prime Expansion.*

</details>

Once you've got your parts, you're ready for the next big step in your Bot Battles journey! You know what they say - to break the rules, you've gotta learn 'em first! And there's no one better to teach you than our Bot Battles judge, Ethan Hill! 🧑‍⚖️

They're probably getting ready for the next Bot Battle at the stadium right about now. If you hurry, you can find him before it starts. Look for a guy in a striped shirt who looks like he's having WAY too much fun yelling "Foul!"


# Avatar

<figure><img src="https://content.gitbook.com/content/3lMcmYNZwepJ8VBzSDr1/blobs/fLFTtcOi3JTS3W9bdtxf/Minifigures.jpg" alt=""><figcaption></figcaption></figure>

Your avatar is you. 🫵 Duh! Who else is going to ride your bot into battle!? Your avatar can be any LEGO® minifigure.


# Controller

<figure><img src="https://content.gitbook.com/content/3lMcmYNZwepJ8VBzSDr1/blobs/aF4dD9pQjWeqsydVmBMY/PartsController.jpg" alt=""><figcaption></figcaption></figure>

The controller is how you control your motors! 🎮🚘 When you press a button, the controller sends a signal to your hub.


# Hub

<figure><img src="https://1320923231-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3lMcmYNZwepJ8VBzSDr1%2Fuploads%2FLSJHT3OVu70RFjwEEEhK%2FPartsHub.jpg?alt=media&amp;token=55d58ca6-a7ed-4c7e-8898-dd35e017d643" alt=""><figcaption></figcaption></figure>

The hub is the brain of your build! 🧠 It receives signals from your controller. Then it uses those signals to power your motors.


# Motors

<figure><img src="https://content.gitbook.com/content/3lMcmYNZwepJ8VBzSDr1/blobs/80Jvl5YCpFQxGXjaICz1/PartsMotors.jpg" alt=""><figcaption></figcaption></figure>

Unless you're building a sitting duckbot, you'll need some motors. 🦆🏍️ Motors make your bot move!

Each bot can have 2-3 motors. With two, you'll have a bot that can be steered around and crashed into other bots like a demolition derby! If you want to include motorized tools like spinners to make your bot an even more powerful recycling machine, you'll need a third motor.


# Wheels

<figure><img src="https://1320923231-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3lMcmYNZwepJ8VBzSDr1%2Fuploads%2FTovSXZpmTZ4cwGD4xQiw%2FPartsWheels.jpg?alt=media&amp;token=1a141a25-0695-40b5-807a-218f6dc8cb3a" alt=""><figcaption></figcaption></figure>

There was a time when I didn't know what a wheel is. Then a few days later, I was born. 👶😜

Now, a bot doesn't *have* to use wheels. You could craft a bot that moves with something crazy like walking legs or tank treads. But unless you're an expert, I recommend you keep it simple. No need to reinvent the wheel!


# Scrap

<figure><img src="https://content.gitbook.com/content/3lMcmYNZwepJ8VBzSDr1/blobs/CIeIkGtRIMw4xokfeM8a/PartsScrap.jpg" alt=""><figcaption></figcaption></figure>

Here are the most important parts of all: the random LEGO® pieces that tie it all together!

In Stardust Springs, we call this **scrap**! After each Bot Battle, you can recycle your scrap into your next bot.

There are two types of LEGO® pieces. We'll be using both!

<table data-card-size="large" data-view="cards"><thead><tr><th></th><th></th><th data-hidden></th><th data-hidden data-card-cover data-type="files"></th></tr></thead><tbody><tr><td><strong>LEGO® Bricks</strong></td><td>Bricks, plates, and more. For creating decorative designs.</td><td></td><td><a href="https://1320923231-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3lMcmYNZwepJ8VBzSDr1%2Fuploads%2FJ4GWRvHrUZW2Tf7HLWQU%2FScrap%20System.jpg?alt=media&amp;token=c67c2644-8792-4399-aaa4-ed5721033fc4">Scrap System.jpg</a></td></tr><tr><td><strong>LEGO® Technic™</strong></td><td>Arms, axles, and gears. For creating complex moving designs.</td><td></td><td><a href="https://1320923231-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3lMcmYNZwepJ8VBzSDr1%2Fuploads%2FYBIu771pHMOpTJF6GWXz%2FScrap%20Technic.jpg?alt=media&amp;token=083f98ea-ec48-49c2-8023-8b330e656fbe">Scrap Technic.jpg</a></td></tr></tbody></table>

***Next:** Craft your first bot ↓*


# Rules

<figure><img src="https://1320923231-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3lMcmYNZwepJ8VBzSDr1%2Fuploads%2FoMhmYkxzw9EwbhIr1WJt%2FRulesHello.jpg?alt=media&amp;token=9b621d66-4fda-4137-b71a-2d171c8f69e3" alt=""><figcaption></figcaption></figure>

**\[Judge Ethan]** *No, no, plastics go on the left. Careful now. I've got a whistle and I'm not afraid to use it. We can't have a repeat of the Great Sorting Mishap of '24.*

Oh, hello there. I don't remember seeing you around Stardust Springs before. You must be new. Let me confirm that with my logbook. *\*FWEEET\** 🎺💨 *Call confirmed!*

I'm Ethan Hill, the judge of RoboBatt-- *Hey, turn that machine down! What did I tell you about flying scrap?!* Sorry, we're gathering up all of the scrap from the last match to send off for recycling. Keep your head on a swivel. You don't want to end up in the flight path of Scrap Airlines. ✈️ The scrap in those blue buckets is on itsw way back to Zoe Foxlin's garage to be reused in new robots. ♻️🛞

<figure><img src="https://1320923231-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3lMcmYNZwepJ8VBzSDr1%2Fuploads%2FbouDEVnCVoElOpOqz1n6%2FRulesBuckets.jpg?alt=media&amp;token=3105ad13-6f7b-4ed6-acb9-e634c59ff94b" alt="" width="563"><figcaption></figcaption></figure>

Oh, you've talked to Zoe? Does that mean you're here to learn the rules of RoboBattles? *\*FWEEET\** 🎺💨 *5 minute time out for rules initiation!*

The first rule of RoboBattles: there are no rules. *\*FWEEET\** 🎺💨 *Foul, me!* Nah there actually are rules. I've just always wanted to use that line.

***Next:** Learn the rules of robot crafting ↓*


# Crafting Rules

<figure><img src="https://1320923231-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3lMcmYNZwepJ8VBzSDr1%2Fuploads%2FEtcuZPzYmaYydaVk06gY%2FRulesCrafting.jpg?alt=media&amp;token=34b7af18-0d21-4220-95d3-e552608f1e0c" alt=""><figcaption></figcaption></figure>

**\[Judge Ethan]** There is no official RoboBattles kit to buy. In the spirit of sustainability, the crafting rules are designed to allow players to get creative with any LEGO® parts they already have. If your robot looks like a tornado dropped a LEGO® Store onto a petting zoo, you're on the right track. 🐇🧱🐐

1. Robots must include original, unmodified LEGO® parts.
   1. No tapes, glues, or other non-LEGO® materials are allowed, except for batteries.&#x20;
2. Every robot must include 1 [Technic™ Hub](https://click.linksynergy.com/deeplink?id=ijmwixbQ9tg\&mid=13923\&murl=https%3A%2F%2Fwww.lego.com%2Fen-us%2Fproduct%2Ftechnic-hub-88012\&u1=guide).
3. Every robot must include 1-3 [Technic™ Large Motors](https://click.linksynergy.com/deeplink?id=ijmwixbQ9tg\&mid=13923\&murl=https%3A%2F%2Fwww.lego.com%2Fen-us%2Fproduct%2Flarge-angular-motor-88017\&u1=guide).
4. Every robot must include 1 pilot minifigure.


# Battle Rules

<figure><img src="https://1320923231-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3lMcmYNZwepJ8VBzSDr1%2Fuploads%2FhbCgJAH9nLnhWGEkY5h8%2FRulesBattle.jpg?alt=media&amp;token=aaa9ba59-26d6-49f4-a9af-1f3bf93af0c0" alt=""><figcaption></figcaption></figure>

**\[Judge Ethan]** The battle rules are designed to make sure the robot with the most exciting recycling performance is the winner. 💥

### How to Win

1. Knock out the other robot, OR
2. Finish the battle with the most [recycling points](#recycling-points)

### Knockout

3. A robot is knocked out if the player has lost control over its movement.
4. If a robot looks like it is no longer under the player's control, the battle is paused and the player must show control by driving their robot to a particular area of the arena.

### Recycling Points

5. If a battle reaches the 3 minute mark, the robot with the most recycling points wins.
6. Recycling points reward a robot for having decorations that break apart in battle.
   1. If **your robot** causes the crash, you get points for all decorations that break off— **even your own**.&#x20;
   2. If **both robots** cause the crash, each player gets points for decorations that break off **their own robot**.
   3. The more awesome the crash looks, the more points it's worth.

### Unsticking

7. If both robots get stuck for 10 seconds, battle is paused and the robots may be separated.

{% hint style="warning" %}
***\*FWEEET\******&#x20;🎺** A well tuned robot can reach high speeds. Always play RoboBattles under adult supervision. Wear safety glasses. By participating, you agree to assume all responsibility for safety precautions and risks. 🥽
{% endhint %}


# Build Your Arena

<figure><img src="https://1320923231-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3lMcmYNZwepJ8VBzSDr1%2Fuploads%2FmqFKTlixbBIDLf4GW15X%2FRulesSafety.jpg?alt=media&amp;token=cad96254-2ba3-4d07-9aac-945b39eb6640" alt=""><figcaption></figcaption></figure>

**\[Judge Ethan]** *\*FWEEET\** 🎺💨 *Hey, this safety barrier is still wobbly! Can someone get a wrench on this thing?* 🔧 *We've had enough runaway robots for one season.*

Where was I? Oh right, battle arenas! Not every battle happens in a stadium. Smaller battles happen every day all over Stardust Springs. Here's how to set up your own battle arena:

1. **Find floor space**. A 6'x6' square is best, but anything can work as long as long as there's space for robots to roam. Try for a solid floor surface like wood or tile. Carpets, especially fluffy ones, don't work well because robots get stuck.
2. **Mark the arena**. If you have long pieces of material like pipe or wood, you can use that to create a barrier. Otherwise, you can put down something flat like string or tape. I recommend this awesome [caution tape](https://www.amazon.com/SWRT-Adhesive-Resistance-Warterproof-Equipment/dp/B0CMZDRV47/ref=sr_1_3?crid=1W2PMSKFLZ20B\&dib=eyJ2IjoiMSJ9.lKb8brmumz2nfrX0H2QglvzA07iQC1pqouVuGfofOZfxad2r6uU-fdw1zeUj0U1tUoQ3NhK2ielFFx8QfS5I0wcUutjabZtn-LeU5sdDR72a_NdvmdO5Ct7vaCAUANHkMjGIVwzUHEYh1LVgDuhpz8nE1gde_ijdM1nEMXV7whQNlid6hk8FEMWkc6G127EB68GT6uLqjsfbUZyfGJj1nkF7pU2xn9oa0WaWp-qUWas.IDSuiw0RwULpnLDqRaolngoIEmzCkuRO4yIQ2XLOg7M\&dib_tag=se\&keywords=hazard%2Btape\&qid=1737743853\&sprefix=hazard%2Btap%2Caps%2C159\&sr=8-3\&th=1).
3. **Dress it up.** Consider setting up some action lighting. A couple of [these](https://www.amazon.com/Luditek-Activated-Christmas-Graduation-Decorations/dp/B074QM393N/) at the corners of the arena make for some intense competition. When it's time to battle, turn off your room lights and drop a playlist.

*\*FWEEET\** 🎺💨 *2 minutes until the next battle! All staff, clear the stadium! \*FWEEET FWEEET\** 🎺🎺💨

You better take off unless you want to end up in the recycling heap!


# Quests

Complete quests to earn XP and level up your skills!

💻 *= Coding required*

<table data-view="cards"><thead><tr><th data-card-target data-type="content-ref"></th><th></th><th></th><th data-hidden data-card-cover data-type="files"></th></tr></thead><tbody><tr><td><a href="https://play.robobattles.com/adventure/quests/sinkhole-patrol">Sinkhole Patrol</a></td><td>Code an autonomous robot to keep scrap out of a sinkhole. 💻</td><td>🏆 <strong>350 XP</strong></td><td><a href="https://1320923231-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3lMcmYNZwepJ8VBzSDr1%2Fuploads%2FF5Gsq7VBT2NTkM0HYxIE%2FQuestSinkholeHole.jpg?alt=media&amp;token=59464427-2295-4204-9a03-c20e4243a4fa">QuestSinkholeHole.jpg</a></td></tr><tr><td><a href="https://play.robobattles.com/adventure/quests/dance-video">Dance Video</a></td><td>Code a robot to perform in a dance video. 💻</td><td>🏆 <strong>250 XP</strong></td><td><a href="https://1320923231-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3lMcmYNZwepJ8VBzSDr1%2Fuploads%2F444peKTyXs4ktWawE6Tj%2FQuestDanceVideo.jpg?alt=media&amp;token=2e8f7d6c-077c-4377-b09e-2e2f6aa179f9">QuestDanceVideo.jpg</a></td></tr><tr><td><a href="https://play.robobattles.com/adventure/quests/martinez-twins-vs-venturestate">Martinez Twins vs VentureState</a></td><td>Code a control program for a racing robot to save a local team. 💻</td><td>🏆 <strong>400 XP</strong></td><td><a href="https://1320923231-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3lMcmYNZwepJ8VBzSDr1%2Fuploads%2FgpIPUnB08CuUPVOxQ8ex%2FQuestTestTrack.jpg?alt=media&amp;token=f9d7f57d-8f6c-4d2d-a479-069d554552a7">QuestTestTrack.jpg</a></td></tr><tr><td><a href="https://play.robobattles.com/adventure/quests/big-break">Big Break</a></td><td>Code custom controls to compete in the RoboBattles. 💻</td><td>🏆 <strong>350 XP</strong></td><td><a href="https://1320923231-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3lMcmYNZwepJ8VBzSDr1%2Fuploads%2FI50l35BJt3QXIibGYxi0%2FCraftingHello.jpg?alt=media&amp;token=db025745-3e45-40a8-8010-222ffb95b20a">CraftingHello.jpg</a></td></tr></tbody></table>


# Sinkhole Patrol

<figure><img src="https://1320923231-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3lMcmYNZwepJ8VBzSDr1%2Fuploads%2FdJI9gXogbuZXJKTVF4j8%2FQuestSinkholeRunning.jpg?alt=media&amp;token=602ba5d2-96d0-4f5a-8645-e4bbc8099d55" alt=""><figcaption></figcaption></figure>

### Rewards

* :trophy: **350 XP**

**\[Zoe Foxlin]** OOF. I'm so sorry. 😮‍💨 I wasn't looking where I was going. Gotta run, we've got a situat— oh, it's you! You have no idea how glad I am to see you, and - ugh, this RAIN! Look, just run with me and I'll explain.

Stardust Springs was a mining town back in the day. There are old mining tunnels everywhere under the industrial district. Nobody's supposed to worry about the tunnels. "Don't worry about the tunnels." Turns out we should've worried about the tunnels.

This storm has opened up a sinkhole right next to a scrap storage building. And it's growing. Like, faster than my laundry pile.

<figure><img src="https://1320923231-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3lMcmYNZwepJ8VBzSDr1%2Fuploads%2FF5Gsq7VBT2NTkM0HYxIE%2FQuestSinkholeHole.jpg?alt=media&amp;token=59464427-2295-4204-9a03-c20e4243a4fa" alt="" width="563"><figcaption></figcaption></figure>

Scrap is starting to wash into the sinkhole. Once it's down there, we can't recycle it. It'll be lost forever in the tunnels, polluting the ground for decades.

The good news: I've got a team of robot battlers coming in as fast as they can to break down the scrap before it washes away. The bad news: they can't get through this storm. They won't make it until tomorrow morning. By then it'll be too late.

We need a robot to buy us some time. A vehicle that can patrol around the edge of the sinkhole all night to prevent scrap from getting washed in. Like a guard dog for scrap.

You've been working on crafting a robot, haven't you? That may be our only hope. Bring it. I'll help you program it to patrol the sinkhole. Just make sure it has wheel motors, like the [Purrmenator](https://play.robobattles.com/tutorial/your-first-robot). And double check that the left motor is plugged into port A on your hub. Otherwise our program will crash.

<figure><img src="https://1320923231-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3lMcmYNZwepJ8VBzSDr1%2Fuploads%2Fuan5HkMvl6xInrX4HdIO%2FCrafting%20Motor%20Hookup%202%20Motors.jpg?alt=media&amp;token=57e34c63-c364-4155-b8e4-90fb7c61be1f" alt="" width="563"><figcaption></figcaption></figure>

<figure><img src="https://1320923231-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3lMcmYNZwepJ8VBzSDr1%2Fuploads%2FdWNNOaL9RacgleRy1TP9%2FDivider.png?alt=media&amp;token=9268d63b-89b2-4e97-8fb2-cee99f5becc0" alt=""><figcaption><p>1</p></figcaption></figure>

## Bad at Coding

Oh wow, this sinkhole is even worse than I thought. We don't have much time to whip up our code.

Here's a secret. Come in close. I'M BAD AT CODING! Here's another secret. WHO CARES! It's never ever stopped me from programming my robots to do exactly what I want.

It's like... okay, you know how some people are good at making sandwiches? They can slap one together in 30 seconds. Other people have to spend 5 minutes looking up recipes and arranging all the ingredients. Well, both methods end up with a sandwich! One's not more "sandwich-y" than the other.

Coding is the same way. If you're good at it, you can do it fast. If you're bad at it, you might get stuck sometimes and have to search online for answers. That's fine! As long as you're creative, you'll always get there.

You don't have to be a chef to make a sandwich, and you don't have to be a "coder" to code a robot. I'm NOT a coder. I just use code sometimes to make my robots do awesome stuff. This is one of those times! We'll get it done together.

## Rotaaaaate Motor

Before you start cooking, you have to decide what you want for lunch. (I'M HUNGRY, OKAY?) And before you start coding, you have to decide what you want your robot to do.

I'm thinking if we just get one wheel motor to rotate, that'll make the robot drive in circles around the sinkhole. Let's do it. Rotate motor.

Start by bringing up a blank program in Pybricks. Visit [code.pybricks.com](https://code.pybricks.com/) using Chrome or Edge.

Pybricks uses a programming language called Python. :snake: And now\... to code!

Rotate motor. Rooootaaaaaate motor. Aaaand I'm stuck. No problem. That's what the internet is for.

I searched online for "pybricks rotate motor example" and found this code.

```python
# Set up controller
controller = XboxController()

# Set up motor
motor = Motor(Port.A)

# Set motor speed
speed = 20

while True:

    # Rotate motor
    motor.go(speed)
```

Does it work? Bro, I don't know! Let's load it up and see what happens.

1. Hover over this code and click the "Copy" button.
2. Paste it into Pybricks.
3. Load the program onto your hub. If you forgot how, see [Custom Controls](https://play.robobattles.com/coding/custom-controls).
4. Connect your controller to your hub. If you forgot this too, see [Controlling Your Bot](https://play.robobattles.com/tutorial/controls/controlling-your-bot).

<figure><img src="https://1320923231-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3lMcmYNZwepJ8VBzSDr1%2Fuploads%2FdWNNOaL9RacgleRy1TP9%2FDivider.png?alt=media&amp;token=9268d63b-89b2-4e97-8fb2-cee99f5becc0" alt=""><figcaption><p>2</p></figcaption></figure>

Okay, the controller is connecting, and...

STOP THAT SPINNING ROBOT! Pounce on it before it falls into the sinkhole! Press the green button!

<figure><img src="https://1320923231-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3lMcmYNZwepJ8VBzSDr1%2Fuploads%2FdWNNOaL9RacgleRy1TP9%2FDivider.png?alt=media&amp;token=9268d63b-89b2-4e97-8fb2-cee99f5becc0" alt=""><figcaption><p>3</p></figcaption></figure>

Close call there. We wanted a rotating motor, and we got a rotating motor. But I don't know if it's rotating with enough speed. We're making a scrap fighting machine, not a microwave.

## Comments

Let's take a look at the code and see what's going on. That way we can figure out what to change to make the motor rotate with more speed.

Here's the very first line.

```python
# Set up controller
```

This is a **comment**. A comment begins with a hashtag `#`.

Imagine you're baking a cake, and you have a recipe with steps to follow. Someone wrote a little note in the recipe: "Be careful not to spill the flour!" That note isn't part of the recipe. But it's very helpful, because it makes the recipe easier to follow.

Comments are just like that. They're useful for explaining what code does. They make your code easier to follow.

You can write anything in a comment. They're only for humans. The computer completely ignores comments when running the program. Just like I ignore Insta comments from my ex. (#sorrynotsorry)

Let's look through the other comments in this program. Maybe we can find a hint about increasing our motor's speed.

```python
# Set up controller
controller = XboxController()

# Set up motor
motor = Motor(Port.A)

# Set motor speed
speed = 20

while True:

    # Rotate motor
    motor.go(speed)
```

## Tinkering

Well this one looks promising.

```python
# Set motor speed
speed = 20
```

This comment helpfully explains what the next line does. Spoiler alert: it sets the motor's speed.

I bet we can make our motor rotate faster by increasing this number. Try changing it from `20` to `100`. Load the new code onto your hub and turn on your controller again. This time, maybe hold onto your robot first...

WOW. Now we're cooking. Press the green button to stop the program before we plow through a wall or something.

When I'm not sure what code does, sometimes I just tinker around. I'll change a number and see what happens, like we did here with the speed number. It's a great way to figure out how things work.

Speaking of tinkering... there's just one more problem. This robot is driving backwards! We need to make the motor rotate in the other direction. We can do this by adding a minus sign. Change the number from `100` to `-100`. Like this.

```python
# Set motor speed
speed = -100
```

The full code should look like this.

```python
# Set up controller
controller = XboxController()

# Set up motor
motor = Motor(Port.A)

# Set motor speed
speed = -100

while True:

    # Rotate motor
    motor.go(speed)
```

Now set your robot up on the edge of the sinkhole and try running that program.

<figure><img src="https://1320923231-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3lMcmYNZwepJ8VBzSDr1%2Fuploads%2FdWNNOaL9RacgleRy1TP9%2FDivider.png?alt=media&amp;token=9268d63b-89b2-4e97-8fb2-cee99f5becc0" alt=""><figcaption><p>4</p></figcaption></figure>

## Scrap Scoop

YESSSS. SUCCESS!

If you want to make this robot an even better scrap defender, craft an arm for it that drags along the ground and pushes scrap away from the sinkhole. You can sprinkle some spare scrap around it to test if the arm works.

<figure><img src="https://1320923231-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3lMcmYNZwepJ8VBzSDr1%2Fuploads%2FdWNNOaL9RacgleRy1TP9%2FDivider.png?alt=media&amp;token=9268d63b-89b2-4e97-8fb2-cee99f5becc0" alt=""><figcaption><p>5</p></figcaption></figure>

Once you're satisfied, fire that robot up and let it patrol! We'll check on it after the storm is over.

## Finale

IT WORKED! I can't believe it. Sinkhole patrol robot saves the day. And look, here come the other robot battlers to break down all the scrap!

Next time you need to make a motor turn, you'll have an example to copy from. You'll make that sandwich — I mean program — even faster. Stop by my garage any time if you ever need more coding help.


# Dance Video

<figure><img src="https://1320923231-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3lMcmYNZwepJ8VBzSDr1%2Fuploads%2F444peKTyXs4ktWawE6Tj%2FQuestDanceVideo.jpg?alt=media&amp;token=2e8f7d6c-077c-4377-b09e-2e2f6aa179f9" alt=""><figcaption></figcaption></figure>

### Rewards

* :trophy: **250 XP**

**\[Stewskee]** WHAT. IS. UP! YOUR BOY STEWSKEE HERE WITH THE COLLAB Y'ALL BEEN BEGGING FOR. THAT'S RIGHT. I'M HERE WITH THE CREATOR OF THE SINKHOLE PATROL ROBOT. WHAAAAT.

Psst... hey... lean into this shot for the intro. Look real serious. Yea alright. Got it. Appreciate it.

You want a selfie or something? Wait. You don't know who I am? FOR REAL? Braeden? Braeden Stewart? @stewskee? 2 million followers? I guess you're not one of 'em.

Check this out. So I'm livestreaming during that insane storm. I turn a corner and there's this GIANT SINKHOLE. And this robot is RIPPING circles around it. WHAT.

Chat goes nuts. The clip blows up. My followers DOUBLE. Everyone's DM'ing me about this robot.

The algorithm's begging for more sinkhole robot. Gotta get more content out of it. So I got this idea.

DANCE VIDEO.

Picture this. We drop a track. Your robot dances to it with its signature spin moves. ARE YOU KIDDING ME. 5 million followers EASY.

You'll do alright too. You'll get your name out there. Launch your robot crafting career. Inspire more builders to get started.

Meet me here tomorrow and we'll shoot. Actually - this background is TRASH. Meet me over there instead. Just one thing. Make sure your robot can spin with the beat. The dance has gotta be perfect.

## Best Recycler Takes It

**\[Zoe Foxlin]** Robot code? For a dance video!? With Stewskee!?! Omg yes. I'm fangirling right now.

Just like last time, make sure you've got a robot with wheel motors, like the [Purrmenator](https://play.robobattles.com/tutorial/your-first-robot). The left motor has to be plugged into port A.

<figure><img src="https://1320923231-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3lMcmYNZwepJ8VBzSDr1%2Fuploads%2Fuan5HkMvl6xInrX4HdIO%2FCrafting%20Motor%20Hookup%202%20Motors.jpg?alt=media&amp;token=57e34c63-c364-4155-b8e4-90fb7c61be1f" alt="" width="563"><figcaption></figcaption></figure>

<figure><img src="https://1320923231-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3lMcmYNZwepJ8VBzSDr1%2Fuploads%2FdWNNOaL9RacgleRy1TP9%2FDivider.png?alt=media&amp;token=9268d63b-89b2-4e97-8fb2-cee99f5becc0" alt=""><figcaption><p>1</p></figcaption></figure>

Let's start with the old code we found online for the sinkhole robot.

```python
# Set up controller
controller = XboxController()

# Set up motor
motor = Motor(Port.A)

# Set motor speed
speed = 20

while True:

    # Rotate motor
    motor.go(speed)
```

We turned this into a mean patrolling machine by changing its motor direction and speed. But for a dance video, you don't need a self-driving robot. You need a robot you can steer with your Xbox controller to make it whip back and forth with he music.

## Variables

We'll need to understand more about the code so we can figure out what to change.

Last time we just changed the `speed` number. What's actually going on when we do that? Let's look at the line.

```python
speed = 20
```

* `speed` is a **variable**. A variable is like a box for storing things.
* `=` tells the computer to store something in the box.
* `20` is a number. 🤯🤯🤯

So this line stores the number `20` in a variable named `speed`.

:thinking: If we're bothering to store that number `20`, it probably means we're using it again later. Let's look through the rest of the code. See if you can find another line where the variable `speed` appears.

```python
# Set up controller
controller = XboxController()

# Set up motor
motor = Motor(Port.A)

# Set motor speed
speed = 20

while True:

    # Rotate motor
    motor.go(speed)
```

<figure><img src="https://1320923231-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3lMcmYNZwepJ8VBzSDr1%2Fuploads%2FdWNNOaL9RacgleRy1TP9%2FDivider.png?alt=media&amp;token=9268d63b-89b2-4e97-8fb2-cee99f5becc0" alt=""><figcaption><p>2</p></figcaption></figure>

There it is, right at the end.

```python
    # Rotate motor
    motor.go(speed)
```

Thanks to the comment, we know what this line does. It rotates the motor. And it uses our `speed` value for the rotation speed.

Any time we write the variable `speed`, the computer uses the value stored inside it. We know that `speed` is storing the number `20`. So when we write...

```python
    motor.go(speed)
```

... the computer basically does

```python
    motor.go(20)
```

## Objects

What's up with this `motor` thing? Where does it come from? Let's look earlier in the code. See if `motor` appears anywhere else.

```python
# Set up controller
controller = XboxController()

# Set up motor
motor = Motor(Port.A)

# Set motor speed
speed = 20

while True:

    # Rotate motor
    motor.go(speed)
```

<figure><img src="https://1320923231-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3lMcmYNZwepJ8VBzSDr1%2Fuploads%2FdWNNOaL9RacgleRy1TP9%2FDivider.png?alt=media&amp;token=9268d63b-89b2-4e97-8fb2-cee99f5becc0" alt=""><figcaption><p>3</p></figcaption></figure>

There it is.

```python
# Set up motor
motor = Motor(Port.A)
```

Looks like `motor` is another variable. But instead of storing a number like `20`, we're storing something else: `Motor(Port.A)`.

* `Motor(Port.A)` is an **object**. It represents the motor plugged into hub port A.

So this line stores a motor object in the variable `motor`. And we use this `motor` variable later on to actually rotate the motor, just like we did with the `speed` variable.

## Xbox Joystick

We want our Xbox joystick to control the rotation speed. So instead of storing `20` or `100` or whatever in the `speed` variable, we want to store the joystick's position.

First we'll need to set up our controller. That was already done in the code we found online. Check out this line.

```python
# Set up controller
controller = XboxController()
```

Looks a lot like the line where we set up the motor. And it works almost the same way.

* `controller` is another variable.
* `XboxController()` is another object. This one represents our controller.

So we've stored the controller. Hmm, how do we get its joystick position? Joystick position. Joyyyyyystick position. I'm stuck again.

Oh wait, I think I've done this before! When I get stuck on a coding problem, I try to remember if it's something I've coded before. That way I can look at my old programs, instead of trying to find a random example online.&#x20;

I've definitely written joystick code for other robots. Let me dig through some old files. There it is!

```python
# Get joystick's vertical position
controller.joystick_left()[1]
```

Good thing I left a comment. Thanks, old me. :handshake: So this code will get the joystick's vertical (up/down) position from our `controller`.&#x20;

On the line where we set `speed`, let's replace the `20` with my joystick code.

```python
# Set motor speed
speed = controller.joystick_left()[1]
```

The final code should look like this.

```python
# Set up controller
controller = XboxController()

# Set motor speed
speed = controller.joystick_left()[1]

# Set up motor
motor = Motor(Port.A)

while True:

    # Rotate motor
    motor.go(speed)
```

Load the program onto your hub and turn on your controller. Once your controller connects, try moving the left joystick up and down.

<figure><img src="https://1320923231-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3lMcmYNZwepJ8VBzSDr1%2Fuploads%2FdWNNOaL9RacgleRy1TP9%2FDivider.png?alt=media&amp;token=9268d63b-89b2-4e97-8fb2-cee99f5becc0" alt=""><figcaption><p>4</p></figcaption></figure>

And away we gooooo.... hmm. It's not working.

## While Loop

What the heck. It really seems like this should work.

When I can't figure out why my code isn't working, sometimes I ask an AI chatbot. I pasted in all the code, and I asked:&#x20;

> why can't I control the motor speed?

It said:

> `speed` is only being set once, right when the program starts. Move it inside the "while loop" so it's set continuously from the joystick.

Ah ok! Good chatbot. :palm\_down\_hand::dog: Take a look at these lines at the end of the program.

```python
while True:

    # Rotate motor
    motor.go(speed)
```

This is called a "while loop." The line `while True:` starts the loop. The code inside it will run over and over. It repeats until humanity goes extinct. Or until your hub runs out of battery. Whichever comes first.

The chatbot says we need to set our `speed` variable inside the while loop. Let's move it inside.

```python
while True:

    # Set motor speed
    speed = controller.joystick_left()[1]

    # Rotate motor
    motor.go(speed)
```

Note that all the lines inside the loop are indented. That's not an acci**n**dent. 😂 The indents tell the program that these lines are "inside" the while loop.

The full program should look like this.

```python
# Set up controller
controller = XboxController()

# Set up motor
motor = Motor(Port.A)

while True:

    # Set motor speed
    speed = controller.joystick_left()[1]

    # Rotate motor
    motor.go(speed)
```

Load it up. Connect your control, and give that left joystick a push!

<figure><img src="https://1320923231-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3lMcmYNZwepJ8VBzSDr1%2Fuploads%2FdWNNOaL9RacgleRy1TP9%2FDivider.png?alt=media&amp;token=9268d63b-89b2-4e97-8fb2-cee99f5becc0" alt=""><figcaption><p>5</p></figcaption></figure>

## From the Top

Remember when we first saw this program? It looked like gibberish. Well now it actually makes some sense! Let's look at it one last time from the start.

```python
# Set up controller
controller = XboxController()
```

We know this. What does it do?

<figure><img src="https://1320923231-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3lMcmYNZwepJ8VBzSDr1%2Fuploads%2FdWNNOaL9RacgleRy1TP9%2FDivider.png?alt=media&amp;token=9268d63b-89b2-4e97-8fb2-cee99f5becc0" alt=""><figcaption><p>6</p></figcaption></figure>

Next! What does this do?

```python
# Set up motor
motor = Motor(Port.A)
```

<figure><img src="https://1320923231-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3lMcmYNZwepJ8VBzSDr1%2Fuploads%2FdWNNOaL9RacgleRy1TP9%2FDivider.png?alt=media&amp;token=9268d63b-89b2-4e97-8fb2-cee99f5becc0" alt=""><figcaption><p>7</p></figcaption></figure>

Next again! We know these lines too. Remember what they do?

```python
while True:

    # Set motor speed
    speed = controller.joystick_left()[1]

    # Rotate motor
    motor.go(speed)
```

<figure><img src="https://1320923231-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3lMcmYNZwepJ8VBzSDr1%2Fuploads%2FdWNNOaL9RacgleRy1TP9%2FDivider.png?alt=media&amp;token=9268d63b-89b2-4e97-8fb2-cee99f5becc0" alt=""><figcaption><p>8</p></figcaption></figure>

That's the whole thing! We set up a few variables. We run the motor in a loop. Not so scary.

It's fine if you're still a little confused. The important thing is that the code works. And next time you'll be able to whip up your code even faster!

Now take this masterpiece back to Stewskee. I'll just be sitting here refreshing until the dance vid drops.

## Make it Pop

**\[Stewskee]** There it is, THE sinkhole patrol bot. I mean, the chassis SLAPS. But the decorations are kind of... basic? No offense. Just, my viewers expect a certain aesthetic.

Find some scrap and take a sec to decorate this thing. Don't go overboard though. Just give it a vibe. In a few minutes this lighting will be trash.

<figure><img src="https://1320923231-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3lMcmYNZwepJ8VBzSDr1%2Fuploads%2FdWNNOaL9RacgleRy1TP9%2FDivider.png?alt=media&amp;token=9268d63b-89b2-4e97-8fb2-cee99f5becc0" alt=""><figcaption><p>9</p></figcaption></figure>

## Fire

WHAAAAT. I can barely recognize it. That's FIRE.

YOU READY?

1. Blast your favorite beats.
2. Turn on your bot and connect your controller.
3. Drop that signature SPIN. Move the joystick up and down to step back and forth with the beat.
4. Got a phone? Shoot it, or ask a buddy.
5. If you've got permission, POST THIS THING. #BotBattles

<figure><img src="https://1320923231-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3lMcmYNZwepJ8VBzSDr1%2Fuploads%2FdWNNOaL9RacgleRy1TP9%2FDivider.png?alt=media&amp;token=9268d63b-89b2-4e97-8fb2-cee99f5becc0" alt=""><figcaption><p>10</p></figcaption></figure>

## Legend

NO WAY. This is LITERALLY THE CLEANEST bot choreo EVER.

I'm dropping this tonight. The numbers are gonna be CRAZY.

Get ready. Your phone's gonna blow up. This time tomorrow you'll be a legend. Everyone in Stardust Springs is gonna know your name.


# Martinez Twins vs VentureState

<figure><img src="https://1320923231-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3lMcmYNZwepJ8VBzSDr1%2Fuploads%2FgpIPUnB08CuUPVOxQ8ex%2FQuestTestTrack.jpg?alt=media&amp;token=f9d7f57d-8f6c-4d2d-a479-069d554552a7" alt=""><figcaption></figcaption></figure>

### Rewards

* :trophy: **400 XP**

**\[Zoe Foxlin]** I need your help. Like, right now. Meet me at the abandoned test track east of town. We've got a situation. Bring a robot with two wheel motors, like the [Purrmenator](https://play.robobattles.com/tutorial/your-first-robot). I'll explain why when we get there.

## Fastest Robot Takes It

No time to waste. Here's the deal. Have you met the Martinez twins? They're a couple of up-and-coming robot builders who've been running this incredible recycling program across town. Free robot repair clinics, big collection of salvaged parts, the works.

Here's the problem. VentureState showed up last week. A big land corporation. They're trying to shut down the twins' program so they can take over the building. The twins challenged them to settle it with a race. Custom robot controls only. Fastest robot takes it. If the twins win, VentureState backs off. If they lose...

The twins' robot is practically perfect. One of the best designs I've ever seen. But their coder quit yesterday. VentureState offered them a job they couldn't refuse. :angry: So this robot — which again, PRACTICALLY PERFECT — has no control program. It's useless.

I need your help creating a program that can take down VentureState's store-bought robot. The race is tonight. Will you help? Great.

Make sure your robot has two wheel motors, like the [Purrmenator](https://play.robobattles.com/tutorial/your-first-robot). Plug the left motor into port A and the right motor into port B.

<figure><img src="https://1320923231-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3lMcmYNZwepJ8VBzSDr1%2Fuploads%2F1BLXzpHB5u9HIqjm69JY%2FCrafting%20Motor%20Hookup%202%20Motors.jpg?alt=media&amp;token=bd4f584e-d63e-47e4-be1e-5d0065ad1d08" alt="" width="563"><figcaption></figcaption></figure>

<figure><img src="https://1320923231-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3lMcmYNZwepJ8VBzSDr1%2Fuploads%2FdWNNOaL9RacgleRy1TP9%2FDivider.png?alt=media&amp;token=9268d63b-89b2-4e97-8fb2-cee99f5becc0" alt=""><figcaption><p>1</p></figcaption></figure>

Let's start with the code we made for our [dance video](https://play.robobattles.com/adventure/quests/dance-video) robot.

```python
# Set up controller
controller = XboxController()

# Set up motor
motor = Motor(Port.A)

while True:

    # Set motor speed
    speed = controller.joystick_left()[1]

    # Rotate motor
    motor.go(speed)
```

This robot uses the joystick to spin on command. But the Martinez Twins don't need a dancing robot. They need a robot they can steer all over a racetrack.

## Another One

We started with the motor on the left. We control it with the left joystick.

Next we'll do the motor on the right. We should control this one with the right joystick.

Let's start by copying the motor code we already have. Here's where we set up the motor.

```python
# Set up motor
motor = Motor(Port.A)
```

The motor on the left is plugged into the hub's port A. So when we set up the new motor in our code, we'll want to use `Port.B` instead of `Port.A`. This is called a **parameter**. Let's copy this line and change the port parameter.

```python
# Set up motor
motor = Motor(Port.A)
motor = Motor(Port.B)
```

<figure><img src="https://1320923231-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3lMcmYNZwepJ8VBzSDr1%2Fuploads%2FdWNNOaL9RacgleRy1TP9%2FDivider.png?alt=media&amp;token=9268d63b-89b2-4e97-8fb2-cee99f5becc0" alt=""><figcaption><p>2</p></figcaption></figure>

Hmm, I already see a problem here. We're using the `motor` variable twice.

The first line stores motor A in `motor`. But then the second line replaces it with motor B. Now motor A is lost. We have no way to control it.

We'll need to use two different variables by giving them different names. What should we call them? A variable can have basically any name, as long as it:

* Only uses letters, numbers, and underscores `_`
* Doesn't start with a number

We COULD name the second variable `toilet`. :toilet: But the code will be easier to understand if the variable names actually makes sense. So flush that idea. We'll call them `motorA` and `motorB` instead.

```python
# Set up motor
motorA = Motor(Port.A)
motorB = Motor(Port.B)
```

<figure><img src="https://1320923231-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3lMcmYNZwepJ8VBzSDr1%2Fuploads%2FdWNNOaL9RacgleRy1TP9%2FDivider.png?alt=media&amp;token=9268d63b-89b2-4e97-8fb2-cee99f5becc0" alt=""><figcaption><p>3</p></figcaption></figure>

Much better. We'll need two `speed` variables as well. Copy the line where we set the motor speed. Rename the variables `speedA` and `speedB` .

```python
    # Set motor speed
    speedA = controller.joystick_left()[1]
    speedB = controller.joystick_left()[1]
```

<figure><img src="https://1320923231-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3lMcmYNZwepJ8VBzSDr1%2Fuploads%2FdWNNOaL9RacgleRy1TP9%2FDivider.png?alt=media&amp;token=9268d63b-89b2-4e97-8fb2-cee99f5becc0" alt=""><figcaption><p>4</p></figcaption></figure>

We want `speedB` to come from the right joystick. So let's change `joystick_left` to `joystick_right`.

```python
    # Set motor speed
    speedA = controller.joystick_left()[1]
    speedB = controller.joystick_right()[1]
```

<figure><img src="https://1320923231-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3lMcmYNZwepJ8VBzSDr1%2Fuploads%2FdWNNOaL9RacgleRy1TP9%2FDivider.png?alt=media&amp;token=9268d63b-89b2-4e97-8fb2-cee99f5becc0" alt=""><figcaption><p>5</p></figcaption></figure>

Lastly, let's copy our motor rotation code and use the new variables.

```python
    # Rotate motor
    motorA.go(speedA)
    motorB.go(speedB)
```

<figure><img src="https://1320923231-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3lMcmYNZwepJ8VBzSDr1%2Fuploads%2FdWNNOaL9RacgleRy1TP9%2FDivider.png?alt=media&amp;token=9268d63b-89b2-4e97-8fb2-cee99f5becc0" alt=""><figcaption><p>6</p></figcaption></figure>

The program should look like this.

```python
# Set up controller
controller = XboxController()

# Set up motor
motorA = Motor(Port.A)
motorB = Motor(Port.B)

while True:

    # Set motor speed
    speedA = controller.joystick_left()[1]
    speedB = controller.joystick_right()[1]

    # Rotate motor
    motorA.go(speedA)
    motorB.go(speedB)
```

Load it up. Push both joysticks all the way up. Both wheels will turn, and your robot will drive straight ahead. We did i— oh wait.

<figure><img src="https://1320923231-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3lMcmYNZwepJ8VBzSDr1%2Fuploads%2FdWNNOaL9RacgleRy1TP9%2FDivider.png?alt=media&amp;token=9268d63b-89b2-4e97-8fb2-cee99f5becc0" alt=""><figcaption><p>7</p></figcaption></figure>

## Math

Problem! What's going on here?

The motors are running in different directions! Nooooo!

This is because the motors are facing opposite directions from each other. We want our robot to move forward when we press both joysticks up. So we need to make motor A rotate the opposite direction.

Remember on our sinkhole robot how we switched motor direction by adding `-` to the speed value? Well, we can do the same thing here with math. We multiply `speedA` by `-1`. To multiply, we use the `*` symbol.

```python
    # Rotate motor
    motorA.go(speedA * -1)
    motorB.go(speedB)
```

<figure><img src="https://1320923231-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3lMcmYNZwepJ8VBzSDr1%2Fuploads%2FdWNNOaL9RacgleRy1TP9%2FDivider.png?alt=media&amp;token=9268d63b-89b2-4e97-8fb2-cee99f5becc0" alt=""><figcaption><p>8</p></figcaption></figure>

If you haven't used negative numbers before, don't worry about how this works. Just know that you can always multiply by `-1`  to flip a motor's direction.

Here's the final code.

```python
# Set up controller
controller = XboxController()

# Set up motor
motorA = Motor(Port.A)
motorB = Motor(Port.B)

while True:

    # Set motor speed
    speedA = controller.joystick_left()[1]
    speedB = controller.joystick_right()[1]

    # Rotate motor
    motorA.go(speedA * -1)
    motorB.go(speedB)
```

You know the drill. Load it up and enjoy your fully steerable robot!

Push both joysticks up to drive forward. Push both joysticks down to drive backward. Push the joysticks in different directions to turn.

<figure><img src="https://1320923231-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3lMcmYNZwepJ8VBzSDr1%2Fuploads%2FdWNNOaL9RacgleRy1TP9%2FDivider.png?alt=media&amp;token=9268d63b-89b2-4e97-8fb2-cee99f5becc0" alt=""><figcaption><p>9</p></figcaption></figure>

## The Race

Let's make sure this program works! Design an awesome race course with crazy turns and obstacles to avoid.

<figure><img src="https://1320923231-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3lMcmYNZwepJ8VBzSDr1%2Fuploads%2FdWNNOaL9RacgleRy1TP9%2FDivider.png?alt=media&amp;token=9268d63b-89b2-4e97-8fb2-cee99f5becc0" alt=""><figcaption><p>10</p></figcaption></figure>

Steer your robot through the course as fast as you can. If you have a friend or teammate with another robot, challenge them to race.

<figure><img src="https://1320923231-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3lMcmYNZwepJ8VBzSDr1%2Fuploads%2FdWNNOaL9RacgleRy1TP9%2FDivider.png?alt=media&amp;token=9268d63b-89b2-4e97-8fb2-cee99f5becc0" alt=""><figcaption><p>11</p></figcaption></figure>

Amazing. I couldn't have done it without you.

Wait, what time is it!? I have to get this program over to the Martinez Twins. VentureState's robot won't stand a chance.

Now that you know how to code, you can start experimenting with custom joystick controls for your own robot designs. Later on I'll show you how to use controller buttons.


# Big Break

<figure><img src="https://1320923231-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3lMcmYNZwepJ8VBzSDr1%2Fuploads%2FZiBqimilPNn6v19Pv1s7%2FPartsStadium.jpg?alt=media&amp;token=71971d04-5907-4e43-8f8c-24f40669b414" alt=""><figcaption></figcaption></figure>

### Rewards

* :trophy: **350 XP**

**\[Mayor Ishii]** You've heard the news, right? You haven't!? Do you even check your DMs!? We're down a competitor for tonight's RoboBattles! The headline match was supposed to feature Ben Carr, one of our volunteer firefighters. But a wildfire sprung up a few hours ago. His whole squad got called out to fight it. I've been scrambling to find someone to take his place.

I know you haven't been here long, but Zoe tells me you're a total natural. This could be your big break. Do you think you can put a robot together in time? Oh, one very important thing. Tonight's battle is custom controls only.&#x20;

Hurry over to Zoe's Garage and she can help you design your very own control program.

<figure><img src="https://1320923231-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3lMcmYNZwepJ8VBzSDr1%2Fuploads%2FI50l35BJt3QXIibGYxi0%2FCraftingHello.jpg?alt=media&amp;token=db025745-3e45-40a8-8010-222ffb95b20a" alt=""><figcaption></figcaption></figure>

**\[Zoe Foxlin]** Ben Carr dropped out? Well yea, I heard that hours ago. I check my DMs.

Make sure your robot has two wheel motors and a weapon motor, like the [Purrmenator](https://play.robobattles.com/tutorial/your-first-robot). Plug the motors in exactly like this.

<figure><img src="https://1320923231-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3lMcmYNZwepJ8VBzSDr1%2Fuploads%2F2sjZeo7GmlaHNHhnMMia%2FCrafting%20Motor%20Hookup.jpg?alt=media&amp;token=a08f26d4-abde-4daf-b7f9-457efb9a8f85" alt="" width="563"><figcaption></figcaption></figure>

<figure><img src="https://1320923231-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3lMcmYNZwepJ8VBzSDr1%2Fuploads%2FdWNNOaL9RacgleRy1TP9%2FDivider.png?alt=media&amp;token=9268d63b-89b2-4e97-8fb2-cee99f5becc0" alt=""><figcaption><p>1</p></figcaption></figure>

We're short on time, so let's start with the control program you wrote for the Martinez Twins.

```python
# Set up controller
controller = XboxController()

# Set up motor
motorA = Motor(Port.A)
motorB = Motor(Port.B)

while True:

    # Set motor speed
    speedA = controller.joystick_left()[1]
    speedB = controller.joystick_right()[1]

    # Rotate motor
    motorA.go(speedA * -1)
    motorB.go(speedB)
```

We're already using both joysticks, so we'll need to use buttons to control our weapons.

First let's add a line to set up a motor on port C:

```python
# Set up motor
motorA = Motor(Port.A)
motorB = Motor(Port.B)
motorC = Motor(Port.C)
```

<figure><img src="https://1320923231-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3lMcmYNZwepJ8VBzSDr1%2Fuploads%2FdWNNOaL9RacgleRy1TP9%2FDivider.png?alt=media&amp;token=9268d63b-89b2-4e97-8fb2-cee99f5becc0" alt=""><figcaption></figcaption></figure>

Buttons work a little differently than joysticks. Joysticks have a range of motion. We get their position, and then set the motor power to that number, like this.

```python
speedA = controller.joystick_left()[1]
```

Buttons don't have a range of motion. They only have two positions. They're either pressed, or they aren't. So the code for buttons is a little different. We need to check if the button is pressed. Here's some code from one of my old control programs where I used the A button to rotate a motor.

```python
if Button.A in controller.buttons.pressed():
    speed = 100
```

This is called an **`if` statement**. It's basically like a True/False question. If the answer is True, the code inside it will run.

My code checks if button A is pressed. If so, it sets speed to `100` .

Let's add my `if` statement to the area where we set motor speed.

```python
    # Set motor power
    speedA = controller.joystick_left()[1]
    speedB = controller.joystick_right()[1]
    if Button.A in controller.buttons.pressed():
```

<figure><img src="https://1320923231-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3lMcmYNZwepJ8VBzSDr1%2Fuploads%2FdWNNOaL9RacgleRy1TP9%2FDivider.png?alt=media&amp;token=9268d63b-89b2-4e97-8fb2-cee99f5becc0" alt=""><figcaption></figcaption></figure>

When button A is pressed, we should set motor C's speed to `100` . Let's add that line. Give it an extra indent since it's inside the "if statement."

<pre class="language-python"><code class="lang-python">    # Set motor power
    speedA = controller.joystick_left()[1]
    speedB = controller.joystick_right()[1]
    if<a data-footnote-ref href="#user-content-fn-1"> </a>Button.A in controller.buttons.pressed():
        speedC = 100
</code></pre>

<figure><img src="https://1320923231-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3lMcmYNZwepJ8VBzSDr1%2Fuploads%2FdWNNOaL9RacgleRy1TP9%2FDivider.png?alt=media&amp;token=9268d63b-89b2-4e97-8fb2-cee99f5becc0" alt=""><figcaption></figcaption></figure>

Now add a line to rotate `motorC`.

```python
    # Rotate motor
    motorA.dc(speedA * -1)
    motorB.dc(speedB)
    motorC.dc(speedC)
```

<figure><img src="https://1320923231-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3lMcmYNZwepJ8VBzSDr1%2Fuploads%2FdWNNOaL9RacgleRy1TP9%2FDivider.png?alt=media&amp;token=9268d63b-89b2-4e97-8fb2-cee99f5becc0" alt=""><figcaption></figcaption></figure>

Your code should look like this.

```python
# Set up controller
controller = XboxController()

# Set up motor
motorA = Motor(Port.A)
motorB = Motor(Port.B)
motorC = Motor(Port.C)

while True:

    # Set motor speed
    speedA = controller.joystick_left()[1]
    speedB = controller.joystick_right()[1]
    if Button.A in controller.buttons.pressed():
        speedC = 100

    # Rotate motor
    motorA.go(speedA * -1)
    motorB.go(speedB)
    motorC.go(speedC)
```

Load it onto our robot and away we go!

<figure><img src="https://1320923231-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3lMcmYNZwepJ8VBzSDr1%2Fuploads%2FdWNNOaL9RacgleRy1TP9%2FDivider.png?alt=media&amp;token=9268d63b-89b2-4e97-8fb2-cee99f5becc0" alt=""><figcaption></figcaption></figure>

Um, jk. It's not working. The controller turns off, and the program stops running. Let me ask a chatbot. I'll paste in the full code, and ask:

> why isn't this working?

Hurry up hurry up. We've got a battle to get to. Okay, it says:

> The variable `speedC` is inside an `if` statement, so it's only created if the statement is True.

Oh right! Well there's the problem. We need to make sure the `powerC` variable is created, even if the button isn't pressed. Let's add a line above our `if` statement to create `powerC` no matter what.

<pre class="language-python"><code class="lang-python">    speedC = 0
<strong>    if Button.A in controller.buttons.pressed():
</strong>        speedC = 100
</code></pre>

Now even if the A button isn't pressed, we're still creating `speedC` and assigning a value of `0`.

<figure><img src="https://1320923231-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3lMcmYNZwepJ8VBzSDr1%2Fuploads%2FdWNNOaL9RacgleRy1TP9%2FDivider.png?alt=media&amp;token=9268d63b-89b2-4e97-8fb2-cee99f5becc0" alt=""><figcaption></figcaption></figure>

Here's the final code.

```python
# Set up controller
controller = XboxController()

# Set up motor
motorA = Motor(Port.A)
motorB = Motor(Port.B)
motorC = Motor(Port.C)

while True:

    # Set motor speed
    speedA = controller.joystick_left()[1]
    speedB = controller.joystick_right()[1]
    speedC = 0
    if Button.A in controller.buttons.pressed():
        speedC = 100

    # Rotate motor
    motorA.go(speedA * -1)
    motorB.go(speedB)
    motorC.go(speedC)
```

Load it onto your robot and press the A button to rotate your weapon!

<figure><img src="https://1320923231-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3lMcmYNZwepJ8VBzSDr1%2Fuploads%2FdWNNOaL9RacgleRy1TP9%2FDivider.png?alt=media&amp;token=9268d63b-89b2-4e97-8fb2-cee99f5becc0" alt=""><figcaption></figcaption></figure>

Almost there. You'll be facing some tough competition in this RoboBattle. You might need your weapon motor to rotate backwards. Especially if your weapon is something like a hammer that raises and lowers, or claw that opens and closes.

Let's use the B button for this. Add two lines to our `if` statement, like this.

```python
    if Button.A in controller.buttons.pressed():
        speedC = 100
    elif Button.B in controller.buttons.pressed():
        speedC = -100
```

<figure><img src="https://1320923231-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3lMcmYNZwepJ8VBzSDr1%2Fuploads%2FdWNNOaL9RacgleRy1TP9%2FDivider.png?alt=media&amp;token=9268d63b-89b2-4e97-8fb2-cee99f5becc0" alt=""><figcaption></figcaption></figure>

`elif` is like saying, "if the previous True/False question was **False**, then ask this question."

So if the A button isn't pressed, our code will check if the B button is pressed. If it is, it will set `speedC` to `-100`.

Here's the full program.

```python
# Set up controller
controller = XboxController()

# Set up motor
motorA = Motor(Port.A)
motorB = Motor(Port.B)
motorC = Motor(Port.C)

while True:

    # Set motor speed
    speedA = controller.joystick_left()[1]
    speedB = controller.joystick_right()[1]
    speedC = 0
    if Button.A in controller.buttons.pressed():
        speedC = 100
    elif Button.B in controller.buttons.pressed():
        speedC = -100

    # Rotate motor
    motorA.go(speedA * -1)
    motorB.go(speedB)
    motorC.go(speedC)
```

Take it for a spin!

<figure><img src="https://1320923231-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3lMcmYNZwepJ8VBzSDr1%2Fuploads%2FdWNNOaL9RacgleRy1TP9%2FDivider.png?alt=media&amp;token=9268d63b-89b2-4e97-8fb2-cee99f5becc0" alt=""><figcaption></figcaption></figure>

You know what? This is YOUR creation now. The best robot crafters I know all have their own... signature, I guess? The way they control their robots is as unique as their designs. The "right" way to control your robot is whatever feels right to you.

Go ahead and replace `Button.A` and `Button.B` with whatever buttons feel right to you!

* Main Buttons
  * <img src="https://1320923231-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3lMcmYNZwepJ8VBzSDr1%2Fuploads%2FCxyQcXIGnSgq83TKxokJ%2FXbox%20Button%20a-filled.png?alt=media&amp;token=243fc679-bf50-4d69-98df-ff8ef7862fa4" alt="" data-size="line"> `Button.A`&#x20;
  * <img src="https://1320923231-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3lMcmYNZwepJ8VBzSDr1%2Fuploads%2Fx8Gghx31LDcNBB3Kfo5s%2FXbox%20Button%20b-filled.png?alt=media&amp;token=cff8d61e-a662-4903-84c7-3b2cb5ef392f" alt="" data-size="line"> `Button.B`&#x20;
  * <img src="https://1320923231-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3lMcmYNZwepJ8VBzSDr1%2Fuploads%2FiVoy3QGfxS0PiA0luihz%2FXbox%20Button%20x-filled.png?alt=media&amp;token=95011e38-476f-4fb5-ab78-9a7bf91ec617" alt="" data-size="line">`Button.X`&#x20;
  * <img src="https://1320923231-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3lMcmYNZwepJ8VBzSDr1%2Fuploads%2FIpyvCrUs1sZDAqboQWw0%2FXbox%20Button%20y-filled.png?alt=media&amp;token=644cdaa7-719a-431d-920a-cce792a76461" alt="" data-size="line"> `Button.Y`
* Direction Pad
  * <img src="https://1320923231-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3lMcmYNZwepJ8VBzSDr1%2Fuploads%2Fgu5GtCOW8jDxfUOnW1JV%2FXbox%20Button%20dpad-up.png?alt=media&amp;token=50df0494-5be8-4366-b8c9-a6657ff4be10" alt="" data-size="line"> `Button.UP`&#x20;
  * <img src="https://1320923231-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3lMcmYNZwepJ8VBzSDr1%2Fuploads%2FseMExwWiH4nFzY7evH4Q%2FXbox%20Button%20dpad-down.png?alt=media&amp;token=352bd49d-317c-41a5-b6bd-bd3d131098e2" alt="" data-size="line"> `Button.DOWN`&#x20;
  * <img src="https://1320923231-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3lMcmYNZwepJ8VBzSDr1%2Fuploads%2FKySOgd5vHNLA2UwvOAmS%2FXbox%20Button%20dpad-left.png?alt=media&amp;token=b74b41fb-f9b2-4e14-b5bb-ba1ed59f706b" alt="" data-size="line"> `Button.LEFT`&#x20;
  * <img src="https://1320923231-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3lMcmYNZwepJ8VBzSDr1%2Fuploads%2FwzDpXgIgN1HtKgHS7LHd%2FXbox%20Button%20dpad-right.png?alt=media&amp;token=b1fab45c-cea2-4589-ad2e-a2d9aaadc87e" alt="" data-size="line"> `Button.RIGHT`&#x20;
* Bumpers
  * <img src="https://1320923231-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3lMcmYNZwepJ8VBzSDr1%2Fuploads%2FWp2ov2VL3wNERgvIH5pG%2FXbox%20Button%20left-bumper.png?alt=media&amp;token=4215b66b-faa2-42f3-9ab4-894235520b3d" alt="" data-size="line"> `Button.LB`
  * <img src="https://1320923231-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3lMcmYNZwepJ8VBzSDr1%2Fuploads%2FD3rGLsHjiBVgeGSWCkJx%2FXbox%20Button%20right-bumper.png?alt=media&amp;token=3e9717ae-35dd-4307-bf1d-8cb5e8cb16da" alt="" data-size="line"> `Button.RB`
* Face Buttons
  * <img src="https://1320923231-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3lMcmYNZwepJ8VBzSDr1%2Fuploads%2Fdo4ayGgAJWq9Ug9Neyu3%2FXbox%20Button%20view.png?alt=media&amp;token=b6b6eca0-1323-431e-9760-d3ef7398ab1d" alt="" data-size="line"> `Button.VIEW`&#x20;
  * <img src="https://1320923231-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3lMcmYNZwepJ8VBzSDr1%2Fuploads%2FrEkrM7CCv61kyjHu3x2W%2FXbox%20Button%20xbox.png?alt=media&amp;token=59fb9a25-2019-4706-9bc1-3155af384908" alt="" data-size="line"> `Button.GUIDE`
  * <img src="https://1320923231-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3lMcmYNZwepJ8VBzSDr1%2Fuploads%2Fiew79df6ldAvIPUx9m3f%2FXbox%20Button%20menu.png?alt=media&amp;token=d9493e2a-bf88-45f9-8139-d665f5426968" alt="" data-size="line"> `Button.MENU`
  * <img src="https://1320923231-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3lMcmYNZwepJ8VBzSDr1%2Fuploads%2FHteinTyHecDnEHrqloI3%2FXbox%20Button%20share.png?alt=media&amp;token=665bc8e9-c5b2-4d73-9cc4-d3cac6ee6dee" alt="" data-size="line">  `Button.UPLOAD`

Or if you want to use the left and right triggers instead, remove the `if` statements and just set `speedC` with this one line. The trigger positions range from 0 to 100. This line gets the right trigger position and subtract's the left trigger to give the full speed range from `-100` to `100`.

```python
    speedC = controller.triggers()[1] - controller.triggers()[0]
```

<figure><img src="https://1320923231-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3lMcmYNZwepJ8VBzSDr1%2Fuploads%2FdWNNOaL9RacgleRy1TP9%2FDivider.png?alt=media&amp;token=9268d63b-89b2-4e97-8fb2-cee99f5becc0" alt=""><figcaption><p>2</p></figcaption></figure>

With these coding skills and a little math, you can make your robot do literally anything. Combine all movement into one joystick. Use a button to activate a turbo boost. Create an ignition or emergency shutoff button. If you can imagine it, you can code it. Come back another time and I'll help you create some really wild stuff. Today, though... no time to spare. The battle is coming right up.

Give your robot some RoboBattles worthy decorations. Remember, recycling points are the key to victory. Decorations should be wild and whimsical, and they should fall apart easily in battle to earn you the most points. Technic™ pieces are usually hard to break apart, so mostly use bricks! Strong chassis, delicate decorations!

<figure><img src="https://1320923231-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3lMcmYNZwepJ8VBzSDr1%2Fuploads%2FdWNNOaL9RacgleRy1TP9%2FDivider.png?alt=media&amp;token=9268d63b-89b2-4e97-8fb2-cee99f5becc0" alt=""><figcaption></figcaption></figure>

If you have a friend or teammate with another robot, challenge them to battle!

<figure><img src="https://1320923231-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3lMcmYNZwepJ8VBzSDr1%2Fuploads%2FdWNNOaL9RacgleRy1TP9%2FDivider.png?alt=media&amp;token=9268d63b-89b2-4e97-8fb2-cee99f5becc0" alt=""><figcaption><p>3</p></figcaption></figure>

[^1]:


# No Time to Waste

<figure><img src="https://1320923231-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3lMcmYNZwepJ8VBzSDr1%2Fuploads%2FZiBqimilPNn6v19Pv1s7%2FPartsStadium.jpg?alt=media&amp;token=71971d04-5907-4e43-8f8c-24f40669b414" alt=""><figcaption></figcaption></figure>

### Rewards

* :trophy: **400 XP**

**\[Zoe Foxlin]** You've heard the news, right? You haven't!? Do you even check your notifications!? We're down a competitor for tonight's Bot Battles! The headline match was supposed to feature Ben Carr, one of our volunteer firefighters. But a wildfire sprung up a few hours ago. His whole squad got called out to fight it. I've been scrambling to find someone to take his place.

I know you haven't been here long, but Zoe tells me you're a total natural. This could be your big break. A chance to show off your bot battling on the big stage. Do you think you can put a bot together in time?

One important thing. Tonight's battle is custom controls only! Hurry over to Zoe's Garage and she can help you put the finishing touches on your very own control program.

<figure><img src="https://1320923231-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3lMcmYNZwepJ8VBzSDr1%2Fuploads%2FI50l35BJt3QXIibGYxi0%2FCraftingHello.jpg?alt=media&amp;token=db025745-3e45-40a8-8010-222ffb95b20a" alt=""><figcaption></figcaption></figure>

***

I can't believe it worked. I couldn't have done it without you!

Wait, what time is it!? Whew, we JUST made it. I'm going to send this program over to the Martinez Twins. VentureState's bot won't stand a chance.

Now that you know how to code, you can start experimenting with custom joystick controls for your own bot designs. Come back to me when you're ready to learn how to use controller buttons, too. I can even show you how to trigger automations.


# Lore

<table data-card-size="large" data-view="cards"><thead><tr><th data-card-target data-type="content-ref"></th><th data-hidden></th><th data-hidden></th><th data-hidden></th><th data-hidden data-type="content-ref"></th><th data-hidden data-card-cover data-type="files"></th></tr></thead><tbody><tr><td><a href="https://play.robobattles.com/adventure/lore/characters">Characters</a></td><td></td><td></td><td></td><td></td><td><a href="https://content.gitbook.com/content/3lMcmYNZwepJ8VBzSDr1/blobs/AcPACofiG09azwd1e4Hx/WelcomeHello.jpg">WelcomeHello.jpg</a></td></tr><tr><td><a href="https://play.robobattles.com/adventure/lore/places">Places</a></td><td></td><td></td><td></td><td></td><td><a href="https://1320923231-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3lMcmYNZwepJ8VBzSDr1%2Fuploads%2F5aJKubShSLWbUSI5hSkQ%2FWelcomeStadium.jpg?alt=media&amp;token=fa8b88da-f947-4041-9275-fdd2bb76d5fe">WelcomeStadium.jpg</a></td></tr></tbody></table>


# Places

<table data-view="cards"><thead><tr><th data-card-target data-type="content-ref"></th><th data-hidden></th><th data-hidden></th><th data-hidden></th><th data-hidden data-card-cover data-type="files"></th></tr></thead><tbody><tr><td><a href="https://play.robobattles.com/adventure/lore/places/stardust-springs">Stardust Springs</a></td><td></td><td></td><td></td><td><a href="https://1320923231-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3lMcmYNZwepJ8VBzSDr1%2Fuploads%2FI38lfKnrT2HjJoAMLYty%2FStardust%20Springs.jpg?alt=media&amp;token=5336c2e7-7756-4196-a63c-91fef67c1f09">Stardust Springs.jpg</a></td></tr><tr><td><a href="https://play.robobattles.com/adventure/lore/places/zoes-garage">Zoe's Garage</a></td><td></td><td></td><td></td><td><a href="https://1320923231-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3lMcmYNZwepJ8VBzSDr1%2Fuploads%2FclOXK8HwSGITPI3lsUS3%2FGarage.jpg?alt=media&amp;token=2197a7be-a4f8-482f-903b-ad0850ca36c5">Garage.jpg</a></td></tr><tr><td><a href="https://play.robobattles.com/adventure/lore/places/robobattles-stadium">RoboBattles Stadium</a></td><td></td><td></td><td></td><td><a href="https://1320923231-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3lMcmYNZwepJ8VBzSDr1%2Fuploads%2F5aJKubShSLWbUSI5hSkQ%2FWelcomeStadium.jpg?alt=media&amp;token=fa8b88da-f947-4041-9275-fdd2bb76d5fe">WelcomeStadium.jpg</a></td></tr></tbody></table>


# Stardust Springs

<figure><img src="https://1320923231-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3lMcmYNZwepJ8VBzSDr1%2Fuploads%2FI38lfKnrT2HjJoAMLYty%2FStardust%20Springs.jpg?alt=media&amp;token=5336c2e7-7756-4196-a63c-91fef67c1f09" alt=""><figcaption></figcaption></figure>

Stardust Springs is a small town known for its innovative approach to environmental sustainability, most notably through its unique RoboBattles competition system and comprehensive community workshop network. The town gained notoriety under the leadership of current mayor [Lily Ishii](https://play.robobattles.com/adventure/lore/characters/lily-ishii) for transforming recycling into a spectator sport called RoboBattles.

## History

### Early Settlement (1850-1890)

Originally established in the 1850s as a mining community, Stardust Springs gained its name from the unusual sparkle of mineral deposits in its natural waterways. The discovery of these minerals by prospector Thomas "Starry" McCallister led to a rapid influx of settlers hoping to strike it rich. The town's original settlement was built around three main springs: North Star Spring, Evening Star Basin, and the now-dried Morning Star Creek.

### Industrial Evolution (1891-1945)

When the mines began to show signs of depletion in the late 1890s, town leaders made a strategic decision to pivot toward manufacturing rather than allowing Stardust Springs to become a ghost town. Mining machine shops were converted into manufacturing facilities, producing everything from agricultural equipment to household appliances.

This transition period brought significant changes:

* **1902**: The Stardust Manufacturing Coalition formed, uniting former mining operations into a coordinated industrial base
* **1912**: Opening of the Technical Training Institute, which would later become a crucial center for engineering education
* **1928**: Establishment of the Springs Conservation Act, protecting the town's water sources
* **1935**: Launch of the "Made in Stardust" campaign, promoting local manufacturing

The town's springs remained a central focus of conservation efforts. This environmental consciousness would later influence the town's embrace of recycling and sustainability initiatives.

### Post-War Development (1946-2002)

The post-World War II era saw Stardust Springs emerge as a regional industrial center. The town's manufacturers shifted from wartime production back to consumer goods, with a special focus on household appliances and automotive parts. This period established many of the industrial practices that would later influence the town's approach to recycling and reuse.

Key developments included:

* **1947**: Creation of the Industrial Innovation Zone, which provided space for new manufacturing ventures
* **1956**: Establishment of the first town recycling program, initially focused on scrap metal recovery
* **1963**: Opening of the Materials Research Laboratory
* **1975**: Launch of the "Clean Manufacturing Initiative," an early attempt to balance industrial growth with environmental concerns

### Environmental Awakening (2003-2022)

The late 20th century marked a turning point in Stardust Springs' relationship with environmentalism. A series of studies in the late 1980s revealed concerning levels of industrial pollution in the remaining springs, catalyzing a community-wide movement toward sustainable practices.

This period saw several crucial developments:

* **1991**: Implementation of the Springs Restoration Project
* **1995**: Opening of the state-of-the-art Materials Recovery Facility
* **2001**: Launch of the "Zero Waste by 2030" initiative
* **2008**: Creation of the Sustainable Business Certification Program
* **2015**: Establishment of the first community repair workshops

### Modern Era (2023-Present)

The election of Lily Ishii marked the beginning of a new chapter in Stardust Springs' history. Under her leadership, the town has transformed its industrial heritage into a unique blend of environmental innovation and community engagement. The introduction of RoboBattles as an official sport represents the culmination of the town's long journey from mining camp to sustainable community hub.

## Government

### Mayoral History

Stardust Springs has a history of selecting mayors who reflect the town's evolving identity:

* **Thomas "Starry" McCallister (1850-1868)**: The town's founding mayor and original discoverer of the mineral deposits. Established the basic infrastructure and governance systems while running the Stardust Mining Company. Known for his "open-door" policy that allowed any resident to voice concerns directly to him, usually over a cup of coffee in his office.
* **Theodore Blackwood (1868-1885)**: A former mining engineer who guided the town through its peak mining years. Established the town's first formal education system and laid out the original town planning grid that still influences development today. Resigned due to health issues related to years of mining work.
* **Elizabeth "Iron Lady" Steele (1885-1904)**: The town's first female mayor, who steered Stardust Springs through the difficult transition from mining to manufacturing. Her foresight in establishing the Technical Training Institute helped prevent the town from becoming a ghost town when the mines closed. Known for her catchphrase: "What we lack in silver, we'll make up for in steel."
* **Henry Zhang (1904-1922)**: A businessman who expanded the town's manufacturing base and established international trade connections. Zhang created the Stardust Manufacturing Coalition and weathered the town through World War I. His term saw the construction of the town's first public library and hospital.
* **William "Builder Bill" O'Malley (1922-1940)**: Oversaw the town's greatest period of physical expansion, establishing many of the neighborhoods that still exist today. Created the Springs Conservation Act and guided the town through the Great Depression by implementing local work programs.
* **Margaret Thorne (1940-1958)**: Led the town through World War II and the post-war boom. Established the Industrial Innovation Zone and created the first recycling programs. Her term saw the population double as returning veterans settled in the area.
* **Dr. James Richardson (1958-1975)**: A former professor who modernized the town's infrastructure and established the Materials Research Laboratory. Created the first environmental protection measures and began addressing industrial pollution concerns.
* **Samuel "Clean Sam" Martinez (1975-1992)**: Pioneered the town's early environmental initiatives, including the Clean Manufacturing Initiative and Environmental Advisory Board. His term marked the beginning of Stardust Springs' transition toward sustainability.
* **Dr. Victoria Chen (1992-2008)**: An environmental scientist who modernized the town's recycling infrastructure and established the Materials Recovery Facility. Created the framework for community-based environmental programs and initiated the Springs Restoration Project.
* **Michael Sullivan (2008-2022)**: A community organizer who strengthened the connection between industry and environmentalism. Established the first community repair workshops and supported the early development of what would become RoboBattles.
* **Lily Ishii (2023-present)**: The youngest mayor in town history, elected at age 19. Revolutionized the town's approach to recycling by establishing RoboBattles and implementing the Neighborhood Workshop Initiative.

## RoboBattles

### Origins

RoboBattles emerged from an unexpected convergence of circumstances at the local high school, where robotics club members regularly scavenged recycling bins for parts. Mayor Ishii, then working at the town's recycling center, recognized the potential to transform this informal practice into a structured community event.

### Current Format

RoboBattles combines competitive robotics with environmental sustainability. Participants construct robots using reclaimed materials, then compete in matches where the objective is to break down opponent robots into recyclable components. The sport has grown from informal matches at the town recycling center to stadium events that draw spectators from across the region.

### Impact

The success of RoboBattles has led to increased recycling rates, growth in the maker community, the development of new recycling technologies, the creation of jobs in the recycling and entertainment sectors, and enhanced community engagement in environmental initiatives.

## Innovation Hub

Stardust Springs has become a center for environmental innovation, attracting entrepreneurs and researchers interested in sustainable technology development. The town's unique combination of industrial heritage and environmental focus has created a fertile ground for technology startups.

Stardust Springs serves as a model for communities seeking to balance industrial heritage with environmental sustainability, demonstrating how innovative approaches to recycling and community engagement can transform environmental challenges into opportunities for growth and connection.

## Notable Locations

* [RoboBattles Stadium](https://play.robobattles.com/adventure/lore/places/robobattles-stadium)
* [Zoe's Garage](https://play.robobattles.com/adventure/lore/places/zoes-garage)
* Stardust Springs Recycling Center
* Historical Springs Park


# Zoe's Garage

<figure><img src="https://1320923231-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3lMcmYNZwepJ8VBzSDr1%2Fuploads%2FclOXK8HwSGITPI3lsUS3%2FGarage.jpg?alt=media&amp;token=2197a7be-a4f8-482f-903b-ad0850ca36c5" alt=""><figcaption></figcaption></figure>

Zoe's Garage is a community makerspace and robot crafting hub located in [Stardust Springs](https://play.robobattles.com/adventure/lore/places/stardust-springs). Originally a family-owned aircraft repair shop, the facility was repurposed as part of the [Neighborhood Workshop Initiative](https://play.robobattles.com/adventure/lore/characters/lily-ishii#neighborhood-workshop-initiative). Under the leadership of owner-operator [Zoe Foxlin](https://play.robobattles.com/adventure/lore/characters/zoe-foxlin), it has become a central gathering place for RoboBattles competitors and aspiring builders.

## History

The building that houses Zoe's Garage was originally Foxlin's Air Repair, operated by Zoe's mother for over forty years. When her mother retired, the building remained in the family. The space found new life when [Mayor Ishii](https://play.robobattles.com/adventure/lore/characters/lily-ishii) launched the Neighborhood Workshop Initiative, a program designed to transform vacant storefronts into community makerspaces. Zoe Foxlin, who had grown up learning mechanical skills in the shop, converted the former aircraft repair business into what would become one of Stardust Springs' most popular community workshops.

## Facilities and Services

### Workshop Space

The facility provides tools, workbenches, and assembly areas where competitors can craft and maintain their robots. The space maintains many of the professional-grade tools from its auto repair days, supplemented with equipment specifically suited for robot construction.

### Parts Repository

The garage functions as a collection point for salvaged materials. Builders can find everything from discarded appliances to mechanical components, all carefully sorted and stored for reuse.

### Training Center

New builders can receive guidance and technical instruction from Zoe Foxlin and other experienced community members. The garage offers both formal workshops and informal mentoring opportunities.

### Snack Drawer

Foxlin keeps a drawer well stocked with her frequent visitors' favorite snacks.

## Community Impact

Zoe's Garage has become more than just a workshop—it represents the intersection of Stardust Springs' industrial heritage and its commitment to environmental sustainability. The facility plays a crucial role in supporting the growth of RoboBattles as a sport, promoting creative approaches to recycling and reuse, and preserving and sharing mechanical knowledge across generations.

## Cultural Significance

The success of Zoe's Garage has made it a model for other communities implementing similar workshop initiatives. Its transformation from an auto repair shop to a robot-building hub mirrors Stardust Springs' larger evolution from an industrial center to a leader in environmental innovation.

The garage's philosophy of combining practical mechanical knowledge with playful creativity has influenced the broader RoboBattles community, encouraging builders to consider both the technical and entertainment aspects of their creations.

## Future Developments

As RoboBattles continues to grow in popularity, Zoe's Garage remains at the forefront of innovation in robot design and construction techniques. The facility continues to expand its programs, working closely with Mayor Ishii's administration to promote environmental sustainability through creative engineering.


# RoboBattles Stadium

<figure><img src="https://1320923231-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3lMcmYNZwepJ8VBzSDr1%2Fuploads%2F5aJKubShSLWbUSI5hSkQ%2FWelcomeStadium.jpg?alt=media&amp;token=fa8b88da-f947-4041-9275-fdd2bb76d5fe" alt=""><figcaption></figcaption></figure>

RoboBattles Stadium is the premier competitive venue for RoboBattles in [Stardust Springs](https://play.robobattles.com/adventure/lore/places/stardust-springs). Originally converted from an abandoned manufacturing facility as part of [Mayor Lily Ishii's](https://play.robobattles.com/adventure/lore/characters/lily-ishii) environmental initiatives, the stadium has become the heart of the town's competitive recycling scene.

## History

### Original Use

The building that now houses RoboBattles Stadium was formerly the Stardust Manufacturing Coalition's main assembly plant. When RoboBattles began gaining popularity under Mayor Ishii's administration, the facility was repurposed to accommodate the growing spectator sport. The renovation preserved many of the building's original industrial features, incorporating them into the stadium's distinctive aesthetic that celebrates Stardust Springs' manufacturing heritage.

### Inaugural Battle (2023)

The stadium's first official RoboBattles competition marked the transformation of RoboBattles from informal matches at the recycling center into a structured sporting event.

### The Great Sorting Mishap (2024)

The details of the incident remain subject to debate— a closely guarded secret among Judge Hill and other community members who were present at the time.

## Features

### Arena

The main battle arena features a reinforced competition space surrounded by safety barriers, which are regularly inspected by Head Judge [Ethan Hill](https://play.robobattles.com/adventure/lore/characters/ethan-hill) for stability. The arena floor features special surfaces designed to accommodate various robot designs while protecting the underlying structure from damage.

### Recycling Integration

True to the spirit of RoboBattles, the stadium incorporates an advanced materials sorting system. Designated areas around the arena allow for immediate collection and categorization of parts from defeated robots. These materials are transported throughout Stardust Springs for reuse, to places like the reycling center or community workshops like [Zoe's Garage](https://play.robobattles.com/adventure/lore/places/zoes-garage) for reuse in future robot construction.

### Accommodations

* Standing-room observation decks that provide multiple viewing angles
* Digital scoreboards showing match statistics and recycling metrics
* Concession areas featuring local vendors
* Competitor preparation areas equipped with basic tools and emergency repair stations
* Judge's observation platform with enhanced viewing capabilities
* Advanced lighting system for optimal visibility during matches
* Built-in cameras for match recording and live streaming
* Emergency response systems including fire suppression and first aid stations

## Safety Protocols

Under the strict supervision of Judge Ethan Hill, the stadium maintains rigorous safety standards:

* Regular inspection of safety barriers and arena infrastructure
* Strict enforcement of robot construction guidelines
* Designated "scrap-free zones" to prevent flying debris incidents
* Clear evacuation routes and emergency procedures

## Cultural Impact

RoboBattles Stadium has become more than just a sports venue—it represents Stardust Springs' successful fusion of environmental responsibility with community entertainment. The facility has inspired similar venues in other communities and serves as a model for how industrial spaces can be repurposed for innovative environmental initiatives.

The stadium's success has contributed significantly to Stardust Springs' reputation as a leader in environmental innovation and community engagement, while providing a platform for the continued growth and development of RoboBattles as a sport.


# Characters

<table data-view="cards"><thead><tr><th data-card-target data-type="content-ref"></th><th data-hidden></th><th data-hidden></th><th data-hidden></th><th data-hidden data-card-cover data-type="files"></th></tr></thead><tbody><tr><td><a href="https://play.robobattles.com/adventure/lore/characters/lily-ishii">Lily Ishii</a></td><td></td><td></td><td></td><td><a href="https://content.gitbook.com/content/3lMcmYNZwepJ8VBzSDr1/blobs/AcPACofiG09azwd1e4Hx/WelcomeHello.jpg">WelcomeHello.jpg</a></td></tr><tr><td><a href="https://play.robobattles.com/adventure/lore/characters/zoe-foxlin">Zoe Foxlin</a></td><td></td><td></td><td></td><td><a href="https://content.gitbook.com/content/3lMcmYNZwepJ8VBzSDr1/blobs/mbHfzAafwq70s0ak1f6c/PartsHello.jpg">PartsHello.jpg</a></td></tr><tr><td><a href="https://play.robobattles.com/adventure/lore/characters/ethan-hill">Ethan Hill</a></td><td></td><td></td><td></td><td><a href="https://1320923231-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3lMcmYNZwepJ8VBzSDr1%2Fuploads%2FoMhmYkxzw9EwbhIr1WJt%2FRulesHello.jpg?alt=media&amp;token=9b621d66-4fda-4137-b71a-2d171c8f69e3">RulesHello.jpg</a></td></tr></tbody></table>


# Lily Ishii

<figure><img src="https://content.gitbook.com/content/3lMcmYNZwepJ8VBzSDr1/blobs/AcPACofiG09azwd1e4Hx/WelcomeHello.jpg" alt=""><figcaption></figcaption></figure>

Lily Ishii is the current mayor of [Stardust Springs](https://play.robobattles.com/adventure/lore/places/stardust-springs). She is the youngest person to hold this position in the town's history, taking office at age 19. She is known for her innovative approach to environmental issues, most notably turning recycling into a competitive sport through the establishment of RoboBattles.

## Early Life

### Family Background

Lily was born to Dr. Akiko Ishii, a teacher, and Dr. James Ishii, a manager at a renewable energy company. Her mother's diplomatic approach to academic politics contrasted with her father's dynamic, risk-taking leadership. The dinner table often became an impromptu lesson in negotiation and problem-solving, with her parents encouraging her to defend her opinions and propose solutions to family decisions, from vacation planning to household rules. By age ten, Lily was already mediating disputes between her younger siblings and organizing neighborhood kids into elaborate games that she invented.

### Education

At Stardust Springs Public School, Lily learned quickly how to get things done. When her third-grade class needed to raise money for a field trip, she transformed the typical bake sale into a "taste-testing competition" that had students from every grade voting on their favorite treats with spare change. The event raised triple the usual amount and became an annual tradition. During the sixth-grade budget crisis that threatened the school festival, Lily mobilized her classmates to run the event entirely by themselves, coordinating student volunteers, parent committees, and local sponsors. The festival's success led to the creation of a permanent Student Events Committee.

### Origin of RoboBattles

The seeds of RoboBattles were planted during Ishii's junior year of high school, when she noticed how the school robotics club regularly scrounged through the recycling bins for parts. While she had little interest in building robots herself, she was fascinated by how the club members could transform seemingly worthless junk into working machines.

Around the same time, Ishii was working a part-time job at the town's recycling center, where she saw firsthand how many potentially useful materials ended up being processed or discarded. She began setting aside interesting mechanical parts for the robotics club, creating an informal exchange system that soon drew in other schools' teams as well.

### Path to Politics

In Lily's final year of high school, she was elected student body president. Her talent for turning mundane school initiatives into engaging community events caught the attention of local political leaders. After graduation, Lily spent a few months working at a restaurant before making the bold decision to run for mayor. She believed that Stardust Springs was ready for a fresh approach to community engagement.

## Political Career

### Election and Historic Achievement

Ishii's election as mayor of Stardust Springs marked a significant milestone in the town's history, breaking the previous record for youngest mayor by over 20 years. Her campaign focused on modernizing the town's approach to environmental challenges while engaging younger generations in community initiatives.

### Leadership Style

Ishii receives hundreds of requests daily from citizens of Stardust Springs. She is a strong delegator, asking others to pitch in when possible and sharing clear directions. When she sees community members, she asks them, "How are you doing? How is your family?" and listens. She is not afraid to tell residents, "Remember, it’s important to follow the law." While Ishii is always eager to help when possible, when she receives a request she can't fulfill, she is good about saying "no" and pointing people in the right direction to find help elsewhere. She recognizes the importance of community and is clear about her goals. Therefore, she gets results.

### Mayoral Initiatives

#### RoboBattles

Ishii's signature achievement as mayor has been the transformation of recycling into a spectator sport known as RoboBattles. This innovative program combines environmental sustainability with community entertainment, encouraging residents to repurpose waste materials into combat-ready robots.

The first unofficial "battle" happened by accident, when two robotics teams showed up at the town's recycling center to claim the same pile of old printer parts. Instead of arguing, they agreed to compete for them, each building something on the spot with whatever they could find. When the battle was over, both robots had been broken down completely into easily reusable scrap. The event drew a surprising crowd of onlookers, and Ishii immediately recognized the potential for something bigger.&#x20;

Within months, she had organized the first proper RoboBattle in the recycling center's parking lot, promoting it as "Stardust Springs' First Recycling Competition." The combination of spectacle and sustainability caught on quickly, though few could have predicted it would eventually become the town's signature sport.

#### Neighborhood Workshop Initiative

The Neighborhood Workshop Initiative transforms vacant storefronts into community makerspaces. Initially proposed as a way to revitalize Stardust Springs' aging downtown district, these workshops serve as local hubs where residents can repair household items, learn practical skills, and work on personal projects.

Each workshop is equipped with tools and staffed by volunteer experts from the community—retired mechanics, craftspeople, and tech professionals who share their knowledge with younger generations. The spaces have become particularly popular with RoboBattles competitors seeking guidance on their designs, but they also host everything from furniture repair clinics to DIY electronics classes.

The most famous success story is [Zoe’s Garage](https://play.robobattles.com/adventure/lore/places/zoes-garage), the popular workshop founded by [Zoe Foxlin](https://play.robobattles.com/adventure/lore/characters/zoe-foxlin).


# Zoe Foxlin

<figure><img src="https://content.gitbook.com/content/3lMcmYNZwepJ8VBzSDr1/blobs/mbHfzAafwq70s0ak1f6c/PartsHello.jpg" alt=""><figcaption></figcaption></figure>

Zoe Foxlin is the owner and operator of [Zoe's Garage](https://play.robobattles.com/adventure/lore/places/zoes-garage), a central hub for robot builders in [Stardust Springs](https://play.robobattles.com/adventure/lore/places/stardust-springs). Known for her mechanical ingenuity, Foxlin has become an essential figure in the RoboBattles community.

## Early Life

Growing up in a family-owned aircraft repair shop, Foxlin spent her childhood surrounded by tools and machinery. Her mother, a pilot who ran Foxlin's Air Repair for over forty years, encouraged her natural curiosity about how things worked. By age twelve, Zoe could diagnose engine problems by sound alone, a skill that would later prove invaluable in RoboBattles maintenance.

The original Foxlin's Air Repair closed when her mother retired, but the building remained in the family. Years later, when [Mayor Ishii](https://play.robobattles.com/adventure/lore/characters/lily-ishii) launched the [Neighborhood Workshop Initiative](https://play.robobattles.com/adventure/lore/characters/lily-ishii#the-neighborhood-workshop-initiative), Zoe converted the space into Zoe's Garage.

## Role in Robot Building

### Technical Expertise

In the RoboBattles community, Foxlin serves as more than just a garage operator. Her deep mechanical knowledge makes her an invaluable resource for newcomers seeking guidance on their first builds. During tournaments, she often works behind the scenes as an emergency repair specialist, helping competitors salvage and rebuild their robots between matches.

### Design Philosophy

Foxlin's approach to robot construction emphasizes whimsical designs. She encourages builders to think creatively about salvaged materials, finding silly, colorful, and wild uses for discarded items that others might overlook. This philosophy has influenced many builders in the community to consider not just how their robots will perform in competition, but how they will entertain the crowd and inspire young aspiring robot builders of all backgrounds.

### Mentorship Philosophy

Foxlin takes pride in making Zoe's Garage a welcoming place for all residents of Stardust Springs. Community members love to hang out in her garage. She keeps the snack drawer well stocked with everyone's favorite snacks, and prioritizes fun over rule-following. Foxlin always says "yes" to requests for help, no matter how busy her schedule is. She engages robot builders of all backgrounds by answering questions and sharing design ideas.


# Ethan Hill

<figure><img src="https://1320923231-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3lMcmYNZwepJ8VBzSDr1%2Fuploads%2FoMhmYkxzw9EwbhIr1WJt%2FRulesHello.jpg?alt=media&amp;token=9b621d66-4fda-4137-b71a-2d171c8f69e3" alt=""><figcaption></figcaption></figure>

Ethan Hill serves as the head judge of RoboBattles in [Stardust Springs](https://play.robobattles.com/adventure/lore/places/stardust-springs). Appointed by [Mayor Ishii](https://play.robobattles.com/adventure/lore/characters/lily-ishii), Hill is known for his encyclopedic knowledge of RoboBattles regulations and precise judgment calls.

## Early Life

Hill spent his childhood as an avid board game enthusiast. In junior high, he developed a passion for competitive card games. He worked part-time at a local game shop, where he taught game mechanics to new players in card tournaments. His notebooks from this period are filled with observations about tournament formats and suggestions for improving event organization, interspersed with his characteristic dry humor about particularly memorable rule disputes.

## Career

### Early RoboBattles Involvement

Hill stumbled into RoboBattles during its early days, when matches were still being held in the town recycling center. He initially came to watch his roommate compete, but found himself oddly fascinated by the makeshift rule systems different competitors used. While others debated robot designs, Hill filled his notebook with ideas for standardizing match procedures.

### Appointment as Judge

As RoboBattles grew in popularity, Hill's notebooks of carefully documented precedents and procedures helped legitimize the sport while maintaining its core mission of promoting recycling and sustainability. Mayor Ishii recognized the importance of his work and appointed him head judge of RoboBattles. Hill's notebook became the foundation of the official RoboBattles rulebook.

### The Great Sorting Mishap

Perhaps the most infamous event in Hill's judging career. While the details of this 2024 incident remain subject to debate, competitors still speak in hushed tones about the day Hill used his whistle seventeen times in under two minutes.

## Judging Style

Hill's judging style features strict adherence to rules. During matches, he maintains constant vigilance, his eyes tracking every movement while his hand rests readily on his whistle. He makes swift, fair judgments without hesitation. His penalty calls have become known for their brevity and dry humor, as he assumes all competitors are already familiar with the rules.

As head judge, Hill continues to refine the RoboBattles rulebook. He approaches rule development like a chess player, thinking several moves ahead to anticipate potential loopholes or unintended consequences. Each new rule undergoes rigorous testing through hypothetical scenarios before implementation.


# Custom Controls

<figure><img src="https://1320923231-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3lMcmYNZwepJ8VBzSDr1%2Fuploads%2FI50l35BJt3QXIibGYxi0%2FCraftingHello.jpg?alt=media&amp;token=db025745-3e45-40a8-8010-222ffb95b20a" alt=""><figcaption></figcaption></figure>

**\[Zoe Foxlin]** A program tells your hub and motors how to respond to button presses. You can create your own custom program to control your bot any way you like!

{% stepper %}
{% step %}

### Create a program file

1. Visit [code.robobattles.com](https://code.robobattles.com/) using Chrome or Edge.
2. Click the ➕ **New File** button.

<div align="center"><figure><img src="https://1320923231-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3lMcmYNZwepJ8VBzSDr1%2Fuploads%2FSAkzKGW1aicOdzOKrJIn%2FPybricks%20Create%20New%20File.jpg?alt=media&amp;token=d88683d8-31ce-4ab7-82e6-d771251c0bb0" alt="" width="563"><figcaption></figcaption></figure></div>

3. If this is your first time, copy my premade control program ↓.

<details>

<summary>Zoe's Universal Robot Controls</summary>

Hover over the code below, click the Copy button, and paste it into your empty file.

{% code fullWidth="false" %}

```python
# Set up controller
controller = XboxController()

# Set up motors
left = Motor(Port.A)
right = Motor(Port.B)
weapon = Motor(Port.C)

# Run program loop
while True:
    # Get input
    compX = controller.joystick_left()[0]
    compY = controller.joystick_left()[1]
    compWL = controller.triggers()[0]
    compWR = controller.triggers()[1]

    # Accept D-Pad for drive motor control to support adaptive controllers
    if Button.LEFT in controller.buttons.pressed():
        compX -= 100

    if Button.RIGHT in controller.buttons.pressed():
        compX += 100

    if Button.UP in controller.buttons.pressed():
        compY += 100

    if Button.DOWN in controller.buttons.pressed():
        compY += 100

    # Accept buttons for weapon motor control to support adaptive controller
    if Button.B in controller.buttons.pressed():
        compWR += 100
        
    if Button.A in controller.buttons.pressed():
        compWL += 100

    # Reduce left/right input for slower turning to make bot easier to control
    compX /= 3

    # Control weapon motors
    if compWL - compWR != 0:
        weapon.go(compWL - compWR)
    else:
        # Triggers are not pressed, so let weapon motor spin freely
        weapon.stop()

    # Control wheel motors
    if compX != 0 or compY != 0:
        # Joystick is pressed, so move wheel motors
        left.go(-compY - compX)
        right.go(compY - compX)
    else:
        # Joystick is not pressed, so let wheel motors spin freely
        left.stop()
        right.stop()

```

{% endcode %}

</details>
{% endstep %}

{% step %}

### Connect your hub to your computer

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

<div align="left" data-full-width="false"><figure><img src="https://content.gitbook.com/content/3lMcmYNZwepJ8VBzSDr1/blobs/VdNGcUuDtNu1GWTyTOaJ/Technic%20Hub.jpg" alt="" width="188"><figcaption></figcaption></figure></div>

1. Turn on your hub.
2. Double tap the green button. The light should start flashing blue.
3. Click the **Bluetooth** button.

<div align="center"><figure><img src="https://1320923231-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3lMcmYNZwepJ8VBzSDr1%2Fuploads%2FFIqcOgVdUcKJ7FyEbCeT%2FPybricks%20Bluetooth.jpg?alt=media&amp;token=e79b9f1b-3187-4b9c-a931-8708285d9a48" alt="" width="563"><figcaption></figcaption></figure></div>

3. Click the name of your hub, then click **Pair***.*

<div align="center"><figure><img src="https://1320923231-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3lMcmYNZwepJ8VBzSDr1%2Fuploads%2F4j6Uh4oRPZnQHa0MZZTA%2FPybricks%20Select%20Hub.jpg?alt=media&amp;token=3615fa02-0145-44b2-9499-ef895887de73" alt="" width="563"><figcaption></figcaption></figure></div>

When the hub is connected, the light will stop flashing and turn solid blue. The Bluetooth button icon will also change. <img src="https://1320923231-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3lMcmYNZwepJ8VBzSDr1%2Fuploads%2FelZth7jfU4L3vrhJHRXB%2FPybricks%20Paired.png?alt=media&amp;token=65d084b9-f3b3-47fd-80c3-d9c3b67844c5" alt="" data-size="line">

<details>

<summary>Troubleshooting</summary>

### The hub won't light up

Make sure you've installed **all 6** AA batteries. The battery holder pops out and stores 2 rows of 3 batteries each. Make sure your batteries are fully charged and facing the right directions.

### The hub isn't showing up in the list

* Make sure your hub is in Bluetooth mode. The light should be **flashing blue**.
  * If the light is off, your hub is off. Press the green button to turn it on.
  * If the light is slowly pulsing, your hub is running code. Double tap the green button until the light starts flashing instead.
* Make sure you've [installed the latest RoboBattles firmware](https://play.robobattles.com/tutorial/controls/first-time-setup).

If it's still not showing up, reinstall the RoboBattles firmware and start over.

</details>
{% endtab %}

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

<div align="left"><figure><img src="https://1320923231-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3lMcmYNZwepJ8VBzSDr1%2Fuploads%2FPlRjFM38YOUjgssmKeey%2FHub%20Spike%20Prime.jpg?alt=media&amp;token=03c4773f-602d-497a-b0dd-8115b6ddbb3d" alt="" width="188"><figcaption></figcaption></figure></div>

1. Turn on your hub.
2. Double tap the power button. The hub light should start flashing blue.
3. Click the **Bluetooth** button.

<div align="center"><figure><img src="https://1320923231-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3lMcmYNZwepJ8VBzSDr1%2Fuploads%2FFIqcOgVdUcKJ7FyEbCeT%2FPybricks%20Bluetooth.jpg?alt=media&amp;token=e79b9f1b-3187-4b9c-a931-8708285d9a48" alt="" width="563"><figcaption></figcaption></figure></div>

3. Click the name of your hub, then click **Pair***.*

<div align="center"><figure><img src="https://1320923231-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3lMcmYNZwepJ8VBzSDr1%2Fuploads%2F4j6Uh4oRPZnQHa0MZZTA%2FPybricks%20Select%20Hub.jpg?alt=media&amp;token=3615fa02-0145-44b2-9499-ef895887de73" alt="" width="563"><figcaption></figcaption></figure></div>

When the hub is connected, the light will stop blinking and turn solid blue. The Bluetooth button icon will also change. <img src="https://1320923231-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3lMcmYNZwepJ8VBzSDr1%2Fuploads%2FelZth7jfU4L3vrhJHRXB%2FPybricks%20Paired.png?alt=media&amp;token=65d084b9-f3b3-47fd-80c3-d9c3b67844c5" alt="" data-size="line">

<details>

<summary>Troubleshooting</summary>

### The hub won't turn on

Make sure the battery is charged.

### The hub isn't showing up in the list

* Make sure your hub is in Bluetooth mode. The light should be **flashing blue**.
* Make sure you've [installed the latest RoboBattles firmware](https://play.robobattles.com/tutorial/controls/first-time-setup).

If it's still not showing up, reinstall the RoboBattles firmware and start over.

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

{% step %}

### Transfer the program to your hub

1. Press the *Play* button.

<div align="center"><figure><img src="https://1320923231-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3lMcmYNZwepJ8VBzSDr1%2Fuploads%2FA1LZ3bFK2MFDotEgT1TF%2FPybricks%20Run%20Code.jpg?alt=media&amp;token=869606e8-b7e8-41e3-9fec-9235d1c7e63b" alt=""><figcaption></figcaption></figure></div>

The play button will turn into a loading wheel to show progress. If it gets stuck: refresh the page,  reconnect bluetooth, and try again.

You only need to transfer a program to your hub once. Your hub will remember it.

<details>

<summary>Troubleshooting</summary>

### The play button is grayed out

Make sure your hub is connected to your computer.

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


# Adaptive Controller

<figure><img src="https://1320923231-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3lMcmYNZwepJ8VBzSDr1%2Fuploads%2FAnMIJp62qNsUMlekn81E%2Fimage.png?alt=media&amp;token=44452e0d-5690-4e1a-8afd-a86395b0402f" alt=""><figcaption></figcaption></figure>

The [Xbox Adaptive Controller](https://www.xbox.com/en-US/accessories/controllers/xbox-adaptive-controller) ($100) is designed for gamers with limited mobility. It connects wirelessly to your hub just like a standard controller.

By default, the directional pad will drive your bot. The large buttons will control your weapon.

{% hint style="warning" %}
Adaptive Controllers often ship with outdated firmware, which prevents them from connecting to your hub. If your controller fails to pair, follow [Microsoft's instructions](https://support.xbox.com/en-US/help/hardware-network/controller/update-xbox-wireless-controller). Requires an Xbox console or a PC running Windows 10 or higher.
{% endhint %}

## Peripherals

<figure><img src="https://1320923231-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3lMcmYNZwepJ8VBzSDr1%2Fuploads%2FNoluWjcxlkuWByIp002m%2Fimage.png?alt=media&amp;token=109f6f8c-7b17-4421-89a8-0fbe5d78875f" alt="" width="375"><figcaption></figcaption></figure>

Depending on your needs, the Xbox Adaptive Controller can also be used with peripherals like buttons, joysticks, foot switches, head switches and more.

Microsoft offers an [Xbox Adaptive Joystick](https://www.microsoft.com/en-us/d/Xbox-Adaptive-Joystick/8MZBMMCJZQS4/T5N3?OCID=AIDcmm6mu07qw1_seo_omc_goo\&source=googleshopping) ($30) which can be customized with custom, 3D-printable joystick toppers.

Many third party options are also available, including offerings from [Logitech](https://www.logitechg.com/en-us/shop/p/adaptive-gaming-kit-accessories) and Etsy vendors. Ensure that they specifically mention support for the Xbox Adaptive Controller.

To control your bot's drive motors, plug your peripheral into the left joystick or directional pad ports on your Adaptive Controller. To control your bot's weapon motors, plug into the A/B ports or the LT/RT ports. If you are using a custom control program, you can remap any of these controls.


