Hello AAC Forums.
To cut to the chase, i have a problem with interfacing a SHARP GP2Y0A21YKOF analog output sensor to the rest of the circuit as i imagined it.
Basically, i need the circuit to perform a delayed relay activation after the IR sensor detects an obstacle infront of it, however, to only start the countdown after the obstacle has been moved.
Current setup includes an LM393 in window comparator mode, with set points being determined by a DIP switch with a resistor array to get preset distance windows in which i want the output high. Other end of the circuit is an LM556, both timers operating in falling edge triggered monostable modes to get control of delay duration, and pulse duration. Delay duration is controlled with another DIP switch with a capacitor array to get 1-10 second delay. Pulse duration is fixed at 0.5s.
Also have a single 555 timer as an "input lockout", being after the solenoid is triggered, a minimum of 5 seconds must elapse before the sensors output can be read again. (N-FET as a switch, prior to this it was a basic relay)
So i need to take the falling edge from the comparator output to trigger the 556, but only after making sure that the comparator output is high for x amount of time (to make sure it wont trigger randomly).
As it is now, the circuit triggers the moment something is in the distance range set by the first DIP switch.
I am not sure of how to approach this problem, i know it could probably be done much easier with a PIC or other microcontroller, however my programming skills are lacking. Any ideas / views are appreciated.
To cut to the chase, i have a problem with interfacing a SHARP GP2Y0A21YKOF analog output sensor to the rest of the circuit as i imagined it.
Basically, i need the circuit to perform a delayed relay activation after the IR sensor detects an obstacle infront of it, however, to only start the countdown after the obstacle has been moved.
Current setup includes an LM393 in window comparator mode, with set points being determined by a DIP switch with a resistor array to get preset distance windows in which i want the output high. Other end of the circuit is an LM556, both timers operating in falling edge triggered monostable modes to get control of delay duration, and pulse duration. Delay duration is controlled with another DIP switch with a capacitor array to get 1-10 second delay. Pulse duration is fixed at 0.5s.
Also have a single 555 timer as an "input lockout", being after the solenoid is triggered, a minimum of 5 seconds must elapse before the sensors output can be read again. (N-FET as a switch, prior to this it was a basic relay)
So i need to take the falling edge from the comparator output to trigger the 556, but only after making sure that the comparator output is high for x amount of time (to make sure it wont trigger randomly).
As it is now, the circuit triggers the moment something is in the distance range set by the first DIP switch.
I am not sure of how to approach this problem, i know it could probably be done much easier with a PIC or other microcontroller, however my programming skills are lacking. Any ideas / views are appreciated.







