Issues connecting ps3 controller
Forums:
I am trying to connect a ps3 controller so I can use the joystick demo code on the MKonsterBorg but I keep getting an authentication error:
Pairing failed-
GDBus.org.bluez.Error.AuthenticatioFailed:
Authentication Failed
This happens every time I get to the "Please enter PIN code for Device ********" Stage in the instructions
It tells me to just keep doing that until it connects but I have done this step around 17 times and cant get it to connect.
Is there anything I can do to fix this?
piborg
Mon, 10/11/2021 - 13:55
Permalink
Failing to pair PS3 controller
Asking for a PIN every time usually suggests that the Raspberry Pi is not recognising the PS3 controller as a controller, but instead as a different type of Bluetooth device like a phone or keyboard.
It might help if we can get some more detail about this controller. 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.
If you could take a copy / screenshot of the output for us to look at :)
CougarTG
Wed, 10/13/2021 - 12:56
Permalink
Problem using that code
Because I am powering the micro controller through a laptop while I code it in preparation it is out putting the info for the laptop mixed with the code shown above.
I do not have access to the power brick used for a raspberry pi do you have any suggestions for alternative power sources?
piborg
Thu, 10/14/2021 - 09:34
Permalink
Other output in dmesg
That should not be a problem, all we really need are the lines starting
usb
andinput
relating to the controller, which should be at the bottom of the output with a similar timestamp value (number in green). It does not matter if there are other linesIf there are lines in the output that you do not want to share you can use a program like paint to draw black boxes over them or crop the image to just the relevant lines.