Bluetooth connection problems with ps4 controller

For a project I'm making a robot that is controlled by a ps4 controller. I'm using an arduino mega 2560 connected to a usb host shield with a bluetooth usb adapter. I thought I uploaded the right code I needed for the connection but the controller won't link up with the arduino. I need help.

Is it possible it has anything with the code, You didn't post, to do?

I'm not able to paste the code right now but from what I remember it was one of the Ide examples called PS4BT

We'll wait.
Scheamatics might become interesting.