Issues connecting ps3 controller

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's picture

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:

  1. Power off the Raspberry Pi
  2. Make sure the controller is not attached via the USB cable
  3. Power the Raspberry Pi
  4. Connect the PS3 controller using the USB cable now
  5. Wait a few seconds
  6. Run this command: 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 :)

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's picture

That should not be a problem, all we really need are the lines starting usb and input 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 lines

If 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.

Images: 
Subscribe to Comments for "Issues connecting ps3 controller"