I've been trying to put together a circuit that will turn a dc motor in one direction when there is no light and turn the other direction when light returns. I'll have shaft attached to the motor that moves an object to the left and then to the right. When the object reaches either side, I need the motor to stop, until it needs to go in the other direction (when light goes away or returns). I'm guessing a micro switch on the ends may work somehow, but I’m not sure. The motor operates on 1.2v battery which is charged from a solar panel, similar to solar lights I guess. Can anyone help?