You are better off using a pingpong ball, and you need to use freepie. But it is possible with a controller. I have never done it with the controller so couldn't tell you how, but for this stuff, DaleyTech has done a ton of great tutorial videos. Follow his guide.
Basically, from what I remember, is you need to set up psmove service with your controllers and pseyes.
Then change a config file to allow VirtualHMD.
Set up the VirtualHMD in psmove config tool.
But of course it is a little more complicated really. Here is the video that will help:
I also highly recommend using Driver4VR. Not sure exactly how it helps freepie, but it tends to make setting VR up a lot easier in general.