Quote:
Originally Posted by bhandel76
What I want to happen is, when the light is on the photocell sensor, the motor will come on and spin left (counter clockwise) "x" amount of times, the quit. Then, when it is dark on the photocell sensor, the motor will spin clockwise "x" amount of times and stop.
|
Your description of the desired behavior is incomplete.
What do you want it to do if the light is removed from the sensor while the motor is spinning CCW? Stop immediately and spin CW? Or finish the CCW spinning and then spin CW? Or ignore any changes that occur while the motor is spinning?
Do you want the circuitry to require a persistence of the sensor state before action is taken? In other words, if the light on the sensor is removed for 1 millisecond do you want the motor to start spinning CW? Or do you want the circuit to ignore momentary changes like that?
What is the operating voltage you will be providing to the motor, and what is the current draw?
Are you going to make one of these, or 10 million?
How big can the controlling device be? Is there a size or weight limit? Can it be supplied with 120vAC power?