Menu

PairPs3Joystick

vincent
Attachments
IMG_0646.JPG (1173068 bytes)
IMG_0648_1.JPG (1089581 bytes)

Description

This page explains how to pair the ps3 joystick with the computer via bluetooth

Hardware List

  • USB Bluetooth Dongle
    dongle
  • ps3 joystick + usb cable for ps3 joystick
    ps3joystick

Pairing

  1. Download the ps3joy ROS package (assume you're using fuerte distribution for ROS)

$ sudo apt-get install ros-fuerte-joystick-drivers

  • Connect the usb bluetooth dongle to the computer. Also connect ps3 joystick to the computer with the usb cable.

Open up a terminal, load the MAC address of the bluetooth dongle into the joystick:

$ sudo bash
$ rosrun ps3joy sixpair

  • Then run the driver for the joystick:

$ rosrun ps3joy ps3joy.py

Press the 'Pair' button in the center of the joystick, you should be able to see

`Connection is Activated.'

ps3joy.py exposes the data of the button, axes, three-axis accelerometer, single-axis gyroscope.see the ROS wiki page for ps3joy package
To see the data from the joystick, open a new terminal, type

$ jstest /dev/input/js?

Unpairing

Hold the 'Pair' button for 10 seconds to unpair.


Related

Wiki: Home