donkeycar icon indicating copy to clipboard operation
donkeycar copied to clipboard

DS4DRV no longer necessary for PS4 controller operation with Donkey Car running on Buster

Open TCIII opened this issue 5 years ago • 1 comments

The following guide will pair and connect the PS4 to an Rpi 3B+/4B running Buster from the CLI without requiring ds4drv:

SSH into your Rpi and from the CLI type:

sudo bluetoothctl

agent on

default-agent

scan on

Turn on your PS4 pairing (fast blinking blue light)

PS4 MAC_ADDRESS will appear:

[NEW] Device XX:XX:XX:XX:XX:XX Wireless Controller (where XX:XX:XX:XX:XX:XX is the controller PS4_MAC_ADDRESS)

connect PS4_MAC_ADDRESS (should result in:)

Attempting to connect to 00:01:6C:B4:06:7E [CHG] Device 00:01:6C:B4:06:7E Connected: yes [CHG] Device 00:01:6C:B4:06:7E UUIDs: 00001124-0000-1000-8000-00805f9b34fb [CHG] Device 00:01:6C:B4:06:7E UUIDs: 00001200-0000-1000-8000-00805f9b34fb [CHG] Device 00:01:6C:B4:06:7E ServicesResolved: yes [CHG] Device 00:01:6C:B4:06:7E Paired: yes Connection successful

trust PS4_MAC_ADDRESS

sudo apt-get install joystick (incase joystick is not already installed on Buster)

Now test your PS4 joystick:

sudo jstest /dev/input/js0

Now if values change when you move and press buttons on your controller, then you are ready to go with your PS4 controller, and you can finish the guide here.

TCIII avatar Dec 15 '20 16:12 TCIII

Cool. Let's put this into the doc together.

sctse999 avatar Jan 26 '21 15:01 sctse999

docs have been updated https://docs.donkeycar.com/parts/controllers/#ps4-dualshock-4-wireless-gamepad-controller

Ezward avatar Feb 18 '23 07:02 Ezward