RasPi Zero W/Connecting a PS3 controller via Bluetooth
Forums:
Hi
I'm trying to connect a (genuine) PS3 controller to my Zero W via BlueTooth.
I've downloaded the latest NOOB os. Have connected WiFi and then done "sudo apt-get update" and rebooted.
So I'm 100% up to date!
I've been following this guide
https://www.piborg.org/blog/pi-zero-wifi-ps3
but when I try and "Add Device..." I get asked to enter an access code on the PS3 controller which I don't know how to do.
I've tried an older guide using the CLI but when I connect it via a cable the PS3 won't stop buzzing/rumbling.
Can anybody please help?
Thanks in advance.
Andy
piborg
Tue, 03/07/2017 - 11:41
Permalink
How odd
The GUI setup seems to think your PS3 controller is actually a keyboard, that is why it is asking you to enter a code. Since you cannot I think we will have to setup the controller using the terminal.
As that seems to be proving tricky we should probably go through each stage slowly.
Do not worry about the controller rumbling, just carry on anyway :)
sudo ~/sixpair
If you could take a screenshot of the output so we can check the command worked correctly.
At this point you can unplug the PS3 controller to stop it rumbling.
andystorey
Wed, 03/08/2017 - 13:51
Permalink
Forgot to add this image
Forgot to add this image
andystorey
Wed, 03/08/2017 - 14:44
Permalink
Still haven't got anywhere
Still haven't got anywhere with this.
Problem seems to be the device type. - it's not a keyboard!
Where is this data stored? Seems to be if I can change the default class for this device to a joystick it might well work.
Andy
piborg
Wed, 03/08/2017 - 16:30
Permalink
Very odd
This all seems very odd, not the same as what I see from our PS3 controllers at all:
I would try removing your PS3 controller:
Then power everything off and try the pairing again.
Out of curiosity what model number is written on the back of your controller?
I am using one with model number: CECHZC2E.
andystorey
Wed, 03/08/2017 - 17:31
Permalink
yes - all very odd!
yes - all very odd!
Controller is marked CECHZC2U A1
Andy
piborg
Thu, 03/09/2017 - 11:04
Permalink
Newer model
Looking up the model numbers yours should be slightly newer than ours, but I do not expect it to really make any difference.
Could you take a screenshot after doing the following:
dmesg
You should see something like the image below with lines talking about the controller being connected.
With the controller still attached by cable what is the output from the command
ls /dev/input
andystorey
Thu, 03/09/2017 - 16:01
Permalink
Here you go!
Here you go!
piborg
Thu, 03/09/2017 - 20:00
Permalink
I think I can see the problem :)
The trouble seems to be that the controller is not actually an official one. The Shanwan clones are fairly close to the real thing, but they seem to play havoc with the Linux support for PS3 controllers. The giveaway is that the manufacturer is not listed as Sony, instead it is Shanwan.
There is still hope for getting it to work though :) It seems like there is a method of patching the bluetooth drivers to make them recognise the controller as a joystick like it should be. I would suggest trying this guide to see if you can get it working: Setting up PS3 controllers on Retropie (Gasia/ Shanwan clones)
Let us know if you have any success.
andystorey
Tue, 03/07/2017 - 13:39
Permalink
Thanks - will do!
Thanks - will do!
andystorey
Wed, 03/08/2017 - 11:39
Permalink
Hi Here's what I got! Andy
Hi
Here's what I got!
Andy