<div dir="ltr">What rails do you have available ? Have you considered a comparator IC (e.g. LM339) rather than using general purpose op-amps ?<div><br></div><div>If you have 0V, +5V and +15V rails, with an LM339 you can reference the comparator input side to the 0V and +15V rails and have the output side referenced to 0V and +5V. The datasheet has an example circuit using one pullup resistor and one cap per comparator.</div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Jun 20, 2018 at 4:05 PM, Guy McCusker <span dir="ltr"><<a href="mailto:guy.mccusker@gmail.com" target="_blank">guy.mccusker@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello,<br>
I am "designing" (i.e. cobbling together) a circuit in which I need a<br>
comparator whose output is fairly accurately 0V or 5V.<br>
<br>
I can think of many ways to do this. Some are very stable (at least on<br>
paper) but appallingly complicated, which is bad because I need at<br>
least 7 of these;  some are very simple but rely on careful trimming<br>
of the saturation voltage of an op amp, which I would rather not do<br>
for reasons of reproducibility.<br>
<br>
It is 100% likely that someone on this list has a very simple and<br>
solid way to do this, so rather than reinvent the wheel I thought I'd<br>
ask... how would you do it?<br>
<br>
(What I really want, in fact, is to take an input voltage X and output<br>
X if X<=5, or X-5, if X>5.)<br>
<br>
Guy.<br>
______________________________<wbr>_________________<br>
Synth-diy mailing list<br>
<a href="mailto:Synth-diy@synth-diy.org">Synth-diy@synth-diy.org</a><br>
<a href="http://synth-diy.org/mailman/listinfo/synth-diy" rel="noreferrer" target="_blank">http://synth-diy.org/mailman/<wbr>listinfo/synth-diy</a><br>
</blockquote></div><br></div>