codeCustom Controls

[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!

1

Create a program file

  1. Visit code.robobattles.comarrow-up-right using Chrome or Edge.

  2. Click the ➕ New File button.

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

chevron-rightZoe's Universal Robot Controlshashtag

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

2

Connect your hub to your computer

  1. Turn on your hub.

  2. Press and hold the green button until the light starts flashing blue.

  3. Click the Bluetooth button.

  1. Click the name of your hub, then click Pair.

When the hub is connected, the light will stop flashing and turn solid blue. The Bluetooth button icon will also change.

chevron-rightTroubleshootinghashtag

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, not pulsing.

    • 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. Press and hold the green button until the light starts flashing instead.

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

3

Transfer the program to your hub

  1. Press the Play button.

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.

chevron-rightTroubleshootinghashtag

The play button is grayed out

Make sure your hub is connected to your computer.

Last updated