I am designning a circuit that would sample a certain voltage between -3 to 0, and ouput 3.3V if the input is above certain threshold and 0 if it's undr it.
I thought of using a comparator such as LMV339, but it does not supports a negative threshold.
Any suggestions as to what type of comparator should I use?
Hi,
First of all thanks for the solution.
One thing that concerns me about this solution - the 5V DC supply on my board may get interfered with the signal frequency (several kHz).
Hi,
First of all thanks for the solution.
One thing that concerns me about this solution - the 5V DC supply on my board may get interfered with the signal frequency (several kHz).
It's okay to substitute a higher potentiometer value, to provide greater impedance between all nodes. It's just a matter of adjusting the pot to achieve the proper balance.
However the input resistance of your following device also is a factor. You want the incoming signal to maintain the same amplitude, even after you add the next device.
If you put 30K from signal to any comparator input and 33K from that input to 3.3V, you will get your signal shifted up and reduced to 0 to 1.57
Choose a comparator that runs on a single supply at 0V in that runs off 3.3V and bias the signal, threshold setting and IC in one small circuit. There are many features to choose in an comparator which has more speed than an Op Amp, but can work fine for many apps. If using a op amp. choose one with Rail-to-Rail Output and sense at ground input or Rail to rail input.
-depending on your calibration, you can choose fixed R's instead of a 10K Pot or scale to larger values.
You may want hysteresis or noise filtering too.