<div>Use comparator with push-pull output, like for example dirt cheap TC75S57 from Toshiba and possibly hundreds of other models.<br></div><div>Or follow regular old school comparator output with logic gate, preferably LV family for better drive capability. Or as mentioned already SPDT switch tied to GND and +5V<br></div><div><br></div><div>Roman<br></div><div class="nh_extra"><p>Dnia 20 czerwca 2018 17:14 Guy McCusker <guy.mccusker@gmail.com> napisaƂ(a):<br></p><blockquote class="nh_quote" style="border-left: 2px solid #999; padding-left: 8px; margin: 0;"><div id="gwp87f71fa4"><div>Hello,<br></div><div>I am "designing" (i.e. cobbling together) a circuit in which I need a<br></div><div>comparator whose output is fairly accurately 0V or 5V.<br></div><div><br></div><div>I can think of many ways to do this. Some are very stable (at least on<br></div><div>paper) but appallingly complicated, which is bad because I need at<br></div><div>least 7 of these;  some are very simple but rely on careful trimming<br></div><div>of the saturation voltage of an op amp, which I would rather not do<br></div><div>for reasons of reproducibility.<br></div><div><br></div><div>It is 100% likely that someone on this list has a very simple and<br></div><div>solid way to do this, so rather than reinvent the wheel I thought I'd<br></div><div>ask... how would you do it?<br></div><div><br></div><div>(What I really want, in fact, is to take an input voltage X and output<br></div><div>X if X<=5, or X-5, if X>5.)<br></div><div><br></div><div>Guy.<br></div><div>_______________________________________________<br></div><div>Synth-diy mailing list<br></div><div><a nh-compose-link="" href="mailto:Synth-diy@synth-diy.org">Synth-diy@synth-diy.org</a><br></div><div><a href="http://synth-diy.org/mailman/listinfo/synth-diy" nh-safe-redirect="" data-saferedirecturl="https://zasobygwp.pl/redirect?sig=b71c8251b717ba551dbce4e296c1ab7f5c1f2f55b0f607f673fe803609e81823&url=aHR0cDovL3N5bnRoLWRpeS5vcmcvbWFpbG1hbi9saXN0aW5mby9zeW50aC1kaXk=&platform=desktop&brand=o2" target="_blank">http://synth-diy.org/mailman/listinfo/synth-diy</a><br></div></div></blockquote></div><div><br></div>