Photophobic robot

Dear friends I need to build a photophobic robot. I have planned to use LDR for light sensing. The problem is i don’t know to calculate what value of resitors and capacitors to use. Can anyone please give me a circuit for it and also if possible a tutorial on how to calculate the resistor and capacitor values.