The light activated wobblebot uses a photoresistor and potentiometer in series to create a voltage divider which controls the gate on a mosfet transistor. The transistor turns the motor on an off when you shine a flashlight on it. The potentiometer allow you to fine tune the circuit based on ambient light.

screen-shot-2016-09-18-at-2-52-19-pm