Pan and tilt Head autonomous !

I am looking for the code . Pan and tilt motion which will operate on one touch like for YES it will nod YES and for NO it will do NO (left-right-left-right) .
Please help!

So what is the mechanical part of your project? Servos?

Hi i'm looking too, but i have 2 nema 17.