I'm trying to design an inverting schmitt trigger for my circuit (see attached file). I managed to design a non-inverting schmitt trigger but becuase of the feedback loop connecting the input I have a feeling it's screwing up the input signal in the rest of the circuit. I know I can use a buffer to isolate the signal but it's generating other problems.. I know that with the inverting configuration the input is isolated from the feedback so I suspect signal won't be affected.
I'm using a LM393 comparator and according to the data sheet a pull-up resistor is needed (they suggest a value of 3k). When I do node voltage analysis I get the equation in the document attached. But when I get my values for my resistors from these equations, my circuit does not work at all! Am I doing something retarded? Please help!
Thanks!
FYI: The threshold voltages for my design are:
Vlower = 0.1V
Vupper = 0.3V
But, essentially the signal represents a pulse for every heartbeat. The pulse lasts for about 10-20ms and the amplitude of this pulse varies depending on how far the transmitter is away from the receiver, but if there's no pulse, the input into the schmitt trigger is ~0V and anything above that I'd like to count as a pulse. Note that the received signal has been amplified and filtered and the noise in the signal is about 10mV. So I decided to set the lower threshold to be 0.1V.
There's also bit of ripple (approximatley 0.2V) in the amplitude of the signal so I've set the hysterisis to be 0.2V as well. Therefore, the upper threshold is set to 0.3V.
The two equations that I derived in the doc file are pretty hard to solve simulatenously - but the values I got were:
Thanks for the pdf! That was really helpful - much easier to solve than my version of that schmitt trigger. I've got the ratio of resistors for R1 and R2 and the value for Vref now which I'll try and implement tomorrow. Hopefully my calculations are correct!
Cheers
EDIT: If you can simulate the values for me, that will be great - I'll post them up soon.
Thanks for all of that. I'm just wondering in your last schematic - is there any purpose for R4? Also is C1 used to ensure that any noise in the supply voltage gets shorted through it?
Thanks for all of that. I'm just wondering in your last schematic - is there any purpose for R4? Also is C1 used to ensure that any noise in the supply voltage gets shorted through it?
hi,
I always add a series resistor to OPA/Comp inputs, its gives protection against heavy currents flowing into the inputs.
C1 as you say is a simple noise filter.
If you require an adjustable voltage threshold, change the 200R to a 500R variable, be aware the threshold change will change the hysteresis a little.