Sine wave to square spikes

Discussion in 'General Electronics Chat' started by shackle000, Mar 25, 2010.

  1. shackle000

    Thread Starter New Member

    Mar 25, 2010
    5
    0
    Hi everyone,

    I want to design a circuit which takes positive sine wave-shape input and outputs square wave of very less width equivalent to a spike. In other words, i want to count the peaks. The output spike should be of same voltage as input. Thanks and waiting for reply.
     
  2. beenthere

    Retired Moderator

    Apr 20, 2004
    15,815
    282
    Can you give us more information? What is the frequency and magnitude of the sine wave? Is it AC - do the excursions go above and below 0 volts? What is the magnitude of the spikes? Do you want a response for the negative and positive peaks?
     
  3. russ_hensel

    Well-Known Member

    Jan 11, 2009
    818
    47
    You do not have to do that wave shaping to count the peaks, is this really your requirement?
     
  4. shackle000

    Thread Starter New Member

    Mar 25, 2010
    5
    0
    I have attached a picture in which I am referrring the lower wave as my input and the above trail as my ideal output. Actually I want to count the number of events happening, considering each positive shape sine wave as one event. The frequency of events is quite high (in MHz). The magnitude of output may preferably be equal to input's peak voltage.
     
  5. atferrari

    AAC Fanatic!

    Jan 6, 2004
    2,648
    764
    Maybe I am being picky, but you mentioned a sine wave.

    Dou you mean that given a sine wave at the input, you want to generate a short pulse after every negative to positive zero crossing?
     
  6. shackle000

    Thread Starter New Member

    Mar 25, 2010
    5
    0
    The input signal stays between 0 to positive and doesn't go in negative. My sole purpose is to distinctively count the events that is train of pulses. Please see the attached picture, the below train of pulses is my input. Thanks.
     
  7. shackle000

    Thread Starter New Member

    Mar 25, 2010
    5
    0
    The picture is attached in my previous post.
     
  8. beenthere

    Retired Moderator

    Apr 20, 2004
    15,815
    282
     
  9. shackle000

    Thread Starter New Member

    Mar 25, 2010
    5
    0
    I do not actually need a pulse height analyser, but if I able to manage it it would be a bonus.

    The height of input humps (I don't know what to call this kind of wave shape) is variable so I can not use just a threshold value and give it to comparator. I just need a spike at the ouput equivalent to one input hump and later on I would count those spikes.

    May be I was not very clear, but in the picture i tried to show my inputs and outputs. I want to design a ciruit which could give me such output. Thanks for your patience.
     
  10. shortbus

    AAC Fanatic!

    Sep 30, 2009
    4,015
    1,531
    You can if you make the input threshold to the comparator adjustable with a potentiometer. But your out put "square wave voltage" would not be variable with the input. But that shouldn't matter if your just counting.
     
Loading...