PIR for Servo control, Help!!

Hi

As I am a complete arduino novice...I need some Help!

I am trying to use a PIR sensor to trigger a 180 degree turn of a servo, followed by a 3 minute gap and then the servo turning back 180 degrees to its original position.

I am using it to turn on a film projector, wait for the film to finish and then turn the projector off.

Does anyone know any suitable code for this? or how I can combine the servo code I have written with code for a PIR motion sensor

Thanks

Andy