First time programming anything here.

How are you powering all this?

analogWrite(servoR, 170);

Don't do this - use the servo library.