Register to reply

How to detect when two signals have been above a certain level for a certain time

by jkm89
Tags: timer
Share this thread:
Jan14-13, 10:28 PM
P: 2

I have two signals, I need a way of testing whether they go above certain threshold voltages for a period of 0.5 seconds. This must be non programmable. I am a bit stumped o how to do it.

I thought of having these signals go into an AND gate and then have that AND gate feed into a timing circuit somehow, but I don't really know how I would design such a timing circuit.

The 555 timer will not work because I need to start the timer, then have it wait, then send a logical high if and when the two signals have been above their threshold voltages.
Phys.Org News Partner Engineering news on
DIY glove-based tutor indicates muscle-memory potential
Tricorder XPRIZE: 10 teams advance in global competition to develop consumer-focused diagnostic device
Study shows local seismic isolation and damping methods provide optimal protection for essential computing equipment
Jan15-13, 01:08 AM
P: 90
I have not given much thought yet, but the entry could be a pair of op-amps, to detect the above or under threshold, a 555 as a monostable: the above thresh triggers the impulse, the below thresh resets it. A second 555 is started at the same time and after 0.5s, both results are AND'd. If the first one was stopped, the result would be "0".

I will look into this later today if someone else hasn't given a schematic.
Jan15-13, 01:55 AM
Sci Advisor
PF Gold
davenn's Avatar
P: 2,651
welcome to PF :)

it mite really help if you told us all what sort of signals they are ??
give us all the information on what you are trying to do
its pretty impossible for people to give you a good answer without the background

are they audio ? RF ? maybe digital signals


Jan15-13, 02:07 AM
P: 2,251
How to detect when two signals have been above a certain level for a certain time

Quote Quote by davenn View Post
are they audio ? RF ? maybe digital signals
maybe DTMF.
Jan25-13, 01:35 AM
P: 114
Would have thought the 555 ideal. Feed an input trigger into the timer to start it off. If output is high and input drops reset timer. If timer times out the falling edge of the output clocks the high input signal into an edge-triggered flip-flop ('74). The flip-flop output will go high only if the timer times out. You can turn this f/f output level into a pulse using another 555 that resets the f/f. For a very fast pulse you might even be able to have the f/f reset itself. Might be a starting point.
Jan25-13, 05:29 PM
P: 560
Might try a 4 bit counter with a 32 Hz oscillator. By running your anded signal into the clear pin of a 74HC193, you could hold its count at 0 until your condition was met. Then, the counter would wait 16 counts before dropping the carry output. This would be .5 to .53 seconds later.
Another method would be to use an NE555 as a simple level detector. Tie the trigger and threshold lines together with a timing capacitor and a pull up resistor to Vcc. NAND your two signals and use the result to drive an NPN transistor to discharge the capacitor. When your condition is met, the NPN transistor will turn off and allow the capcitor to charge. Upon reaching 2/3's of the supply voltage, the output of the 555 will go high.
Jan25-13, 09:23 PM
Mordred's Avatar
P: 1,857
Look into Schmitt trigger pulse generator circuits. Theres plenty of examples to generate your pulse. Have one gate to detect the leading edge. One gate to detect falling edge. Latch those two momentary signal and compare later.

I' m on my phone atm but can assist in the rising edge/ falling edge method. There are other ways as well. Depends on your needs.

Edit. I re read the above forgot to say delay the lead edge gate output to an RC Delay of 500 ms and use that to time the slowed down lead edge with the falling edge with another AND gate

Register to reply

Related Discussions
Signals and Systems - Power and Energy level signals calculation Engineering, Comp Sci, & Technology Homework 1
To convert 3 level (RJ45 Ethernet) to 2 level OOK signals for laser OOK modulation Electrical Engineering 0
Could we even theoretically detect readio signals from extraterrestrial intelligence? Cosmology 5
Drawing signals, time-shift, time- scaling Computing & Technology 0
Project to detect open collector/ high impedance signals Electrical Engineering 5