Custom 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!
Create a program file
Visit code.robobattles.com using Chrome or Edge.
Click the ➕ New File button.

If this is your first time, copy my premade control program ↓.
Connect your hub to your computer

Turn on your hub.
Press and hold the green button until the light starts flashing blue.
Click the Bluetooth button.

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. 
Troubleshooting
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.
Make sure you've installed the RoboBattles firmware.
If it's still not showing up, reinstall the RoboBattles firmware and start over.

Turn on your hub.
Press and hold the power button until the hub light starts flashing blue.
Click the Bluetooth button.

Click the name of your hub, then click Pair.

When the hub is connected, the light will stop blinking and turn solid blue. The Bluetooth button icon will also change. 
Troubleshooting
The hub won't turn on
Make sure the battery is charged.
The hub isn't showing up in the list
Make sure Bluetooth is on. The Bluetooth button should be flashing.
Make sure you've installed the RoboBattles firmware.
If it's still not showing up, reinstall the RoboBattles firmware and start over.
Transfer the program to your hub
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.
Last updated
