You should see some log lines like this at a regular interval: Now you can press the PS button on the controller and it should attempt to talk to the Raspberry Pi. If you cannot run bluetoothctl you may be running an older version of Jessie and might need to install the old Bluetooth module using: sudo apt-get -y install bluetooth after which you should restart the Raspberry Pi and try again. Next we start the Bluetooth configuration tool and set the dongle so it can be seen by the controller: Now disconnect the controller from the USB cable. Setting master bd_addr to 00:15:83:0c:bf:ebĭisplayed on the terminal. The sixpair code should re-configure the controller to talk with the dongle, if it worked you should see something like:Ĭurrent Bluetooth master: 00:15:83:0c:bf:eb We will also restart the Raspberry Pi to ensure the Bluetooth service is running: Plug the controller into the Raspberry Pi with the USB cable and the Bluetooth dongle if you have not already. Next we need to tell the PS3 controller it is meant to be connecting to the Raspberry Pi. Sudo apt-get -y install libusb-dev joystick python-pygame We need to download some packages to allow us to use both the Bluetooth and joystick functions: Our guide here is heavily based on BaseBot's Playstation 3 Controller guide with some slight adjustments to work with a clean install of Jessie Lite and our scripts. Setup for Jessie and Jessie Liteįirst you need to get yourself a USB Bluetooth dongle for the Raspberry Pi and you will need a USB mini cable, the same type you use to charge the PS3 controller. Check out our How to connect a PS3 remote to the new Raspberry Pi Zero W guide to get setup with the GUI :) Alternatively keep reading the Jessie instructions below to setup your PS3 controller from a terminal instead. If you have a Pi 3 or Pi Zero W then you already have the Bluetooth built-in to the board, otherwise you will need a USB Bluetooth dongle. If you are using a version of Raspbian which is running Pixel then you can setup the PS3 controller using the GUI. Setup for the Pi Zero W and Raspbian running Pixel If you wish to use a PlayStation 3 controller to control your Raspberry Pi robots then here are some details which may help.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |