# Enable the agent and set it as default: Parting DualShock 3 Controller # Disonnect DualShock 3 over USB Pairing Tools # Get and build the command line pairing tool (sixpair)
Sudo apt-get install -y bluetooth libbluetooth3 libusb-dev Bluetooth Configuration Install # Install & Enable Bluetooth Tools
The bellow just shows how to get PS3 controller connected. Here is what I have figured out so far for PS3 on Raspberry PI 3 w/ integrated bluetooth. See related issue #103 Playstation Controller Setup ( general guide to connect hardware & setup ) Using a wireless game controller (like a PS3 controller) seems to be one of the lowest cost & simplest solution method. Remote Pendant (Playstation 3 Dualshock Controller / SIXAXIS Controller) Use Playstation 3 Controller wirelessly over bluetooth to control CNC from the host device (raspberry pi). Rotate the left stick on the PS3 controller and the first two columns should change as the position of the left stick changes.Dual Shock / PS3 Bluetooth Remote Pendant for CNCjs When the command starts the screen will fill up very quickly with lots of numbers. Enter this command to check the PS3 controller is working correctly: jstest /dev/input/js0 Open the terminal again and make it nice and large this time. When the Raspberry Pi has restarted press the PS button and check you get the single LED again: If you do everything is ready.Īt this stage the PS3 controller should be showing a single LED constantly:įirst restart your Raspberry Pi and confirm the LEDs go off on the PS3 controller. When it disappears click on the Bluetooth icon again and see if you have a new device listed with a green tick.
If you get a PIN code dialog:Īfter a few tries you should see the pairing dialog: If you get an error simply ignore it and try again, it may take a few goes before things work. If the LEDs have stopped flashing you need to press the PS3 button again. If the icon stops coming up check the PS3 remote. This may take several attempts as the device will tend to appear and disappear on its own! When it appears try to select it and then click the "Pair" button. You should get a new screen up, we are looking for a line with an icon that looks like an old gamepad like this: This is the tricky part and might take a few attempts.įirst click on the Bluetooth icon again and select "Add Device". The LEDs on the controller should start flashing. Now the Pi Zero is ready press the PS button on the PS3 controller. Click on the Bluetooth icon on the right of the taskbar and select "Make Discoverable". To connect our PS3 controller we need to make the Pi Zero WiFi visible. If everything worked you should see something like this: Once the Pi Zero W has restarted open the terminal again and run the command: sudo ~/sixpair Restart you Raspberry Pi Zero WiFi to make sure everything is ready.
Next run these three commands to download and build the SixPair program. This will take care of the downloading and setup for you. sudo apt-get -y install libusb-dev joystick python-pygame Now type in this command to install the utilities needed for joysticks and USB control.
We need to make sure the Raspberry Pi Zero W is ready to get new software, we do this with an update command: sudo apt-get update To get what we need we need to use the Terminal program. After that attach your monitor via the HDMI adapter and then connect the power. You will need to use both the SB adapter and hub to get all three connected at once. Start by attaching the PS3 controller along with your keyboard and mouse (if needed) to the USB port on the Pi Zero. We do this using a USB cable and a program called SixPair. The first thing we need to do is tell the PS3 controller what device (our Pi Zero W) it should connect to. If you have not already check out our Getting started with the Pi Zero WiFi and Bluetooth guide to setup the WiFi and find out how the Raspberry Pi Zero WiFi is different. You can do all of the steps below via VNC instead of using the keyboard and mouse if you want. A USB mini cable, the same style used for charging the PS3 controllerīefore starting get your Raspberry Pi Zero W up and running with Raspbian and a working WiFi connection to the internet.An HDMI monitor and adapter (or a VNC connection).A USB keyboard and mouse (or a VNC connection).A USB adapter and hub to connect devices.A micro SD card with the latest Raspbian (or noobs) installed.You do not need much to get a PS3 controller connected to the Pi Zero W: