Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add instructions for PS3 controller connection on Nano #13

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
46 changes: 45 additions & 1 deletion docs/parts/controllers.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ The default web controller may be replaced with a one line change to use a physi
### These joysticks are known to work:

* [Logitech Gamepad F710](https://www.amazon.com/Logitech-940-000117-Gamepad-F710/dp/B0041RR0TW)
* [Sony PS3 Sixaxis OEM](https://www.ebay.com/sch/i.html?&_nkw=Sony+PS3+Sixaxis+OEM) (Not compatible with Jetson Nano)
* [Sony PS3 Sixaxis OEM](https://www.ebay.com/sch/i.html?&_nkw=Sony+PS3+Sixaxis+OEM) (For Jetson Nano through sixad)
* [Sony PS4 Dualshock OEM](https://www.ebay.com/sch/i.html?&_nkw=Sony+PS4+Dualshock+OEM)
* [WiiU Pro](https://www.amazon.com/Nintendo-Wii-U-Pro-Controller-Black/dp/B00MUY0OFU)
* [XBox Controller](https://www.amazon.com/Xbox-Wireless-Controller-Blue-one/dp/B01M0F0OIY)
Expand Down Expand Up @@ -91,6 +91,50 @@ To test that the Bluetooth PS3 remote is working, verify that `/dev/input/js0` e
ls /dev/input/js0
```

Then use `jstest` on `/dev/input/js0`:
```bash
sudo apt install joystick
jstest /dev/input/js0
```

### Bluetooth setup for Jetson Nano
It appears PS3 controller has trouble connecting to Nano through standard bluetooth. `sixad`, originally developed by falkTX, then maintained by RetroPie team, can be used to connect PS3 controller on Jetson Nano. Note the standard bluetooth will become stale after `sixad` daemon is up and running.

A guide is provided [here on RetroPie](https://retropie.org.uk/docs/PS3-Controller/#for-older-versions-of-retropie):

A better and easier way is just using RetroPie's sixad repo, it is up-to-date and has sixpair included.
```bash
git clone https://github.com/RetroPie/sixad.git
cd sixad
make
sudo mkdir -p /var/lib/sixad/profiles
sudo make install
```

Test connection with:
```bash
# Plug in the PS3 controller via USB
sudo ./bins/sixpair # This is essentially the same as doing sixpair mentioned above

# Unplug the controller
sudo sixad --start # Ctrl-C to stop
```

The LEDs on the controller should blink and run, then a solid LED on after making a successful connection. You should see message on the screen like:
```
sixad-bin[2251]: started
sixad-bin[2251]: sixad started, press the PS button now
Watching... (5s)
sixad-sixaxis[2316]: started
sixad-sixaxis[2316]: Connected 'PLAYSTATION(R)3 Controller (00:16:FE:73:BE:E0)' [Battery 05]
```

To make `sixad` run on boot:
```bash
sudo systemctl enable sixad
sudo systemctl start sixad
```

#### Troubleshooting

In case the BT connection on the Raspberry Pi does not work, you see might something like this in `bluetoothctl`:
Expand Down