I've got the concept for a project that will work much like a solar tracker. I will have two photoresistors in series tapped in the center to form a voltage divider. I'm also going to have a negative rail by way of tapping from between two batteries. One input of the op amp (that I'll use as a comparator) will be connected to the tap at the two batteries, and the other input will be fed from the voltage divider. This way, with the negative rail, a DC motor will move forward or in reverse depending on the resistance levels of the two photoresistors.
My problem:
I don't want to eat up power by the motor constantly going one way or the other based on very minute changes in the resistance. If the reference voltage is 3v, I don't want it constantly trying to adjust back and forth if small fluctuations in the resistors cause the "adjusted input" to move from say 3.05 to 2.95 volts.
How do I make the comparator wait until input A is ~ .1 volts away from the the reference voltage before it switches to the other rail votlage?
Thanks!
My problem:
I don't want to eat up power by the motor constantly going one way or the other based on very minute changes in the resistance. If the reference voltage is 3v, I don't want it constantly trying to adjust back and forth if small fluctuations in the resistors cause the "adjusted input" to move from say 3.05 to 2.95 volts.
How do I make the comparator wait until input A is ~ .1 volts away from the the reference voltage before it switches to the other rail votlage?
Thanks!