I had the same problem.
I tried the sonic gadget but the cat would just sit and look at it.
The cat was not the brightest and I spotted it crapping on my lawn so I played nice and it came over to me. So I picked it up and proceeded to rub its face in its own shit.
Its not come back since.