say my input is a light dependent resistor, or solar cell, whatever, and its sitting in a dark room, doing nothing, no output. then someone turns on a dim light, the pic would detect the change in light level in the span of one loop, and toggle an output on and off one time because it saw a positve change in voltage on the ADC. Then it readjusts for the new light level in the room and sits there, doing nothing, but someone makes the light a bit brighter, and again the output toggles because there is a positve change in light. so therefore, it only toggles the output because there is a positve change in light, it would ignore someone turning the light off, or dimming it. I also need control of how much of a positive change it responds to, like the amount that the voltage level is increased, so if its a very slight change, nothing happens, but if there is a large change, it will respond..
this is really messing with my poor ol' brain! but i seem to end up asking more questions on here than answering anyway!
Also, when i say "readjusts" i mean the circuit automatically readjusts its self, like autogain, or something!
Bookmarks