Pairing Your Controller
This guide walks you through setting up a Bluetooth joystick controller to control your LoCoBot.
The processes below should be done on the LoCoBot's NUC computer.
The Interbotix software only supports the usage of SONY PS4 and PS3 controllers.
SONY PS4 Controller (Recommended)
- Click the Bluetooth icon on the top right of your screen, followed by Bluetooth Settings.
- Press and hold the Share button on the PS4 controller (see image below for reference).
- While holding the Share button, press and hold the PS Button. After a few seconds, the triangular shaped LED located between the L2 and R2 buttons should start rapidly flashing white (about twice a second) at which point you can let go.
- On the computer, click the + icon in the Bluetooth settings window.
- Wait until you see Wireless Controller pop up, select it, and click Next on the bottom right of the window.
- A message should display saying successfully set up new device 'Wireless Controller' and the LED should turn blue. This means the controller is connected to the computer.
- To disconnect, hold down the PS Button for about 10 seconds until the LED turns off.
- To reconnect, just press the PS Button (no need to hold it down). After blinking white a few times, the LED should turn blue.
SONY PS3 Controller
Get an original SONY PS3 controller and it's accompanying USB cable.
Open up a terminal by pressing Ctrl + Alt + T, and enter the following commands.
$ sudo bluetoothctl [bluetooth]# power on [bluetooth]# agent on [bluetooth]# scan on
Plug the PS3 controller into the Linux Laptop. At this point, a message should pop up in the terminal that looks something like the following (with a different MAC address):
[NEW] Device FC:62:B9:3F:79:E7 PLAYSTATION(R)3 Controller
When it appears, type:
[bluetooth]# trust <MAC-address>
Unplug the PS3 controller and press the PS Button. The four red LEDs at the front of the controller should flash a few times, eventually leaving just one LED on by the '1'. This means that the joystick paired successfully.
Sometimes, the joystick might cause the cursor of the computer mouse to go crazy. To fix this,
add the following line to the
alias joy_stop='xinput set-prop "PLAYSTATION(R)3 Controller" "Device Enabled" 0'
Now, whenever the PS3 joystick is paired to the computer, just type
joy_stop in the
terminal to stop it messing with the mouse.