[youtube http://youtu.be/VNmJG2f0NJA]
This project uses a simple 555 timer chip and a feedback loop to control a servo-controlled wooden arm. Whenever an object comes close to a photosensor mounted on the end of the arm, it blocks the amount of light detected, which triggers the arm to swat the object away.
Check out more Weekend Projects.
I’m not familiar with a servo motor with only 2 wires. It would need power, signal and Gnd to function. Can you supply the make and model number?
This was a good project for a single afternoon with some kids. We used paint stirrers and an old piece of wood from my neighbor’s wood pile. Didn’t put the photo resistor onto the stick. I think we were so happy it worked… http://youtu.be/T78x7o4FvmY