i am trying to compare the sine wave and square wave and want to use comparator, just need to know how to make the square wave center at 0 in the above circuit diagram.Use an op-amp summing amplifier and add the desired DC offset.
hi, i want the square wave centered at 0V. In your waveform graph the square wave is centered at 2.5V, i want this signal centered at 0V. I want the inverting input (labeled 01 in your diagram) which is the square wave to be centered. I am not asking the output from op-amp Vout to be centered. I think the question is clearly stated. I added a coupling capacitor at the 555 timer output but it did not help.Hi cktboy,
This is your circuit in LTSpice.
Have considered the effect of feeding the inputs of a LM358 with those voltage levels.?
Are you asking for guidance on how to make the Vout signal swing high/low 2.5V about a DC level of 2.5Vdc
E
View attachment 285996
hi, your solution works only initially for few 100us, after that the signal goes back to the original output with center around 2.3V or so.Is this what you are asking for, if not, post a drawing showing what you mean.
View attachment 286001
that is what i want to know, what happens when we compare sine wave with square wave with a comparator and what the output looks like.Why are you comparing a sine wave and square wave with an analog comparator?
What do you hope to achieve?
You get nonsensical result. The output of a comparator is digital, zeros and ones.that is what i want to know, what happens when we compare sine wave with square wave with a comparator and what the output looks like.
i don't know what wrong with my question and words, frankly speaking i think everybody reading this can understand the question, i am not able to write in special words for you, but i think its not your lack of understanding my words but rather childish act of insisting and i don't know why because your answer above shows you exactly know what my question is.Hi cktboy.
It is always difficult to give a meaningful reply to a badly worded question.
What is the purpose of this circuit.?
E
You could put the square wave through a summing opamp and use the other input to apply a DC offset to the square wave.i want to center the square wave at 0, forget about purpose
by Aaron Carman
by Aaron Carman
by Jeff Child