Electronic Projects, forums and more.

Go Back   Electronic Circuits Projects Diagrams Free > Electronics Forums > Electronic Projects Design/Ideas/Reviews


Electronic Projects Design/Ideas/Reviews Are you building an electronic project or want to? Maybe you need some assistance? Come and submit your electronic questions here and let our experienced members find a solution.

Reply
 
LinkBack Thread Tools Display Modes
Old 12th March 2008, 05:37 AM   (permalink)
Default positive/negative edge detection

hello people...

i want to build a circuit that accepts an analog input and does the following...

(1). If the incoming analog signal has a rising edge first (irrespective of the next edges), then do a specifc thing (say produce a HIGH voltage)
(2). If the incoming signal has a negative edge first (irrespective of the edges that come next), then do a specific thing (say produce a LOW voltage)
raviram87 is offline  
Old 12th March 2008, 05:55 AM   (permalink)
Default

Use a comparator (swap 0V and signal between inverting and non-inverting inputs to change between rising/falling) and use a time delay or pulse circuit or flip-flop (which will ignore the events that happen next within a certain time period or until it resets).

Instead of a comparator, you may also use a D-flip-flop (with or without an inverter at the input depending on rising/falling).
dknguyen is offline  
Old 12th March 2008, 06:22 AM   (permalink)
Default

thanks for the help again...

about the d flip-flop part, i should give my signal to the clock input right? will the flip-flop accept an analog input?
raviram87 is offline  
Old 12th March 2008, 06:52 AM   (permalink)
Default

Yeah, you feed your signal into the D-flip flop block and the data input for the DFF is the state you want it to go to when it detects an edge.

But you make a good point about accepting an analog signal. Assuming the analog signal is within operating range of the DFF, if it is too slow it would cause the signal to spend too much time between the input LO and HI threshold voltages. And since your signal is bipolar, it will never be in range (I've never seen a bipolar logic gate...). So I guess you have to use the opamp with bipolar supplies.

A transition from low to high is good enough to approximate a rising edge in most cases. But what you might be able to do is to follow the op-amp with a DFF. THen the DFF will detect the rising edges of the comparator AFTER they have been changed from bipolar to unipolar by the comparator. BUt I don't think that is necessary unless you lack other "intelligent" parts of your circuit circuits to only accept HI values AFTER a LO value, and reject continously high values. THe DFF will do this for you if you do not have them.

SOrry about my mistake.

Last edited by dknguyen; 12th March 2008 at 06:54 AM.
dknguyen is offline  
Old 12th March 2008, 09:44 AM   (permalink)
Default

does it mean to say that if i get a d flip flop whose specifications are such that the input voltage falls within its specified range.... it will function accordingly???

and abt the comparator... i have a LM339 type comparator.... are its outputs digital?? means +5V and 0 ???
raviram87 is offline  
Old 12th March 2008, 10:37 AM   (permalink)
Default

Quote:
Originally Posted by raviram87
(1). If the incoming analog signal has a rising edge first (irrespective of the next edges), then do a specifc thing (say produce a HIGH voltage)
(2). If the incoming signal has a negative edge first (irrespective of the edges that come next), then do a specific thing (say produce a LOW voltage)
I think that you need to build a differentiator. This is an analog circuit that puts out a positive voltage when the input waveform is rising, and a negative output when the input voltage is falling. It does not matter what voltage the input has, just whether it is rising or falling, and how fast.

Is this what you need?

Last edited by Bob Scott; 12th March 2008 at 10:39 AM.
Bob Scott is offline  
Old 12th March 2008, 10:45 AM   (permalink)
Default

yes...

if u see the image below....

the output is zero initially... when a certain trigger is given to the circuit, the input rises, falls down and again reaches a constant 0 level....

i identify the first rising edge alone and conclude it is caused due to that particular trigger alone..... i do not want the circuit to react to any other rising edges in the output.... only the first

what i need to do is once this is observed at the output, i need to do a specific thing (as say producing a high voltage)....
Attached Images
File Type: jpg Image1.jpg (323.6 KB, 22 views)
raviram87 is offline  
Old 12th March 2008, 02:43 PM   (permalink)
Default

what peak voltage are we talking about here?
specie is offline  
Old 12th March 2008, 05:03 PM   (permalink)
Default

the positive peak is of the order of around 0.5 V and so is the negative peak....

i want to detect only the first edge.... nothing after that....
raviram87 is offline  
Old 13th March 2008, 03:39 PM   (permalink)
Default

i tried building the circuit with LM139 type comparator.... but i couldn get favourable results...

wat i did was... i used two comparators with the input signal being applied to the inverting input of one, while to the non-inverting input of the other comparator... the reference input was given as 0.5V...

can i acheive my objective by using a differentiator with a long enough time constant?? by using a high velue of R and C????
raviram87 is offline  
Old 13th March 2008, 03:49 PM   (permalink)
Default

Use a strobed OpAmp. This will take care of ignoring further pulses to arrive at the input.
Boncuk is offline  
Old 13th March 2008, 04:24 PM   (permalink)
Default

thanks...

but i am hearing the term strobed op-amp for the first time... where can i get more info about it?

and how abt the differentiator idea.... if u see image 1 that i have attached in one of my previous posts in this topic.... the signal is initially 0 and then rises... so the slope will be positive.... if i choose the value of RC (in the differentiator) pretty high... then i can get the slope of the rising edge....

can i use any other such ideas?
raviram87 is offline  
Old 13th March 2008, 06:04 PM   (permalink)
Default

What is the width of these pulses?
__________________
Ron

Roff is offline  
Old 14th March 2008, 12:13 AM   (permalink)
Default

the output of the circuit remains at 0...

on recieving a trigger, there is a positive pulse followed by a negative one and the output settles back to 0....

both the pulses have a width of around 500ms....
raviram87 is offline  
Old 14th March 2008, 12:41 AM   (permalink)
Default

I dont know much about this stuff.. but how about using a schmitt trigger ??
__________________
Khizer Naeem Mughal
IIUI
Cry_Wolf is offline  
Reply

Bookmarks

Thread Tools
Display Modes



Similar Threads
Title Starter Forum Replies Latest
Edge detection circuitry raviram87 Electronic Projects Design/Ideas/Reviews 5 10th March 2008 05:35 PM
Need help for programming speed detection! zak4546 Micro Controllers 2 6th March 2008 04:23 AM
edge detector abandon_soul Electronic Projects Design/Ideas/Reviews 0 11th February 2008 02:04 AM
How to properly do PCB edge connections in Eagle? toodles Electronic Projects Design/Ideas/Reviews 2 10th April 2007 11:36 PM
gas(methane-CH4) detection circuit mohente Electronic Projects Design/Ideas/Reviews 9 29th May 2006 09:00 PM



All times are GMT. The time now is 06:37 PM.


Electronic Circuits  |  Learning Electronics
Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.

eXTReMe Tracker