How Can I Convert Various Signals Into One Standard Square Wave?

  • Thread starter Thread starter formulajoe
  • Start date Start date
  • Tags Tags
    Signal
Click For Summary

Discussion Overview

The discussion revolves around designing a signal conditioning circuit that can convert various types of input signals into a standard square wave output. The focus is on maintaining the original frequencies of the input signals while transforming them into a format suitable for frequency counting. The types of signals mentioned include sine waves, square waves with DC offsets, and square waves with varying high times.

Discussion Character

  • Technical explanation
  • Exploratory
  • Debate/contested

Main Points Raised

  • One participant suggests using a zero-crossing detector or a mid-supply crossing detector to convert the signals, mentioning the need for positive feedback to avoid output buzzing.
  • Another participant expresses concern that crossing detectors may convert each signal into a single frequency, which does not meet the requirement of retaining the original frequencies of the input signals.
  • There is a need to specify the frequency range of the signals to select appropriate components, including a DC blocking capacitor and a comparator with hysteresis.
  • A detailed circuit design is proposed, including the use of a single-supply comparator, DC blocking capacitors, and diode clamps to handle high input voltages while outputting a lower voltage square wave.
  • Participants note the importance of settling time for the output waveform to accurately represent the incoming signals.

Areas of Agreement / Disagreement

Participants express differing views on the effectiveness of crossing detectors for the intended purpose, indicating that there is no consensus on the best approach to achieve the desired signal transformation while retaining frequency characteristics.

Contextual Notes

There are unresolved aspects regarding the specific values for resistors and capacitors needed for the circuit, as well as the exact specifications for settling time and frequency range, which may affect the design's effectiveness.

formulajoe
Messages
177
Reaction score
0
I've got to design a signal conditioning circuit that takes in a few different signals and converts them all to a standard signal. The overall purpose is to determine the frequency of the individual signals.
Any ideas on how to make a variety of signals into one standard signal? Preferably a square wave?
 
Engineering news on Phys.org
Sounds like a simple zero-crossing detector would do what you want. Or mid-supply crossing detector, depending on what the average voltage is of your incoming signals. You could capacitively couple the incoming signals if you want to get rid of the DC component. You can make a zero-crossing detector with a comparator, for example. Be sure to add some positive feedback to give you hysteresis, to avoid buzzing the output of the comparator when the input signal is near the zero-crossing threshold.
 
Here are a few examples of some of the signals I will be dealing with:
sine wave ranging from 0-50 V up to 5KHz
square wave with DC offset
sqaure wave with extended 'high' times looks like this """""""""|____|""""""""""""""""""""""|____|"""""""""""""""""""""""""""""
the frequency at which the low signals appear is related to the frequency of the signal

I researched the crossing detectors you suggested, but it seems to me as though they make each signal into 1 frequency? Maybe I missed something.

I need each of these signals to retain their original frequency and transform them into a square wave so I can count the edges to determine the signal frequency.
 
formulajoe said:
the frequency at which the low signals appear is related to the frequency of the signal
I think that's a typo, Joe. Or else a true-ism.
I researched the crossing detectors you suggested, but it seems to me as though they make each signal into 1 frequency? Maybe I missed something.
I need each of these signals to retain their original frequency and transform them into a square wave so I can count the edges to determine the signal frequency.
It sounds like you want to convert the various signals into a digital rectangular wave. You need to constrain the frequency range a bit, so that you can pick a DC blocking capacitor value on the low frequency end, and pick the speed of your components on the high frequency end. You also need to have specified what the settling time has to be from the start of the signal coming into your circuit to when the circuit's output digital waveform has settled into a valid representation of the incoming signal (to within some number of %).
Then build the circuit that I mentioned earlier, with a single-supply comparator that has a reference input at half of the supply, and the + input is connected to the signal source via a DC blocking capacitor. Put a voltage divider between the output of the comparator and its + input, to provide biasing to mid-rail plus some hysteresis. You will want to connect your signal source to the DC blocking cap via some resistance, and put diode clamps to the rails between the isolating resistance and the DC blocking cap. That way you can still have this circuit work with a 50V input waveform, and use a 5V comparator, for example.
The values of the resistors and capacitor are left as an exercise for the reader. Just keep in mind all the specs that I was asking about above as you calculate the time constants, hysteresis voltage, offsets, etc. Have fun! -Mike-
 

Similar threads

Replies
13
Views
3K
Replies
20
Views
3K
Replies
37
Views
7K
  • · Replies 31 ·
2
Replies
31
Views
5K
Replies
9
Views
2K
Replies
20
Views
2K
  • · Replies 15 ·
Replies
15
Views
4K
Replies
1
Views
2K
Replies
5
Views
2K
  • · Replies 1 ·
Replies
1
Views
3K